0
CoreData: error: Serious application error.
Exception was caught during Core Data change processing.
This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification.
-[__NSCFSet removeObject:]: attempt to remove nil with userInfo (null)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFSet removeObject:]: attempt to remove nil'
应用程序在保存上下文操作时崩溃。 (该情况为:我的tableView执行SEGUE,进入,但即使是修改destinationViewController什么,当我在的tableView应用程序崩溃删除行删除被管理对象时核心数据崩溃
NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
[context deleteObject:[self.fetchedResultsController objectAtIndexPath:indexPath]];
// Save the context.
NSError *error = nil;
if (![context save:&error]) {
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
NSLog(@"Unresolved error2 %@", [error localizedDescription]);
abort();
}
BTW:。删除所有数据库,但它没有帮助。 – Shmidt
没有足够的信息继续。该调试器转储是通用的。你在使用线程吗?在两个不同的线程上是否有多个上下文或相同的上下文?堆栈中较高的代码将告诉我们更多。 – TechZen
请看现在 - 我更正了这个职位 – Shmidt