NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault

后端 未结 5 1780
野性不改
野性不改 2021-02-15 14:27

My iOS app uses core data via multiple threads. I am getting some crash reports with the following message: \"\'NSObjectInaccessibleException\', reason: \'CoreData could not ful

5条回答
  •  你的背包
    2021-02-15 14:58

    You could give a try to use :

    shouldDeleteInaccessibleFaults

    property on managed object context. As this article says it should change the behaviour of faulting already deleted object.

    https://cocoacasts.com/what-are-core-data-query-generations/

    Edit: Since iOS 9 (when it was added) this property default value is YES.

提交回复
热议问题