Save context Error with core data

We have an Enterprise App that has been running fine in iOS 9 and I have been testing in iOS 10 beta 3 and have no updated to beta 4. However we have an issue in that when we call save context after creating a new object it crashes and I can't seem to work out why.


The error message is as follows:

Unresolved error Error Domain=NSCocoaErrorDomain Code=132001 "(null)" 
UserInfo={message=attempt to recursively call -save: on the context aborted,


Somehting has obviously changed and the way that we are dealing with an accessing the NSManagedObjectContext, has anyone else experienced this when upgrading from iOS 9 to iOS 10? The applicaiton is still build with objective c as we haven't had the resources to make the jump to swift.

I had the same issue and searched for the reason for several -save: I found that the previous developer had implemented a -save: in the getter of one model. So this might be the case for you as well.

I have a similar issue when modifying and saving an object. However, the data seems to be fine

I'm also having the same issue. Did anyone happen to figure out the root cause?

I was getting this error on ios10 only because I had a saveContext call in NSManagedObjectContextObjectsDidChange

ios9 and below has always been fine. Maybe it was still incorrect practice but didn't cause a crash.


- (void)controller:(NSFetchedResultsController*)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath*)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath*)newIndexPath
Save context Error with core data
 
 
Q