Xcode 备忘

一、

打印一堆乱七八糟的东西:

Edit Scheme... --> Run --> Arguments,在 Environment Variables 里添加 OS_ACTIVITY_MODE = Disable 。

 

注释插件:这个已经被Xcode集成,快捷键:option+command+/

如果插件不可用,可以命令行运行下面命令,并重启Xcode:

 

sudo /usr/libexec/xpccachectl 

 

二、

Xcode 模拟器列表只显示UDID,而不显示系统版本

1 、彻底关闭Xcode跟模拟器 
2、sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService    
3、rm -rf ~/Library/Developer/CoreSimulator/Devices  
4、重启Xcode

 

三、

Xcode 真机调试时报错,“could not build module UIKit”,而模拟器正常

删除路径 

/Users/YOURNAME/Library/Developer/Xcode/DerivedData/

下的 ModuleCache 文件夹。

好吧,这个并没什么用,重装xcode吧……

posted @ 2016-09-20 20:46  沈红榜  阅读(164)  评论(0编辑  收藏  举报