1. 把NSLog去掉。
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...) {}
#endif
2. 去掉调试时的环境变量,如NSZombieEnabled
(Product->EditScheme->Run->Environment Variables)
iOS程序发布前的准备工作
阅读 105
2023-04-02
1. 把NSLog去掉。
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...) {}
#endif
2. 去掉调试时的环境变量,如NSZombieEnabled
(Product->EditScheme->Run->Environment Variables)
相关推荐
精彩评论(0)