33

Is is possible to code using Swift on OS X Mavericks? I found the manual on iBooks but that's as far as I can get right now.

Matthieu Riegler
  • 21,486
  • 11
  • 59
  • 97
James
  • 868
  • 4
    James, I'm going to make some minor edits to this so it doesn't mention pre-release OS X versions but stays true to what you're asking to do. – Ian C. Jun 02 '14 at 20:56
  • Not only can you, you probably should. If your job is to write code, depending on a beta OS and a beta IDE might be more instability than what you propose here. – bmike Jun 06 '14 at 15:51

4 Answers4

32

To code using Swift you'll need Xcode 6.

Xcode 6 beta is compatible with Mavericks 10.9.3 and upwards so yes it is possible to write Swift code in Mavericks!

NB: As of July 11, Xcode 6 beta is available freely on Apple's website.

Matthieu Riegler
  • 21,486
  • 11
  • 59
  • 97
8

You can write iOS apps with Swift in Xcode 6 Beta. Go to the Apple Dev center to get the newest Xcode. I would keep my stable version of Xcode installed as the beta may be a little buggy, but it will get you started till a stable version gets release which will probably this fall.

1

Currently the only way to use Xcode for Swift programming is through the Beta version of Xcode 6. However, in order to download the Beta you must join (or be a member of) the iOS Developer Program or the Mac Developer Program.

1

The final XCode 6 has released and is available in the App Store. (to be precise, I'm talking about Version 6.0.1 (6A317)).
I was surprised to see that (in contrast to XCode 6 beta) it does support Swift only for iOS! (Look at this screenshot, this is what I see when trying to create a Swift playground; also, Swift can be choosed as a language for iOS project, but not for OS X project)

Display Name
  • 1,533