2016-07-24 54 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

然后用你下面的教程继续。