This will require a small edit to SQLite (one line, find the F_FULLFSYNC usage and change to F_BARRIERFSYNC) and then using PRAGMA fullfsync = ON. WIthout this change, a hard reset of an iOS device (and likely any device) can cause file corruption of the database.
This will require a small edit to SQLite (one line, find the
F_FULLFSYNC
usage and change toF_BARRIERFSYNC
) and then usingPRAGMA fullfsync = ON
. WIthout this change, a hard reset of an iOS device (and likely any device) can cause file corruption of the database.