2016-07-24 61 views
3

我按照說明here,但無法在我的Mac上得到蒸氣工作。我這裏還有我的Xcode和迅速的版本蒸氣與Xcode 8 beta 3一起工作時遇到困難

Xcode 8.0 
Build version 8S174q 

Apple Swift version 3.0-dev (LLVM 8fcf602916, Clang cf0a734990, Swift 000d413a62) 
Target: x86_64-apple-macosx10.9 

當我嘗試使用此命令

curl -sL toolbox.qutheory.io | bash 

安裝不成功安裝工具箱,併產生此消息

⚠️ It looks like your Command Line Tools version is incorrect. 
Make sure Xcode > Preferences > Locations > Command Line Tools is set correctly. 
Correct: Xcode 8.0 (8S162m) 
Current: Xcode 8.0 
Build version 8S174q 

⚠️ It looks like your Swift install location has been modified. 
Correct: /usr/bin/swift 
Current: /Users/<name>/.swiftenv/shims/swift 

❌ Incompatible 

Reason: Invalid Swift version 
Output must contain 'swiftlang-800.0.33.1' 

Current 'swift -version' output: 
Apple Swift version 3.0-dev (LLVM 8fcf602916, Clang cf0a734990, Swift 000d413a62) Target: x86_64-apple-macosx10.9 

    Visit our docs for step-by-step instructions on installing Swift correctly. 
http://docs.qutheory.io 

    or Join our Slack and we'll help you get setup. 
http://slack.qutheory.io 

由此看來,我可以收集我的迅速位置是錯誤的(我不記得改變它),並且我的xcode內部編號是錯誤的(因爲xcode beta 2不再可供下載,所以我得到了xcode測試3.)

任何人都可以幫助我得到這個工作,而不會改變太多,或者是這個框架仍然太挑剔與一個稍微不同的設置工作?

回答

1

不幸的是,由於每次預覽會發生多少變化,因此無法創建適用於不同Swift 3開發預覽的軟件包。今天編譯的東西可能不會在明天編譯,也無法選擇性地在代碼中定位給定的預覽。

因此,對於給定的Vapor版本,在https://github.com/qutheory/vapor#-current-environment中聲明的Swift版本必須是使用的版本。

Vapor 0.14依賴於Xcode 8 beta 2附帶的Swift 3.0 preview 2版本。目前沒有辦法下載Xcode 8 beta 2,現在Apple已經停止在Xcode 8 beta 3發佈時託管它。是一個疏忽。

Vapor 0.15不會依賴於Xcode 8 beta預覽版,應該會在幾天內發佈。

+0

好的。期待它。謝謝! – Maz

+0

蒸氣0.15今天發佈! – tanner0101

0

打開Xcode和確保正確的SDK選擇: 的Xcode>首選項>位置>命令行工具

選擇的XCode 8

然後用你下面的教程繼續。