更新后的Xcode中,你会发现程序还没有运行就会自动打印一堆东西(我也没研究出来是什么@@),就像这样:

要想把这个鬼东西关掉,找到下图那个(Edit Scheme):

或者你也可以在Xcode的菜单栏中按照这个路径打开:Product > Scheme > Edit Scheme
打开后你会看到这个窗口:

你只需要在Environment Variables中添加一个:OS_ACTIVITY_MODE ,并且将其Value值设置为:disable, 就搞定了!
本文参考自:http://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-8-logs
网友评论