问题描述
我正在尝试在 El Capitan 上运行 Xcode 6.4,我可以按照 这篇 帖子.
但我正在寻找一种无需任何外部程序即可运行它的方法,就像我之前使用 OSX 10.10 (Yosemite) 运行一样.
- 打开这个文件/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exception.plist
- 在其中查找名称为 xcode 的行 (http://i.imgur.com/tcKWLhz.png)
- 将 HardDisabled 值从 YES 编辑为 NO
保存并重启
1.a) 如果因为文件说它被锁定而无法保存,则启用无根模式(sudo nvram boot-args="kext-dev-mode=1 rootless 0" 或sudo nvram boot-args="kext-dev-mode=1 rootless=0") 并重启.
1.b) 如果仍有问题,请将 Exceptions.plist 复制到桌面(或其他任何地方)并对其进行编辑.
1.c) 保存并删除系统中的 Exceptions.plist (sudo rm -rf/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist)
1.d) 将文件从桌面(或其他任何地方)复制到/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources 和重新启动.
我无法按照上述说明编辑 Exceptions.plist 文件,但经过多次尝试后,我找到了编辑它的方法.
这里可以找到编辑说明.
经过这一切,我仍然收到消息
您无法打开应用程序XCode.app",因为它不受支持在这种类型的 Mac 上
当我尝试从 Finder 运行 Xcode 6.4 时
解决方案 1
我唯一没有做的就是在更改后重新安装 XCode 6.4.我重新安装了它,它可以工作!
解决方案 2
Dave Wood 提供了另一种避免重新安装 XCode 的解决方案.这是帖子,正如他在回答中发布的那样,脚本是这里
这里有一个 shell 脚本,它对 Xcode 6 进行了调整并退出,以便您可以正常运行它.无需弄乱系统异常列表,重新安装或任何事情.只需一分钟左右即可运行.
脚本在这里:http://bit.ly/Xcode6OnElCapitan
注意:在 El Capitan 仍处于测试阶段时,您不能提交基于它构建的应用.
I am trying to run Xcode 6.4 on El Capitan and I can run with the instructions on this post.
But I am looking for a way to run it without any external program as I ran before with OSX 10.10 (Yosemite).
I found this post that point to this instructions but it does not work. These are the instructions
I couldn't edit the Exceptions.plist file with the instructions above, but after a lot of tries I found the way to edit it.
Here you can find the instructions to edit it.
After all of this, I still receiving the message
when I try to run Xcode 6.4 from Finder
SOLUTION 1
The only thing I didn't do was to reinstall XCode 6.4 after the changes. I reinstalled it and it works!
SOLUTION 2
Dave Wood provided another solution to avoid to reinstall XCode. This is is post and as he posted in his answer the script is here
Here's a shell script that tweaks Xcode 6 and resigns so you can just run it normally. No need to mess with the system exception list, reinstall or anything. Just takes a minute or so to run.
Script is here: http://bit.ly/Xcode6OnElCapitan
Note: you can not submit apps built on El Capitan while it's still in Beta.
这篇关于OSX 10.11 (El Capitan) beta 2/beta 3 上的 Xcode 6.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!