Hello, I am trying to use SqlCipher in a large codebase that uses SwiftPM and already uses Sqlite3. I removed all explicit linking to Sqlite3 and added the dependency to the static library built from SqlCipher source code. However, the linker keeps linking to the system Sqlite3 automatically. (which I can confirm by running otool -L on the executable)
I tried in a vanilla app that does not use SwiftPM to turn off automatic linking by setting the Link Frameworks and Libraries Automatically
( SWIFT_MODULES_AUTOLINK
) to No and if the code has any Sqlite3 imports the build fails as expected.
I am wondering if there is a way to achieve the same thing using SwiftPM?