El Capitan 测试版后 Xcode 6.4/7 崩溃
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31803585/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 6.4/7 crashing after El Capitan beta
提问by cyril
I updated my computer to the latest beta that was released to developers last night and the same project that was compiling fine yesterday night now fails due to a supposed .xib/.storyboard error.
我将我的计算机更新到昨晚发布给开发人员的最新测试版,昨天晚上编译正常的同一个项目现在由于假定的 .xib/.storyboard 错误而失败。
I have tried cleaning the project, downloading a previous version off of github, etc.. and yet the project still gives me the following error. "Failed to communicate with Interface Builder"
as well as Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
. Literally nothing was changed with the .storyboard file or anything remotely related to it.
我曾尝试清理项目,从 github 下载以前的版本等,但该项目仍然给我以下错误。"Failed to communicate with Interface Builder"
以及Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
. 实际上,.storyboard 文件或与之相关的任何内容都没有改变。
What's more is that trying to open any .xib/.storyboard file (even the launch screen xib which I haven't touched leads to Xcode crashing which leads me to think this has nothing to do with me.)
更重要的是,尝试打开任何 .xib/.storyboard 文件(即使是我没有接触过的启动屏幕 xib 也会导致 Xcode 崩溃,这让我认为这与我无关。)
Anyone else experiencing this? Any advice or temporary fixes?
还有其他人遇到这种情况吗?任何建议或临时修复?
Update: Trying to run anything on the simulator causes it to crash continuously or hang with the following error message: "Springboard quit unexpectedly"
更新:尝试在模拟器上运行任何东西会导致它持续崩溃或挂起并显示以下错误消息:"Springboard quit unexpectedly"
Update 2: Playgrounds are unusable but do not crash. Also, these lads seem to be in the same boat as we are. https://forums.developer.apple.com/thread/13170
更新 2:游乐场无法使用但不会崩溃。此外,这些小伙子似乎和我们在同一条船上。https://forums.developer.apple.com/thread/13170
This is why we can't have nice things, Apple.
这就是为什么我们不能拥有好东西,苹果。
回答by tokan_one
A workaround was found thanks to "lembacon" on the Apple Developer Forums.
感谢Apple Developer Forums上的“lembacon”找到了一种解决方法。
In Terminal:
在终端:
cd /Applications/Xcode-beta.app (or wherever your Xcode 7 beta 4 is located)
cd Contents/Developer/Platforms/iPhoneSimulator.platform
cd Developer/SDKs/iPhoneSimulator.sdk/usr/lib
sudo mv dyld_sim dyld_sim.orig
Seems to work for iOS projects but watchOS is iffy.
似乎适用于 iOS 项目,但 watchOS 不确定。
EDIT:watchOS solution:
编辑:watchOS 解决方案:
cd /Applications/Xcode-beta.app (or wherever your Xcode 7 beta 4 is located)
cd Contents/Developer/Platforms/WatchSimulator.platform
cd Developer/SDKs/WatchSimulator.sdk/usr/lib
sudo mv dyld_sim dyld_sim.orig
Another Edit:As mentioned by sciasxp, this also works for 6.4. Hopefully we'll get new iOS and Xcode betas soon that permanently fix this.
另一个编辑:正如 sciasxp 所提到的,这也适用于 6.4。希望我们很快就会获得新的 iOS 和 Xcode 测试版来永久解决这个问题。
Another Another Edit:A new iOS beta is out today, as well as a new Xcode beta. This issue should be resolved.
另一个编辑:今天发布了一个新的 iOS 测试版,以及一个新的 Xcode 测试版。这个问题应该得到解决。
回答by nerowolfe
There is one weird fix :
有一个奇怪的修复:
Reinstall Beta 5 by downloading and running the following directly from Apple's CDN. This will restore Xcode but you will loose sound :)
通过直接从 Apple 的 CDN 下载并运行以下内容,重新安装 Beta 5。这将恢复 Xcode,但你会失去声音:)
回答by Leo Natan
Xcode 7.0 beta 5 is out with support for El Capitan beta 6.
Xcode 7.0 beta 5 支持 El Capitan beta 6。
Xcode 7 beta 5 resolves issues with building iOS projects and running the iOS simulator on OS X El Capitan beta 6. (22089926)
Xcode 7 beta 5 解决了在 OS X El Capitan beta 6 上构建 iOS 项目和运行 iOS 模拟器的问题。(22089926)
回答by timv
Running xcode 7.0.1 on ElCapitan with all updates installed and xcode is quitting often as above but not quire often enough that I cant develop for it. Seems to occur when setting constraints and positions in storyboard. iMac is latest and restarted at least once a week as off on weekends so stable as I can make it.
在安装了所有更新的 ElCapitan 上运行 xcode 7.0.1 并且 xcode 经常像上面一样退出,但不够频繁以至于我无法为它开发。在故事板中设置约束和位置时似乎会发生。iMac 是最新的,每周至少重新启动一次,周末关闭,我可以做到这一点。
As with every release of Apple we just need to wait for the updates for xcode and or ElCapitan to fix it.
与 Apple 的每个版本一样,我们只需要等待 xcode 和/或 ElCapitan 的更新来修复它。
So rule is to save/build often to save code before playing around with constraints as its liable to just quit on you.
所以规则是在玩约束之前经常保存/构建以保存代码,因为它很可能会让你退出。
回答by trojanfoe
It's documented in the El Capitan Beta 6 Release Notes, so you cannot blame Apple if you didn't read them.
它记录在 El Capitan Beta 6发行说明 中,所以如果你没有阅读它们,你不能责怪 Apple。
Known Issues
- Xcode 6.x has known compatibility issues when run on OS X El Capitan. It is strongly encouraged that you use Xcode 7 when running on OS X El Capitan.
已知的问题
- Xcode 6.x 在 OS X El Capitan 上运行时存在已知的兼容性问题。强烈建议您在 OS X El Capitan 上运行时使用 Xcode 7。
EDITMostly the tone of this answer was brought about by the "This is why we can't have nice things, Apple." statement in question, implying the OP thinks he has a god-given right to use beta operating systems without impunity.
编辑这个答案的基调主要是由“这就是为什么我们不能拥有好东西,Apple。” 有问题的声明,暗示 OP 认为他拥有使用测试版操作系统而不受惩罚的上帝赐予的权利。