我按照here的说明操作,但无法在我的Mac上运行蒸汽。这是我的xcode和swift版本
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 beta 3 。)
任何人都可以帮助我在不改变太多的情况下使用它,或者这个框架是否仍然过于挑剔而无法使用略有不同的设置?
答案 0 :(得分:1)
不幸的是,由于每次预览有多少变化,因此无法创建在不同Swift 3开发预览之间工作的软件包。今天编译的东西明天可能无法编译,也无法在代码中有选择地定位给定的预览。
因此,对于给定的Vapor版本,在https://github.com/qutheory/vapor#-current-environment中声明的Swift版本必须是使用的版本。
Vapor 0.14依赖于Xcode 8 beta 2附带的Swift 3.0预览2版本。目前没有办法下载Xcode 8 beta 2,因为Apple已经在Xcode 8 beta 3发布时停止托管它。那是疏忽。
Vapor 0.15不会依赖Xcode 8 beta预览,应该会在几天内发布。
答案 1 :(得分:0)
打开Xcode并确保选择了正确的SDK: Xcode&gt;偏好&gt;地点&gt;命令行工具
选择XCode 8
然后继续您正在学习的教程。