Skip to content

Commit a26a5f2

Browse files
authored
Merge pull request #1354 from R4N/sqlcipher-linker-settings
Adds linkerSettings to example wrapper package in documentation for SQLCipher.swift integration
2 parents 0006e28 + 0e469f2 commit a26a5f2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/Index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,18 @@ let package = Package(
190190
.product(
191191
name: "SQLite",
192192
package: "SQLite.swift")
193+
],
194+
// necessary if you have other Package dependencies which explicitly link sqlite3
195+
linkerSettings: [
196+
.linkedFramework("SQLCipher")
193197
]
194198
)
195199
]
196200
)
197201
```
198202

203+
_Note: It's important to include the linkerSettings to link SQLCipher framework first if you have any other Package dependencies in your wrapper package which explicitly link standard sqlite3. This ensures SQLCipher is linked first and properly used._
204+
199205
Within Xcode add your local `AppDependencies` wrapper package as a package dependency and SQLite.swift with SQLCipher functionality will be accessible.
200206

201207
Using the `SQLCipher` trait will cause SQLite.swift to include a dependency on SQLCipher.swift and enable `Connection` methods to set and change the database key:

0 commit comments

Comments
 (0)