我们正在尝试使用 Jazzy 和 Xcode7.3 为 Swift2.2 生成文档。我们有 2 个环境:本地开发环境(Macbook)和用于中央构建的服务器机器。
我们在 Xcode、命令行工具、Ruby 等两台机器上都有完全相同的设置,但在服务器 Jazzy 中失败并出现以下错误:
jazzy-0.5.0/lib/jazzy/sourcekitten.rb:137:in `run_sourcekitten': Unable to find an Xcode with swift version 2.2. (RuntimeError)
from .../gems/jazzy-0.5.0/lib/jazzy/doc_builder.rb:57:in `block in build'
from .../gems/jazzy-0.5.0/lib/jazzy/doc_builder.rb:55:in `chdir'
from .../gems/jazzy-0.5.0/lib/jazzy/doc_builder.rb:55:in `build'
from .../gems/jazzy-0.5.0/bin/jazzy:15:in `<top (required)>'
from .../jazzy/bin/jazzy:23:in `load'
from .../jazzy/bin/jazzy:23:in `<main>'
很多人建议使用,--swift-version 2.2
但这对我不起作用.. :(
我们是否需要发送任何其他参数来消除此错误..?