Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which version of Xcode? #1

Open
bo01ean opened this issue Sep 10, 2014 · 6 comments
Open

Which version of Xcode? #1

bo01ean opened this issue Sep 10, 2014 · 6 comments

Comments

@bo01ean
Copy link

bo01ean commented Sep 10, 2014

With Xcode6 GM (6A313) I get "Playgrounds targeting OS X are not supported in this version of Xcode."

@BradLarson
Copy link
Owner

Unfortunately, Apple split the Mac side of Swift development off into the beta of Xcode 6.1 yesterday. You need to get the Xcode 6.1 beta to be able to use Mac Swift playgrounds. Or stay on one of the previous Xcode 6.0 beta releases.

I believe you should be able to get these to work in the iOS-only Xcode 6 release candidate by pulling up the file inspector and switching the Platform from OS X to iOS. You'll probably need to change the couple of "import Cocoa" lines in there to "import UIKit" or "import Foundation", and you might need to change the references to NSColor in the SceneKitMac playground to UIColor.

@bo01ean
Copy link
Author

bo01ean commented Sep 10, 2014

ok, thanks!

@calvincorreli
Copy link

FYI, I was able to edit the playground by saying Show package contents, then opening contents.xcplayground, then changing this line:

<playground version='3.0' sdk='macosx'>

to this

<playground version='3.0' sdk='iphonesimulator'>

Save, and then you can open it in Xcode.

@asyncanup
Copy link

Cool workaround

@ghost
Copy link

ghost commented Sep 21, 2014

If you open contents.xcplayground with TextEdit it may change the quotes around 'iphonesimulator' to Smart Quotes and it will not open. Replacing Smarties with Dummies does the trick.

@BradLarson
Copy link
Owner

OK, I updated all but the Scene Kit playground to be iOS playgrounds, since Xcode 6.1 might take a little while to get here. The Scene Kit one doesn't want to render when I port the colors, etc. across to UIKit, so I'm leaving that on the Mac for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants