CoreData inconsistency caching error snafu
CoreData inconsistency caching error snafu
- Subject: CoreData inconsistency caching error snafu
- From: Alexander Reichstadt <email@hidden>
- Date: Mon, 26 Dec 2011 02:46:11 +0100
Hi,
On Xcode 4.2 I am getting some error that makes no sense to me and all similar reports on the web don't seem to apply:
CoreData: FATAL ERROR: The persistent cache of section information does not match the current configuration. You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:
After I reset the simulator device it works once, I quit the app, launch it and get the same message. The first launch I did make a fetch, it downloads some data and puts them into the sqlite core data store, then I call
[self saveContext];
If I don't call saveContext, my data is not saved, and next launch it needs to download it all over again. If I do save I get aforementioned message.
At the end of the message which also lists all objects in core data, it states:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'CoreData: FATAL ERROR: The persistent cache of section information does not match the current configuration. You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:'
When looking at the documentation on deleteCacheWithName, things make even less sense to me, because I never cached anything.
Please, could someone help?
Thanks
Alex
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden