Unable to open Swift Guided Tour Playground

When I try to open the Swift Guided Tour Playground from the Apple e-Book, he says: β€œThe document cannot be opened because it is from the new version of Xcode. As far as I can tell, I use the latest non-beta version and I'm not working yet with Swift 2.0, still learning the first version: Are all the playgrounds for working with the beta version of Xcode 7 or something like that updated? I use Xcode 6.3.2, a case that is not really the newest version.

+5
source share
5 answers

I have the same problem with xcode 6.3.2. I had a problem when I downloaded it from the ibook link. As soon as I downloaded it through us, it worked. https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-ID1

My previous version was playground version = '1.0', and the new one too. But it includes many new libraries.

+3
source

I have this problem too, and finally I open it in order, it is just a problem with loading your .playground file:

@Xcelleratr Download the file here:

https://developer.apple.com/library/mac/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html

It will be fine my friend :)

+1
source

works for the Xcode version:

Version 6.3.2 (6D2105)

Version 7.0 beta (7A120f)

I assume that it was damaged, can check it: Right clicking on the playground file > show package contents > open contents.xcplayground in a text editor such as sublime, and see the playground version='3.0' at the top

If it is higher, it will appear with the error you saw.

0
source

Just in case, someone came across this problem, here's what happened to me:

  • Download from the manual page .
  • Save it with the extension .zip instead of .playground, as shown in the figure:

enter image description here

  1. Double-click the downloaded file, it will unzip it, and you will get your actual GuidedTour.playground file.

enter image description here

0
source

Therefore, if you have a playground file and it only opens xcode, not a managed playground, right-click on the fle playground and show the contents of the package, then go to contents.xcplayground and right-click and open in text the editor.

I had to change this line ...

Display mode = "raw">

to ....

Mode display = "render">

then save, and when you come back and open the playing field, everything should be in order.

0
source

All Articles