You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues and this is not a duplicate.
General information
Library version(s): 4.0.1
OS version(s): 9.3.1
Devices/Simulators affected: I've only tried it on a 6s and 6s Plus
Reproducible in the demo project (Yes/No): Yes
Related issues: Affects creating a stack from the CoreDataStackFactory using createStack()
Expected behavior
Should be able to rebuild an empty model and create a stack by calling createStack() after calling removeExistingStore on CoreDataModel
Actual behavior
Fails, throwing a bunch of model errors (see below). I was able to resolve the issue by deleting the model's associated .sqlite-shm an .sqlite-wal files (these are files auto generated at sqlite db creation time in newer versions of iOS)
I was able to determine that deleting the .sqlite-shm and .sqlite-wal files - which live in /Documents, right next to the .sqlite database - fixed the problem.
Steps to reproduce
Call removeExistingStore on your current core data model, attempt to rebuild somewhere thereafter by rebuilding your core data stack using CoreDataStackFactory's createStack()
Crash log? Screenshots? Videos? Sample project?
Error as it appears in the console: CoreData: error: (522) I/O error for database at [path to sqlite db]. SQLite error code:522, 'not an error' 2016-06-04 15:12:58.537 Golf[6313:1458291] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///[path to sqlite db] options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; } ... returned error Error Domain=NSCocoaErrorDomain Code=522 "(null)" UserInfo={NSSQLiteErrorDomain=522, NSUnderlyingException=I/O error for database at [path to sqlite db]. SQLite error code:522, 'not an error'} with userInfo dictionary { NSSQLiteErrorDomain = 522; NSUnderlyingException = "I/O error for database at [path to sqlite db]. SQLite error code:522, 'not an error'"; }
The text was updated successfully, but these errors were encountered:
New issue checklist
README
and documentation.General information
Expected behavior
Actual behavior
I was able to determine that deleting the .sqlite-shm and .sqlite-wal files - which live in /Documents, right next to the .sqlite database - fixed the problem.
Steps to reproduce
Crash log? Screenshots? Videos? Sample project?
The text was updated successfully, but these errors were encountered: