0
点赞
收藏
分享

微信扫一扫

iOS程序发布前的准备工作


1. 把NSLog去掉。

#ifndef __OPTIMIZE__

#define NSLog(...) NSLog(__VA_ARGS__)

#else

#define NSLog(...) {}

#endif



2. 去掉调试时的环境变量,如NSZombieEnabled


(Product->EditScheme->Run->Environment Variables)


举报

相关推荐

0 条评论