Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SQLCipher #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

robertmryan
Copy link
Contributor

I removed old SQLCipher file and re-added it via Cocoapods and the crash went away. You must have been using an outdated SQLCipher implementation.

You can update SQLCipher however you want. I’ve done it via Cocoapods here. So, note that you’ll need to open .xcworkspace not .xcodeproj.

Also note that if you already have unencrypted db in Documents path, you might get cryptic "26 - file is not a database" message. You’ll need to key it. Probably easiest to just remove the db and then run the app (which will recreate it, with key).

* Added SQLCipher commands to confirm that encryption works properly
* Moved "open db" code into method that also sets the key

Note,

* If you already have unencrypted db in Documents path, you might get cryptic "26 - file is not a database" message.
* Make sure to open `.xcworkspace` not `.xcodeproj`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant