My Vapor and Vapor-MySQL setup died after I tried newer versions in my Package.swift file.
Ultimately, I wanted a Package.swift that included the following:
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 0, minor: 16),
.Package(url: "https://github.com/vapor/mysql-provider.git", majorVersion: 0, minor: 4)
Then I ran
vapor build --mysql
That worked. No errors reported.
Then I flipped to Xcode to build the project and hit run.
I then hit a lot of Framework errors. "Pathindexable". "CryptoEssentials" and "Node" frameworks. Seemed to be linker errors.
I then ran vapor clean
. Cleaned my project in Xcode. No joy.
Any idea why this did not work?
The missing command was:
vapor xcode --mysql
This automatically prompts you to open Xcode and fixes the linker errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With