1

Anyone have any idea what could cause this kind of problem? I don't have any additional context but am confused as to how this could be happening. For what it's worth, I try to add our persistent store to the coordinator on app launch and if unsuccessful, remove the database file and recreate it. Thank you.

NSInternalInconsistencyException: Fatal error. The database at /var/mobile/Applications/1A2D247A-AB6C-4FDF-A9A6-31935BB76188/Documents/Tumblr.sqlite is corrupted. SQLite error code:11, 'database disk image is malformed'

1 Answer 1

0

I'd suggest make sure you close the database when you're done using it, or if you're keeping the database connection open for any reason, make sure that your app delegate's applicationWillTerminate closes the database and cleans up, as appropriate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.