繁体   English   中英

Xcode 8.3中损坏的游乐场

[英]Playgrounds broken in Xcode 8.3

自从我开始使用Xcode 8.2(以及最近的8.3)以来,游乐场对我来说是完全崩溃了。

打开操场时,我看到消息“无法启动过程。返回错误:连接中断”

完全重新安装Xcode或删除/重新创建/ private / tmp文件夹(如其他一些帖子所述)无济于事。

有人遇到过类似的问题吗? 还有其他已知的解决方法吗? 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}

Timing的创建者注意:从Timing 1.8.1和Timing 2.0开始不再出现此问题。

在MacBook上的Xcode 8.3.x中,iOS游乐场可以正常运行,但是MBP出现启动模拟器错误。 MacBook是旅行用的,因此仅有少量应用程序。 特别是,它在状态菜单栏中的应用程序图标更少。

因此,在我的MBP上,我退出了所有不在MB上的那些文件,嘿,presto,操场跑了! 我一步一步地启动了应用程序,正是Timing带来了启动模拟器错误-关闭菜单栏图标再次修复了该问题,即使Timing应用程序本身仍在运行。

尤其不选择时间; 可以是菜单栏中的任何快速访问应用。

在此之前,我已经重新安装了Sierra,但没有全新安装。 那将是下一步。

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

您是否尝试过通过XCode删除派生数据?

Shift+Alt+Command+K

或最快的方法是打开终端并超过以下条件:

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

另外,请确保没有模拟器或其他版本的游乐场在后台运行。

(不幸的是)我通过全新安装macOS解决了这个问题(当然,这不是解决问题的正确方法,但我需要尽快让游乐场工作)。

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


我不知道这是否有任何帮助,但最好将其发布。

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

之后在Google上进行搜索,发现了类似的问题

阅读了问题之后,我记得我有另一个项目在打开,其中我大量使用IBDesignable进行测试。 关闭该项目并重新启动操场解决了我的问题。

这可能与操场无关,但是确实解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM