[Swift-devel] OS X Yosemite

David Kelly davidkelly at uchicago.edu
Wed Oct 29 18:50:17 CDT 2014


Hello,

This weekend I upgraded to OS X Yosemite. Today I was trying to run Swift
on my laptop and got:

$ swift -version

xcrun: error: active developer path ("/Library/Developer/CommandLineTools")
does not exist, use `xcode-select --switch path/to/Xcode.app` to specify
the Xcode that you wish to use for command line developer tools (or see
`man xcode-select`)

Took me a second to figure out what was going on there. There is now a
/usr/bin/swift command related to Apple's new Swift programming language.
The fix is just to adjust PATH so Swift's installation directory is added
before /usr/bin. Finder also recognizes and tries to open any files with a
.swift extension in the mac code editor.

Not a huge issue, but perhaps a potential source of confusion for new users.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20141029/e33739ed/attachment.html>


More information about the Swift-devel mailing list