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)
相关推荐