2016-01-02 57 views
-2

如何運行swift 2.1?swift的錯誤版本

我安裝了Xcode 7.0.1,但是當我在終端中運行swift時,我獲得了2.0版本。

> swift -v 

Apple Swift version 2.0 (swiftlang-700.0.59 clang-700.0.72) 
Target: x86_64-apple-darwin14.5.0 
/Applications/Xcode.app/Contents/Developer/usr/bin/lldb "--repl=-target  x86_64-apple-darwin14.5.0 -enable-objc-interop -sdk    
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -color-diagnostics" 
Welcome to Apple Swift version 2.0 (700.0.59 700.0.72). Type :help for assistance. 

我想Xcode7包括SWIFT 2.1

+0

XCode 7.1應該包含Swift 2.1。 –

回答