在 Xcode 6 beta 中尝试为 Swift 操场时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24008251/
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
Error when I try playground for Swift in Xcode 6 beta
提问by user1270242
I encountered the following error when I create and open a playground for Swift, any solution for it?
我在为 Swift 创建和打开 Playground 时遇到以下错误,有什么解决方案吗?
Error running playground.
Failed to prepare for communication with playground.
采纳答案by Gravity M
For me the restarting XCode 6 did not solve the problem. So I restarted the Mac. It worked afterwards.
对我来说,重新启动 XCode 6 并没有解决问题。所以我重新启动了Mac。后来它起作用了。
This tutorial was helpful: http://www.raywenderlich.com/74438/swift-tutorial-a-quick-start
本教程很有帮助:http: //www.raywenderlich.com/74438/swift-tutorial-a-quick-start
回答by Waruna
I'm experiencing the same problem, but restarting xCode6-beta seems to solve it.
我遇到了同样的问题,但重新启动 xCode6-beta 似乎可以解决它。
回答by Krishna
On Xcode 6.1.1
在 Xcode 6.1.1 上
Creating playground using the path Xcode->Start and selecting "Get Started With a Playground" is giving "Error running playground. Unable to find suitable target device"
使用路径 Xcode->Start 创建 Playground 并选择“Get Started with a Playground”会给出“Error running playground. Unable to find合适的目标设备”
Creating playground using the path Xcode->File->New and then choosing playground => No errors
使用路径 Xcode->File->New 创建 Playground 然后选择 playground => No errors