Apple have honed the command line tools to make a little more sense. The compiler executable that was also responsible for “immediate” mode, or shell-like execution, has been split into two.
The compiler is now known as
swiftc (which makes perfect sense to me), and
swift defaults to immediate mode, therefore you no longer need to use the
alias swiftc="/Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc" [peacock@trashcan ~]$ cat sup.swift println("'sup, Swift?") [peacock@trashcan ~]$ swiftc sup.swift [peacock@trashcan ~]$ ./sup 'sup, Swift?
And of course, the new magic line at the top of your Swift scripts simply needs to be altered to
#!/usr/bin/env xcrun swift