简体   繁体   English

在Xcode 6 beta中尝试使用Swift的游戏时出错

[英]Error when I try playground for Swift in Xcode 6 beta

I encountered the following error when I create and open a playground for Swift, any solution for it? 当我为Swift创建和打开一个游乐场时,我遇到了以下错误,它的解决方案是什么?

Error running playground.
Failed to prepare for communication with playground. 

我遇到了同样的问题,但重启xCode6-beta似乎解决了这个问题。

For me the restarting XCode 6 did not solve the problem. 对我来说,重启XCode 6并没有解决问题。 So I restarted the Mac. 所以我重新启动了Mac。 It worked afterwards. 之后它起作用了。

This tutorial was helpful: http://www.raywenderlich.com/74438/swift-tutorial-a-quick-start 本教程非常有用: http//www.raywenderlich.com/74438/swift-tutorial-a-quick-start

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创建游乐场 - >开始并选择“开始使用游乐场”正在显示“运行游乐场时出错。无法找到合适的目标设备”

Creating playground using the path Xcode->File->New and then choosing playground => No errors 使用路径Xcode-> File-> New创建游乐场,然后选择playground => No errors

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

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