我最近删除了 Xcode 5 并在我的 Mac 上安装了 Xcode 6 GM。我在 Swift 中启动了一个新的 iOS 项目,并成功运行了许多 XCT 单元测试。
为了解决一个简单的编码问题(涉及 floor 函数的使用),我在应用程序中创建了一个 playground 文件。不幸的是,每次我使用它时它都会崩溃,并显示以下消息“Playground 执行终止,因为 playground 进程意外退出。”。
重新启动 Xcode 无法解决问题。此外,在重新启动 Xcode 后会忘记“打开最近...”菜单中列出的任何内容,即使它在重新启动之前就在那里。
我猜有些基本的 Xcode 设置搞砸了。任何想法表示赞赏。
最佳答案
我遇到了同样的问题,并在控制台应用程序中收到了这些消息。
Blockquote Xcode[2092]: [MT] IDEPlaygroundEditor: Error encountered attempting to run playground: Error Domain=IDEPlaygroundErrorDomain Code=1 "An error occurred while trying to communicate with a helper application. You may need to restart Xcode before playgrounds will run again." UserInfo=0x7fd580130350 {NSLocalizedDescription=An error occurred while trying to communicate with a helper application. You may need to restart Xcode before playgrounds will run again.}
重新启动 Xcode 没有帮助,但重新启动我的 mac 解决了问题。
关于ios - Xcode 6 GM - 无法使用 Playground ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25832110/