diff --git a/Documentation/Index.md b/Documentation/Index.md index 1e4661e3..7a90ad30 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -190,12 +190,18 @@ let package = Package( .product( name: "SQLite", package: "SQLite.swift") + ], + // necessary if you have other Package dependencies which explicitly link sqlite3 + linkerSettings: [ + .linkedFramework("SQLCipher") ] ) ] ) ``` +_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._ + Within Xcode add your local `AppDependencies` wrapper package as a package dependency and SQLite.swift with SQLCipher functionality will be accessible. 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: