Mac OS X 10.11 El Capitan -XCode7&XCode8 -unable to boot the simulator

来源:互联网 发布:怎么自学编程 编辑:程序博客网 时间:2024/04/28 17:05

新安装XCode7/XCode8 模拟器无法运行报-unable to boot the simulator,google后总结:


解决此问题需要修改目录权限,而对于Mac OS X 10.11 El Capitan用户,由于系统启用了SIP(System Integrity Protection), 导致root用户也没有权限修改目录或文件权限。

按如下方式可恢复权限。

屏蔽方法:重启Mac,按住command+R(不动,等进度条加载完),会进入recovery模式。选择打开实用工具下的终端,输入:csrutil disable 并回车,然后正常重启Mac即可。

在Terminal中输入以下命令:

[html] view plain copy 在CODE上查看代码片派生到我的代码片
  1. sudo chmod 0777 /private/tmp  
打开XCode测试模拟器已正常。
0 0
原创粉丝点击