You have been looking at the correct place (the Encryption chapter in GRDB-4.0 branch).
Manual installation of SQLCipher is no longer available in GRDB 4. The reason for this is that SQLCipher, since its own version 4, no longer ships any Xcode project that one can embed. There has been an attempt at recreating this Xcode project inside GRDB itself, but it was aborted.
- Manual installation of GRDB+SQLCipher is no longer a ready-made installation method.
- CocoaPods is the only ready-made solution.
- GRDB is no longer tied to a specific SQLCipher version (and this is good news for both GRDB users and maintainers).
We may restore support for manual installation of GRDB+SQLCipher in the future. Nobody I know is currently working on this contribution.
GRDB will use SQLCipher with the following setup:
- GRDB is compiled with both the
GRDBCIPHER flags set.
- GRDB is not linked with the system SQLite library.
- The SQLCipher library is available in a module named "SQLCipher".
Step 1 will instruct GRDB to enable SQLCipher apis.
Step 2 will avoid any conflict between SQLCipher and SQLite.
Step 3 allows GRDB to import SQLCipher under the expected name.
I'm not sure I know how to achieve this setup in your project.
Many thanks Pat :-)