從Xcode8.3.3 升級到Xcode9.1 項目日志不打印,這完全是扯淡嘛,首先 Edit scheme 看看 完全符合要求啊,那問題在哪里呢。
原本NSLog的宏定義是這樣的
//控制器輸出信息
#define ICBLog(...) NSLog(@"\n %s 行數(shù):%d \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
網(wǎng)上一看 說要這樣 用pringtf
#ifdef DEBUG
#define NSLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String] )
#else
#define NSLog(format, ...)
#endif
泥煤,真的要這樣么,好吧。
改改改改...
這里是一個表情,你猜會是多么的
扭曲
還是不行啊
來吧相互傷害
打開模擬器,在菜單上 點擊Hardware 選擇

我是一個粉刷..png

Reset then your question did resolve.png
搞定,不用謝,因為我不是雷鋒??