我们可以通过宏定义来替换原来的NSLog
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
本文标题:Xcode8真机调试测试NSLog不输出日志
本文链接:https://www.haomeiwen.com/subject/lqaxxxtx.html
网友评论