Xcode8 更新后的坑及常见错误

1.Xcode更新后,command + / 注释整行代码不起作用了,可以终端运行sudo  /usr/libexec/xpccachectl,并重启电脑.重要的事情说三遍,千万不要忘记重启电脑哈,千万不要因为省事懒得重启电脑哈.

可以参考http://blog.csdn.net/jnbbwyth/article/details/52576169.

2.xcode8,storyboard上对控件做了约束,然后在viewDidLoad方法里面用这个控件的frame,发现是(0,0)(1000,1000).

解决方法是,在重写的 updateViewConstraints 方法中设置约束.

3.常见 xcode 问题 http://www.cocoachina.com/bbs/read.php?tid=112432

4.xcode8运行 iOS7的设备很简单,一是添加 iOS7对应的模拟器文件,二是添加对应的配置.参考http://blog.csdn.net/CodingFire/article/details/52638265.

5.xcode8的很多插件无法使用,参考xcode8插件无法使用.

6."iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due"是编译器内部的显示,与 app 正常使用无关.

(PS:参考http://blog.csdn.net/ws1836300/article/details/52957056)

7.XCode8 Could not locate device support files

替换 xcode8包内容中的/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport下的文件夹为 xcode7 的相应镜像文件.

原文地址:https://www.cnblogs.com/lz465350/p/5885647.html