ios - Xcode 6 GM - 无法使用 Playground

标签 ios xcode swift swift-playground

我最近删除了 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/

相关文章:

iOS - 收到推送通知后显示 View

iphone - CALayer 的目的?

ios - 代码未通过 plist 获取环境变量

database - 从 firebase 数据库检索数据并快​​速操作

swift - 按下时未检测到按钮?

swift - 如何在 Swift 中将带有递归数组的结构体转换为类?

iphone - 将 IBOutlet 连接到 UITextField 后出错

iphone - 运行 montouch 应用程序时的 JIT/AOT 问题

ios - 随机生成节点

iphone - 奇怪的图标行为