1.打包时不允许项目中有打印的日志,可以在pch中加入下面这段代码即可
#ifdef DEBUG
# define Log(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define Log(...)
#endif
1.打包时不允许项目中有打印的日志,可以在pch中加入下面这段代码即可
#ifdef DEBUG
# define Log(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define Log(...)
#endif
转载于:https://my.oschina.net/u/2365397/blog/1832923