在新安装的Vapor(来自homebrew
)上,我打电话:
vapor new Bridge
->成功vapor xcode
->成功y
(询问是否要在Xcode中打开项目)->打开Xcode项目vapor --version
-> 3.1.10vapor build
->失败我得到的错误是:
[1/3] Compiling App configure.swift /Users/josh/Applications/Xcode/Projects/Bridge/Sources/App/configure.swift:31:49: error: reference to member 'sqlite' cannot be resolved without a contextual type migrations.add(model: Todo.self, database: .sqlite) ~^~~~~~ [2/3] Compiling App app.swift
版本号:
10.15.3 (19D76)
11.4 (11E146)
3.1.10
5.2
对解决该错误的任何帮助,我们深表感谢!让我知道是否可以提供更多信息。谢谢!
在全新安装的Vapor上(从自家安装),我叫:vapor new Bridge->成功vapor xcode->成功y(询问是否要在Xcode中打开项目)->打开Xcode项目vapor --version-> 3.1.10 ...
是的,蒸气3在Swift 5.2上遇到编译问题https://forums.swift.org/t/vapor-3-swift-5-2-regression/34764