I tried to disable NSLog in release build.
I put the following code in .pch file
#ifndef __OPTIMIZE__
# define NSLog(...) NSLog(__VA_ARGS__)
#else
# define NSLog(...) {}
#endif
It's not working, so I tried
# define NSLog(...) {}
It still prints output to the console.
Any help will be good, thanks!