You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Index.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,12 +190,18 @@ let package = Package(
190
190
.product(
191
191
name: "SQLite",
192
192
package: "SQLite.swift")
193
+
],
194
+
// necessary if you have other Package dependencies which explicitly link sqlite3
195
+
linkerSettings: [
196
+
.linkedFramework("SQLCipher")
193
197
]
194
198
)
195
199
]
196
200
)
197
201
```
198
202
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
+
199
205
Within Xcode add your local `AppDependencies` wrapper package as a package dependency and SQLite.swift with SQLCipher functionality will be accessible.
200
206
201
207
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