1. 把NSLog去掉。
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...) {}
#endif
2. 去掉调试时的环境变量,如NSZombieEnabled
(Product->EditScheme->Run->Environment Variables)
1. 把NSLog去掉。
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...) {}
#endif
2. 去掉调试时的环境变量,如NSZombieEnabled
(Product->EditScheme->Run->Environment Variables)