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

后端 未结 5 1763
野性不改
野性不改 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:59

    You can check the NSManagedContext is existed when you use the NSManagedObject. like this:

    if (obj.managedObjectContext)
    {
        //do things
    }
    

提交回复
热议问题