我想要啓動一個Swift Vapor項目。遵循指南here,似乎Homebrew是唯一的選擇。我已經有了MacPorts,並且在很多方面喜歡Homebrew。不幸的是,沒有Vapor的端口,所以我去了Vapor人員描述的SPM安裝here。我以前在Kitura取得過成功,所以我想爲什麼不用Vapor。那麼,當你去建立你的項目,你會得到在macOS上安裝蒸氣而不需要自制軟件
$ swift build
[... build stuff ...]
note: you may be able to install ctls using your system-packager:
brew install ctls
[... more build stuff ...]
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "shim.h"
^
[... more like that ...]
/Users/morpheu5/web/vizex/api/.build/checkouts/crypto.git-7980259129511365902/Sources/Crypto/Cipher/Cipher+Method.swift:1:8: error: could not build Objective-C module 'CTLS'
import CTLS
^
<unknown>:0: error: build had 1 command failures
error: exit(1):/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/morpheu5/web/vizex/api/.build/debug.yaml
顯然,你真的需要這種ctls
包,並獲得它的唯一的方式似乎是通過自制/ TAP。
我真的不想要或不需要自制軟件,那麼我該如何做到這一點?我真的很想給Vapor一個嘗試。
AFAIK,Vapor通過Swift Package Manager安裝。雖然命令行工具非常方便,但它們不是強制性的。 – CloakedEddy