-
Notifications
You must be signed in to change notification settings - Fork 23
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
Comments
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. |
ok, thanks! |
FYI, I was able to edit the playground by saying Show package contents, then opening contents.xcplayground, then changing this line:
to this
Save, and then you can open it in Xcode. |
Cool workaround |
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. |
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. |
With Xcode6 GM (6A313) I get "Playgrounds targeting OS X are not supported in this version of Xcode."
The text was updated successfully, but these errors were encountered: