It completely depends on how you choose the development and production mode. Xcode 4 sets the flag by default DEBUGwhen you launch the application under debugging. You can create conditional code as follows:
#ifdef DEBUG
NSLog(@"Only log when in debug");
#endif
source
share