How to configure iOS apps to not output NSLog in Release builds:
Simply define the following in your AppName-Prefix.pch file:
#ifdef DEBUG
# define NSLog(...) NSLog(__VA_ARGS__)
#else
# define NSLog(...)
#endif
By the way, you can toggle DEBUG ON/OFF in “PROJECT > Build Settings > Apple LLVM compiler 4.2 - Preprocessing” as shown in the image below:
That’s all from the Gemba.
[Reference]
・objective c - Enable and Disable NSLog in DEBUG mode - Stack Overflow