I downloaded the Swided languages GuidedTour.playground.zip file from
https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html
Unzip it as GuidedTour.playground, open it in Xcode 6.1.1, then an error message will appear:
Error running playground. Unable to find suitable target device.
I click OK to close the error message window. Return to the venue called "A Swift Tour". There is no way out for any inline code. And every time I try to edit some code, an error message appears again and again.
Some people on the Internet had the same problem and it was solved by adding some devices to the menu Window → Devices → SIMULATORS. I did this, but the error continues to show.
If I click File → New → Playground to create a test site, this error message will not appear and the test code will be run.
A week ago, I replaced the hard drive in my iMac in early 2008 with an SSD (Solid State Disk), restored the entire system to an SSD from my Time Machine backup. Everything looks good until I found out that Xcode is starting to refuse to run the tutorial "A Swift Tour". Before replacing the SSD, Xcode launched it. Could this be related?
xcode swift ios-simulator swift-playground
Alvapan
source share