【问题标题】:Trouble getting Vapor to work with Xcode 8 beta 3无法让 Vapor 与 Xcode 8 beta 3 一起使用
【发布时间】:2016-11-27 14:21:14
【问题描述】:

我按照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

据此,我可以得出我的 swift 位置错误(我不记得更改它)并且我的 xcode 内部版本号错误(因为 xcode beta 2 不再可供下载,所以我得到了 xcode beta 3 .)

谁能帮我在不做太多改动的情况下让它工作,或者这个框架仍然太挑剔而无法使用稍微不同的设置?

【问题讨论】:

    标签: swift vapor


    【解决方案1】:

    不幸的是,由于每个预览版的变化很大,因此不可能创建在不同的 Swift 3 开发预览版之间工作的包。今天编译的东西明天可能无法编译,并且无法在代码中选择性地针对给定的预览。

    因此,必须使用在 https://github.com/qutheory/vapor#-current-environment 中为给定 Vapor 版本声明的 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 预览版,应该会在几天内发布。

    【讨论】:

    • Vapor 0.15 今天发布了!
    【解决方案2】:

    打开 Xcode 并确保选择了正确的 SDK: ? Xcode > 首选项 > 位置 > 命令行工具

    选择 XCode 8

    然后继续您正在学习的教程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-10
      • 2017-07-10
      • 1970-01-01
      相关资源
      最近更新 更多