在Xcode 8.3中破碎的游乐场

自从我开始使用Xcode 8.2(最近8.3)以来,操作系统对我来说已经完全破坏了。

当我打开一个游乐场时,我看到消息“无法启动过程。错误返回在答复:连接中断”

完全重新安装Xcode或删除/重新创build/私人/ tmp文件夹(一些其他职位build议)没有帮助。

有人遇到类似的问题? 还有其他已知的解决方法吗? ( http://www.openradar.me/31296836 )

以下是CoreSimulator.log的一些示例输出

Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down} Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error from finding pasteboard support port, Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down} Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down} Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down} Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error from finding pasteboard support port, Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted} 

时序创build者的注意:这个问题不再发生在时序1.8.1和时序2.0。

iOS操作系统在MacBook上的Xcode 8.3.x中正常工作,但是我的MBP上出现了启动模拟器错误。 MacBook是为了旅行,所以有一个最小的应用程序集。 特别是,状态菜单栏中的应用程序图标较less。

所以在我的MBP上,我放弃了那些不在MB上的东西,嘿,快跑,操场跑了! 我开始一个一个的应用程序,这是Timing ,带回了启动模拟器错误 – closures菜单栏图标再次修复,即使时间的应用程序本身仍在运行。

特别是不要selectTiming。 可以是菜单栏中的任何快速访问应用程序。

在此之前,我已经重新安装了Sierra,但不是一个干净的安装。 那将是下一步。

苹果公司的工程师提供的解决方法在退出Xcode defaults write com.apple.dt.xcode IDEPlaygroundDisableSimulatorAlternateFramebuffer -bool YES后,在terminal下运行命令defaults write com.apple.dt.xcode IDEPlaygroundDisableSimulatorAlternateFramebuffer -bool YES

你有没有试过通过XCode删除你的派生数据?

Shift+Alt+Command+K

或者最快的方法是打开terminal,并通过以下内容:

 rm -rf ~/Library/Developer/Xcode/DerivedData 

同时确保没有模拟器或其他版本的游乐场在后台运行。

(不幸的是)我通过清理安装macOS解决了这个问题(当然,这不是解决问题的正确方法,但是我需要尽可能快地去操场)。

tl; dr在检查是否安装了所有模拟器(在Xcode设置>组件)后,我的问题就消失了,closures了大量使用IBDesignable并重新启动操场的所有项目。


我不知道这是否有帮助,但也可以发布;

我检查的第一件事是如果我有所有的iOS模拟器安装在Xcode。 令人惊讶的更新到Xcode 8.3也删除了我的iOS 10.0模拟器; 重新安装模拟器并重新打开Xcode。

之后在google上search了一下,发现了一个类似的问题 。

在阅读了我记得的问题之后,我还打开了一个其他项目,其中我正在使用IBDesignable进行testing。 closures这个项目并重新开始操场解决了我的问题。

这可能与游乐场无关,但它确实解决了我的问题。