[swift-users] How to get Swift 2.3 in command line?

Zhao Xin owenzx at gmail.com
Thu Aug 11 01:43:01 CDT 2016


There are two toolchains under Xcode-beta.app/Contents/
Developer/Toolchains/.

> Swift_2.3.xctoolchain/
> XcodeDefault.xctoolchain/


So in a terminal. input

> export PATH=/Applications/Xcode-beta.app/Contents/Developer/
> Toolchains/Swift_2.3.xctoolchain/usr/bin:"${PATH}"


After I did that, when I input swift, it would be 2.3, but when I type
xcrun swift, it was still 3.0 or 2.2.

Any idea?​

Zhaoxin​
​


On Thu, Aug 11, 2016 at 12:44 PM, Zhao Xin <owenzx at gmail.com> wrote:

> I try to change command line tool from Xcode 8.0(8S193k) to Xcode
> 7.3.1(7D1014), who lead me to swift 3.0 or swift 2.2. I need Swift 2.3 to
> build Realm Cocoa from its source.
>
> Any idea?
>
> Zhaoxin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160811/be1b8b57/attachment.html>


More information about the swift-users mailing list