You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a database package (MySQL, SQLite, etc) and building, it is required to add a linker flag. Currently it is not clear that a flag is required for the build to pass.
Adding MySQL package to Package.swift and vapor build produces this output:
Building Project [Failed]
Command:
swift build 1>&2
Error (1):
Compile Swift Module 'App' (2 sources)
Linking ./.build/debug/App
ld: library not found for -lmysqlclient for architecture x86_64
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
swift-build: error: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-07-25-a.xctoolchain/usr/bin/swift-build-tool -f /Users/{USERNAME}/Desktop/Hello/.build/debug.yaml
Toolchain:
/Users/{USERNAME}/.swiftenv/shims/swift
A more specific error for the missing --mysql flag could improve clarity.
The text was updated successfully, but these errors were encountered:
When adding a database package (MySQL, SQLite, etc) and building, it is required to add a linker flag. Currently it is not clear that a flag is required for the build to pass.
Adding MySQL package to Package.swift and
vapor build
produces this output:A more specific error for the missing
--mysql
flag could improve clarity.The text was updated successfully, but these errors were encountered: