1.打包时不容许项目中有打印的日志,能够在pch中加入下面这段代码便可日志
#ifdef DEBUG # define Log(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); #else # define Log(...) #endif