Quiet NSLog() in Release Builds

On the heels of the previous post, here’s a little snippit I picked up from Marek Bell to quiet NSLog() output in release builds. Add this to your {MyApp}-prefix.pch file #ifndef __OPTIMIZE__ #    define NSLog(…) NSLog(__VA_ARGS__) #else #    define NSLog(…) {} #endif The reasoning behind using __OPTIMIZE__ is that it’s set only on release builds …

Quiet the Console – PhoneGap / iOS

I have a confession – I’m a console logging junkie. I just like to see what’s going on. While that may be great for development, at some point you’ll have to quiet the logging down for production. Really – doing enough logging will slow everything down each time you’ve inserted a console.log() into your code. …

Hey there! Come check out all-new content at my new mistercameron.com!