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

**URL:** <https://discuss.zetetic.net/t/ios11-file-is-encrypted-or-is-not-a-database-after-updated/2297>\
**Category:** Issues\
**Created:** [August 8, 2017, 1:43pm UTC](https://discuss.zetetic.net/t/ios11-file-is-encrypted-or-is-not-a-database-after-updated/2297 "2017-08-08T13:43:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oremag14jf](https://avatars.discourse-cdn.com/v4/letter/o/f6c823/32.png) [@oremag14jf](https://discuss.zetetic.net/u/oremag14jf)\
**Post date:** [August 8, 2017, 1:43pm UTC](https://discuss.zetetic.net/t/ios11-file-is-encrypted-or-is-not-a-database-after-updated/2297/1 "2017-08-08T13:43:56Z")

</div>

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 [https://www.zetetic.net/sqlcipher/ios-tutorial/](https://www.zetetic.net/sqlcipher/ios-tutorial/) . 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:  
3.4.1

---

<div class="post-metadata">

**Author:** ![wgray](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/wgray/32/843_2.png) [@wgray](https://discuss.zetetic.net/u/wgray)\
**Post date:** [August 8, 2017, 1:46pm UTC](https://discuss.zetetic.net/t/ios11-file-is-encrypted-or-is-not-a-database-after-updated/2297/2 "2017-08-08T13:46:53Z")

</div>

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.
