-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPM - Undefined symbols for architecture x86_64 #577
Comments
You need to pass in some linker flags, see the docs: $ swift build -Xlinker -lsqlite3 Not sure if there's an easy way around that. |
This works. Have a great day @jberkel |
@jberkel I think the linker flag problem has been solved in the Perfect-sqlite3-support project. Maybe useful? |
Hm, it looks like this is by design, you can't specify linker flags in side the package itself: |
It seems like this should be possible to avoid in SPM using the approach described in the SPM documentation for depending on a system library. The last comment from @jberkel suggested that this limitation is by design, but reading the history of the linked SPM PR it seems to apply only to additional flags like |
I have made a SQLite.swift fork that I have tagged with 0.11.2, so that I can use it with SPM. I have not made any commits.
When I try to build, then I'm getting errors like this:
Package.swift
Setup
The text was updated successfully, but these errors were encountered: