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