I have an iOS app that uses sqlite3 and I\'m facing issues with multi-threading crashing the app with the illegal multi-threaded access to database connec
sqlite3
illegal multi-threaded access to database connec
Use please SQLite Shared-Cache Mode https://www.sqlite.org/sharedcache.html
sqlite3_open_v2(path.path, &db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_SHAREDCACHE, nil) != SQLITE_OK
SQLITE_OPEN_SHAREDCACHE
Reliable 100% :)