Getting Crash in the due to CoreData: -[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_device_locked:

In our application we are using the CoreData and added a protection level to it.

When the application is open we are trying to check if the protected data available and then only accessing the CoreData

Check:
[application isProtectedDataAvailable]

Still we are getting random crash when application trying to save the data to CoreData.


Getting Crash in the due to CoreData: -[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_device_locked:
 
 
Q