Need help fast - CoreData error

I need help desperately before the demonstration in a few hours ... The application worked on my test device last night. Added some data (as I always do) this morning, and now I get this error during the save operation:

        Serious application error.  Exception was caught during Core Data change processing:
    *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value
(key: _ContentChange_OldIndexPathKey) with userInfo (null)

        *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
    reason: '*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value
(key: _ContentChange_OldIndexPathKey)'

The funny thing is that if I upload my sqlite file to my Mac and upload it to the simulator, everything will be fine. The accident occurs only on the test device.

Any ideas?

0
source share
2 answers

. NSFetchedResultsController , . , NSFetchRequest, . , NSFetchedResultsController, .

+4

, :)

, NSFethedReultController .

[NSFetchedResultsController deleteCacheWithName:<cacheName>];
+4

All Articles