ios - 没有预编译文件prefix.pch的情况下怎么在发布版中去除NSLog?
天蓬老师
天蓬老师 2017-04-17 16:12:11
0
2
570

在网上搜了一下,都是说在prefix.pch文件里加上这么一段

#ifndef __OPTIMIZE__   
#define NSLog(...) NSLog(__VA_ARGS__)   
#else   
#define NSLog(...) {}   
#endif  

我现在的项目都不用prefix.pch了,有没有其他的办法?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
洪涛

If you want to disable NSLog output in the release version, you must replace NSLog globally. How can you replace NSLog globally without pch...

迷茫

Just because you don’t use it doesn’t mean you can’t use it, create a new one yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!