I recommend enabling all the debugging support for Core Data in Xcode. See here for more… https://useyourloaf.com/blog/debugging-core-data/
most often, a crash during save means you created an NSManagedObject in one context, and tried to save in another context. Also, you should be doing a save within the thread owned by the context, like this
context.perform {
// load objects
// make changes
try context.save()
}
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: