Sqlite3 crashes on iOS 9.0 device

I have developed an application that uses a SQLite database. It worked fine, up to iOS 8.4 on iOS simulators and devices, but on iOS 9.0 it crashes because the "database locked" error on a physical device, works fine on iOS 9.0 simulator.

It gives error in SQLiteManager.m

Note:

  • I am using XCode 7.0 Beta 3

  • My physical device has iOS 9.0 Beta 3 which is the same version of my iOS simulator

  • I set the build target to 9.0, which initially showed a lot of warnings, but I updated all deprecated stuff in the code to match iOS 9.0, like UIAlertControllerView, etc.

  • There are no warnings in the code.

  • I tried to remove and re-add both libsqlite3.0 and libsqlite libraries. But the bug still exists.

  • I read a lot of blogs and even Stack Overflow related to this and found a solution to write sqlite3_close (database) and sqlite3_finalize (command) after executing the command, and I did that too, but the output still failed.

+3


source to share


1 answer


There was a compatibility issue. It has been automatically resolved since the release of X Code 7 and iOS 9 Beta 5.



0


source







All Articles