Ios11 "file is encrypted or is not a database" after updated


Expected Behavior
Access the encrypted database successfully.

Actual Behavior
"file is encrypted or is not a database"

Steps to Reproduce
My iOS project included SQLCipher cloned SQLCipher directly into the same folder, as indicated in . This works fine, but when I migrated to ios11, my project not works.
It appears error “sqlite3_key is invalid in C99”. I reported this problem here: #225
I’ve change SQLCipher included by Pods, and the error “sqlite3_key is invalid in C99” disappear. But now, when I run my app, it show me the error “file is encrypted or is not a database”.

SQLCipher version:


Hi @oremag14jf thanks for reposting here! Did my suggestion on the GitHub Issue help at all? If it was unclear:

  • In Xcode select File > Add Files to “Your Project Name”
  • Navigate to the sqlite3.h in your project and select it
  • Before clicking Add on the chooser window, click the Options button
  • Check that no targets are selected

Then, I’d quit Xcode, clear out ~/Library/Developer/Xcode/DerivedData, re-launch, and try a fresh build to see if the unresolved symbols issue returns.