Skip to content

Instantly share code, notes, and snippets.

@gnarmis
Last active August 29, 2015 14:02
Show Gist options
  • Save gnarmis/0d08ad5603014efea52f to your computer and use it in GitHub Desktop.
Save gnarmis/0d08ad5603014efea52f to your computer and use it in GitHub Desktop.
Swift on the Command Line
So, this is where swift lives, after you've installed XCode 6 Beta:
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
Also, there's a directory named swift which has various libraries:
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift
To start playing in a terminal:
export PATH=/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH
You could also change this in XCode 6's Preferences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment