Post

Replies

Boosts

Views

Activity

Reply to Intermittent crash when saving to Core Data
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 Tags:
Dec ’21
Reply to Intermittent crash when saving to Core Data
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 Tags:
Replies
Boosts
Views
Activity
Dec ’21