Is it true that one should not use NSLog() on production code?

Posted by jpm on Stack Overflow See other posts from Stack Overflow or by jpm
Published on 2008-11-19T00:37:28Z Indexed on 2010/03/18 2:31 UTC
Read the original article Hit count: 255

Filed under:
|
|

I was told this a few times in this very site, but I wanted to make sure this is really the case.

I was expecting to be able to sprinkle NSLog function calls throughout my code, and that Xcode/gcc would automatically strip those calls out when building my Release/Distribution builds.

Should I avoid using this? If so, what alternatives are most common between experienced Objective-C programmers?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c