Core Data Save Context Error

Hi Team,

I am using NSPersistent store container, when calling save context method I am getting below error.

Can you please help me out to figure out what exactly the issue is -:


Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=256 "The file “FileName.sqlite” couldn’t be opened." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/77BD98A1-5EF1-4EF6-8F53-827F820F1238/Library/Application Support/FileName.sqlite, NSSQLiteErrorDomain=10, NSUnderlyingException=disk I/O error}, ["NSUnderlyingException": disk I/O error ( 0 CoreFoundation 0x00000001818d6da4 <redacted> + 252 1 libobjc.A.dylib 0x0000000180a905ec objc_exception_throw + 56 2 CoreData 0x00000001841af760 <redacted> + 2932 3 CoreData 0x0000000184225f84 <redacted> + 124 4 CoreData 0x00000001842a8ba4 <redacted> + 84 5 libdispatch.dylib 0x00000001811c8ae4 <redacted> + 16 6 libdispatch.dylib 0x00000001811d1640 <redacted> + 56 7 CoreData 0x00000001842a8aa0 <redacted> + 256 8 CoreData


Your Help would be appreciate.




Thanks

Amit Gupta

Core Data Save Context Error
 
 
Q