FetchedResultsController Swift 3 API Misuse: Attempt to serialize store access on non-owning coordinator

后端 未结 3 568
野性不改
野性不改 2021-02-13 14:11

I\'m attempting to use a fetchedResultsController to handle the results in my UITable.

It works initially when the program starts up. Then when I switch back to the inv

3条回答
  •  北海茫月
    2021-02-13 15:02

    In case this helps anyone else who gets the "API Misuse: Attempt to serialize store access on non-owning coordinator" error - I was getting the error because I accessed an object in a singleton that had not been destroyed and was still using the old NSManagedObjectContext after I reset the NSPersistentStore and NSManagedObjectContext.

提交回复
热议问题