Xcode 6.4 on OSX 10.11 (El Capitan) beta 2 / beta 3
Xcode 6.4 on OSX 10.11 (El Capitan) beta 2 / beta 3
我正在尝试 运行 Xcode El Capitan 上的 6.4,我可以 运行 按照 post.[=18= 上的说明]
但我正在寻找一种方法 运行 它没有任何外部程序,因为我 运行 之前 OSX 10.10 (Yosemite).
我找到了 this post that point to this 说明,但它不起作用。这些是说明
- Open this file /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exception.plist
- Find lines with name xcode in them (http://i.imgur.com/tcKWLhz.png)
- Edit value HardDisabled from YES to NO
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.
我无法使用上面的说明编辑 Exceptions.plist 文件,但经过多次尝试我找到了编辑它的方法。
Here 你可以找到编辑它的说明。
经过这一切,我仍然收到消息
You can't open the application "XCode.app" because it is not supported
on this type of Mac
当我尝试从 Finder运行Xcode6.4
解决方案 1
我唯一没有做的就是在更改后重新安装 XCode 6.4。我重新安装了它,它可以工作了!
解决方案 2
Dave Wood provided another solution to avoid to reinstall XCode. is is post and as he posted in his answer the script is here
Exceptions.plist 中有两个地方列出了 Xcode。您没有列出的是:
<key>com.apple.Xcode</key>
<array>
<dict>
<key>AppStoreIdentifier</key>
<string>497799835</string>
<key>AppStoreUpdateIsFree</key>
<true/>
<key>HardDisabled</key>
<false/>
<key>HighVersion</key>
<string>5085.0</string>
</dict>
</array>
之后需要重新安装Xcode。
这是一个 shell 脚本,可以调整 Xcode 6 并退出,这样您就可以正常 运行 它了。无需弄乱系统例外列表,重新安装或任何东西。只需一分钟左右即可到达 运行。
脚本在这里:http://bit.ly/Xcode6OnElCapitan
注意:当 El Capitan 仍处于测试阶段时,您无法提交基于 El Capitan 构建的应用。
除了原来的第一个答案之外,如果你不想重新安装 xcode 因为互联网连接速度慢,你可以将 xcode 复制到桌面删除应用程序文件夹中的那个(假设你做了上述所有必需的步骤(重新安装除外)。并移回 xcode 到应用程序文件夹(如果您正确执行上述步骤,则复制到桌面本身时,您会注意到复制后剪切图标会消失)
Xcode 6.4 开箱即用:
- El Capitan Beta 4(建造 15A226f)
- El Capitan Beta 5(建造 15A235d)
- El Capitan Beta 7(内部版本 15A263e)
Xcode 6.4 无法打开:
El Capitan Beta 6(内部版本 15A244d)- 解决方法 here
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
sudo mv dyld_sim dyld_sim.orig
用户 lembacon here 找到了解决方案:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib
sudo mv dyld_sim dyld_sim.orig
The reason is that the internal implementation of
_NSGetExecutablePath
has been updated (where the Kernel is
involved), and the host dyld
has also been updated to track this
change. The dyld_sim
, however, has not yet been updated. So the
problem is that _NSGetExecutablePath
will return a path that
contains a executable_path=
part which causes that the
CFBundleGetMainBundle()
always returns NULL
. This workaround
simply forces the simulator to use the host dyld
.
我确认此解决方案适用于 Xcode 6.4.
我正在尝试 运行 Xcode El Capitan 上的 6.4,我可以 运行 按照 但我正在寻找一种方法 运行 它没有任何外部程序,因为我 运行 之前 OSX 10.10 (Yosemite). 我找到了 this post that point to this 说明,但它不起作用。这些是说明 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. 我无法使用上面的说明编辑 Exceptions.plist 文件,但经过多次尝试我找到了编辑它的方法。 经过这一切,我仍然收到消息 You can't open the application "XCode.app" because it is not supported
on this type of Mac 当我尝试从 Finder运行Xcode6.4 解决方案 1 解决方案 2
Here 你可以找到编辑它的说明。
我唯一没有做的就是在更改后重新安装 XCode 6.4。我重新安装了它,它可以工作了!
Dave Wood provided another solution to avoid to reinstall XCode.
Exceptions.plist 中有两个地方列出了 Xcode。您没有列出的是:
<key>com.apple.Xcode</key>
<array>
<dict>
<key>AppStoreIdentifier</key>
<string>497799835</string>
<key>AppStoreUpdateIsFree</key>
<true/>
<key>HardDisabled</key>
<false/>
<key>HighVersion</key>
<string>5085.0</string>
</dict>
</array>
之后需要重新安装Xcode。
这是一个 shell 脚本,可以调整 Xcode 6 并退出,这样您就可以正常 运行 它了。无需弄乱系统例外列表,重新安装或任何东西。只需一分钟左右即可到达 运行。
脚本在这里:http://bit.ly/Xcode6OnElCapitan
注意:当 El Capitan 仍处于测试阶段时,您无法提交基于 El Capitan 构建的应用。
除了原来的第一个答案之外,如果你不想重新安装 xcode 因为互联网连接速度慢,你可以将 xcode 复制到桌面删除应用程序文件夹中的那个(假设你做了上述所有必需的步骤(重新安装除外)。并移回 xcode 到应用程序文件夹(如果您正确执行上述步骤,则复制到桌面本身时,您会注意到复制后剪切图标会消失)
Xcode 6.4 开箱即用:
- El Capitan Beta 4(建造 15A226f)
- El Capitan Beta 5(建造 15A235d)
- El Capitan Beta 7(内部版本 15A263e)
Xcode 6.4 无法打开:
El Capitan Beta 6(内部版本 15A244d)- 解决方法 here
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib sudo mv dyld_sim dyld_sim.orig
用户 lembacon here 找到了解决方案:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib
sudo mv dyld_sim dyld_sim.orig
The reason is that the internal implementation of
_NSGetExecutablePath
has been updated (where the Kernel is involved), and the hostdyld
has also been updated to track this change. Thedyld_sim
, however, has not yet been updated. So the problem is that_NSGetExecutablePath
will return a path that contains aexecutable_path=
part which causes that theCFBundleGetMainBundle()
always returnsNULL
. This workaround simply forces the simulator to use the hostdyld
.
我确认此解决方案适用于 Xcode 6.4.