Skip to content

Adds linkerSettings to example wrapper package in documentation for SQLCipher.swift integration#1354

Merged
jberkel merged 1 commit intostephencelis:masterfrom
R4N:sqlcipher-linker-settings
Mar 8, 2026
Merged

Adds linkerSettings to example wrapper package in documentation for SQLCipher.swift integration#1354
jberkel merged 1 commit intostephencelis:masterfrom
R4N:sqlcipher-linker-settings

Conversation

@R4N
Copy link
Contributor

@R4N R4N commented Mar 5, 2026

There was recently an SQLite.swift + SQLCipher integration issue raised where SQLCipher wasn't being used when following the integration instructions using a wrapper package: #1351

This issue was caused because there were additional dependencies in the wrapper package which explicitly linked standard sqlite3. If standard sqlite3 is linked first instead of SQLCipher, it will be used instead of SQLCipher and SQLCipher encryption won't be enabled.

Linking SQLCipher first will give it priority and ensure it's used. This pull request adds a linkerSettings section to the example wrapper package in the SQLite.swift + SQLCipher documentation which includes this linkerSettings:

            linkerSettings: [
              .linkedFramework("SQLCipher")
            ]

…ackage in SQLite.swift with SQLCipher exampler wrapper package documentation along with note explaning why/when it's necessary.
@jberkel jberkel merged commit a26a5f2 into stephencelis:master Mar 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants