当我在终端窗口中尝试“swift package”时,会显示以下内容:
dyld: Library not loaded: @rpath/llbuild.framework/Versions/A/llbuild
Referenced from: /Library/Developer/CommandLineTools/usr/bin/swift-package
Reason: image not found
Abort trap: 6
我想这可能与更新到 Xcode 10.2 和 Swift 5 有关?在更新之前,我从来没有弄乱过包管理器。我也不是贝壳大师。
无论如何,如果相关的话,这里是“快速版本”输出:
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0