Skip to content

Commit 0e469f2

Browse files
committed
Adds linkerSettings linkedFramework("SQLCipher") to example wrapper package in SQLite.swift with SQLCipher exampler wrapper package documentation along with note explaning why/when it's necessary.
1 parent 0006e28 commit 0e469f2

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)