Our app do not work anymore on iOS 9 and 10 since we have migrated to xCode 10 (mandatory now to load an app on the store) . I was working like a charm on xCode 9..
We believe that this is due to a bug in xCode 10 when accessing SQLite. It occurs only on iOS 9 and 10 but works well on iOS 12.
Here are the symptoms:
Using libsqlite3.tdb (apple binding to sqlite3), could'not write to sqlite database in application documnet directory.
Error code returned is SQLITE_IOERR (disk error).
Database file is created correctly but is zero sized.
Same code is functioning correctly when used on IOS 12.1.
.
And the configuration:
XCODE : 10.1
Target SDK : 9.5 or 12.1
Target Device : IOS 9.3, 10.1
Same code is functioning correctly when used on IOS 12.1.
Has anybody got the same problem ? Any idea for a workaround ? We are currently thinking about loading a native version of SQLite in the app instead of using the apple version. (The app is Avalon Offshore. It makes an intensive use of SQLite)
Thanks,
Phil