OSX 10.11 (El Capitan) beta 2/beta 3 上的 Xcode 6.4 [英] Xcode 6.4 on OSX 10.11 (El Capitan) beta 2 / beta 3

查看:65
本文介绍了OSX 10.11 (El Capitan) beta 2/beta 3 上的 Xcode 6.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 El Capitan 上运行 Xcode 6.4,我可以按照 这篇 帖子.

但我正在寻找一种无需任何外部程序即可运行它的方法,就像我之前使用 OSX 10.10 (Yosemite) 运行一样.

我发现这篇帖子指向this 说明,但它不起作用.这些是说明

<块引用>

  1. 打开这个文件/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exception.plist
  2. 在其中查找名称为 xcode 的行 (http://i.imgur.com/tcKWLhz.png)
  3. 将 HardDisabled 值从 YES 编辑为 NO
  4. 保存并重启

    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

  1. Open this file /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exception.plist
  2. Find lines with name xcode in them (http://i.imgur.com/tcKWLhz.png)
  3. Edit value HardDisabled from YES to NO
  4. Save and reboot

    1.a) If you can't save because file says it's locked then enable rootless mode (sudo nvram boot-args="kext-dev-mode=1 rootless 0" or sudo nvram boot-args="kext-dev-mode=1 rootless=0") and reboot.

    1.b) If you still have problem, copy Exceptions.plist to Desktop (or wherever else) and edit it them.

    1.c) Save it and them remove Exceptions.plist in System (sudo rm -rf /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist)

    1.d) Copy file from Desktop (or wherever else) to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources and reboot.

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

You can't open the application "XCode.app" because it is not supported on this type of Mac

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆