Hi everyone.
I develop application and I have strange crash when I try to use photo library. I receive crash and this log message when try to present modally UIImagePickerController:
2016-09-26 18:45:11.876042 AAA[936:62863] [error] error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 options:{
NSPersistentStoreFileProtectionKey = NSFileProtectionCompleteUntilFirstUserAuthentication;
NSReadOnlyPersistentStoreOption = 1;
NSSQLitePersistWALOption = 1;
NSSQLitePragmasOption = {
"journal_mode" = WAL;
};
} ... returned error Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo={reason=Failed to access file: 1} with userInfo dictionary {
reason = "Failed to access file: 1";
}
2016-09-26 18:45:11.876327 AAA[936:62863] [Migration] Unexpected error opening persistent store <private>, cannot attempt migration <private>)
2016-09-26 18:45:11.876605 AAA[936:62863] [Migration] Failed to open store <private>. Requires update via assetsd (256: <private>)
2016-09-26 18:45:11.878019 AAA[936:62863] [error] error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 options:{
NSPersistentStoreFileProtectionKey = NSFileProtectionCompleteUntilFirstUserAuthentication;
NSReadOnlyPersistentStoreOption = 1;
NSSQLitePersistWALOption = 1;
NSSQLitePragmasOption = {
"journal_mode" = WAL;
};
} ... returned error Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." UserInfo={reason=Failed to access file: 1} with userInfo dictionary {
reason = "Failed to access file: 1";
}
2016-09-26 18:45:11.878170 AAA[936:62863] [Migration] Store open/configuration failed on 2nd attempt: <private>
Can anybody tell me what I can do with this?