NSManagedObjectContext save doesn't crash but breaks on objc_exception_throw

后端 未结 5 850
一向
一向 2021-01-05 10:23

I am having the same issue described at this address http://www.cocoabuilder.com/archive/cocoa/288659-iphone-nsmanagedobjectcontext-save-doesn-crash-but-breaks-on-objc-excep

5条回答
  •  死守一世寂寞
    2021-01-05 11:09

    I had a similar problem, eventually it turned out to be because of an observer of NSManagedObjectContextDidSaveNotification that was deallocated without removing itself from the notification center. It seems that the CoreData exception "hides" the unknown selector exception that is raised when the notification center tries notifying whatever object occupies the memory freed by the registered (but deallocated) observer.

提交回复
热议问题