Xcelleratr
Xcelleratr

Reputation: 85

Can't open Swift Guided Tour Playground

When I try to open the Swift Guided Tour playground from Apple's e-Book, it says "the document can't be opened because it is from a newer version of Xcode. As far as I can tell, I'm using the newest non-Beta version, and I'm not working with Swift 2.0 yet, still learning the first version. Have all the playgrounds been updated to work with Xcode 7 Beta or something? I'm using Xcode 6.3.2, just in case that isn't actually the newest version.

Upvotes: 5

Views: 2084

Answers (5)

Tony Merritt
Tony Merritt

Reputation: 1197

So if you have a playground file and it only opens xcode and not a guided playground, right click the playground fle and show package contents, then go to contents.xcplayground and rightclick and open with text editor.

I had to change this line...

display-mode='raw'>

to ....

display-mode='rendered'>

then save and when you go back and open the playground it should be ok now.

Upvotes: 0

Seto
Seto

Reputation: 1646

Just in case someone stumbled upon this problem, here is what happened to me:

  1. Download from guided tour page.
  2. Save it with .zip extension instead of .playground, as seen in this picture:

enter image description here

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

enter image description here

Upvotes: 0

Steven Huong
Steven Huong

Reputation: 40

I got that problem too, and finally i open it OK, that just problem with where you download your .playground file:

@Xcelleratr Download your file here:

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

It will be OK my friend :)

Upvotes: 1

Smug
Smug

Reputation: 327

I got the same issue with xcode 6.3.2. I got the issue when I downloaded it via ibook link. Once I downloaded it via we, 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 also same. But it includes lots of new libraries.

Upvotes: 3

Iain Smith
Iain Smith

Reputation: 9703

works for Xcode version:

Version 6.3.2 (6D2105)

Version 7.0 beta (7A120f)

Im guessing it was corrupted could check it by: Right clicking on the playground file > show package contents > open contents.xcplayground in a text editor like sublime and look for playground version='3.0' near the top

If this is any higher it will pop up with the error you seen.

Upvotes: 0

Related Questions