【问题标题】:Object's persistent store is not reachable from this NSManagedObjectContext's coordinator无法从此 NSManagedObjectContext 的协调器访问对象的持久存储
【发布时间】:2018-11-14 14:28:39
【问题描述】:

我在 iOS 12.0.1 上有以下崩溃日志:

Object's persistent store is not reachable from this NSManagedObjectContext's coordinator
Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x1dae1bef8 __exceptionPreprocess
1  libobjc.A.dylib                0x1d9fe9a40 objc_exception_throw
2  CoreData                       0x1dda6f828 _PFRetainedObjectIDCore
3  CoreData                       0x1dd9a3238 -[NSManagedObjectContext objectWithID:]

如果我不重置持久存储,这怎么可能?

【问题讨论】:

    标签: ios core-data


    【解决方案1】:

    找到您的问题,它与我观察到的崩溃 100% 相似,但不知道如何解决。 在估计设备旋转时的单元高度时,可以从主踏板访问该对象。我认为当应用程序进入后台时可能会发生这种情况。

    2 CoreData _PFRetainedObjectIDCore
    3 CoreData -[NSManagedObjectContext objectWithID:]
    4 CoreData _faultBatchAtIndex
    5 CoreData -[_PFBatchFaultingArray retainedObjectAtIndex:]
    6 CoreData -[_PFBatchFaultingArray objectAtIndex:]
    7 CoreData -[NSFetchedResultsController objectAtIndexPath:]
    
    9 UIKitCore -[UITableView _estimatedHeightForRowAtIndexPath:]
    10 UIKitCore __66-[UISectionRowData refreshWithSection:tableView:tableViewRowData:]_block_invoke
    11 UIKitCore -[UISectionRowData refreshWithSection:tableView:tableViewRowData:]
    12 UIKitCore -[UITableViewRowData numberOfRows]
    13 UIKitCore -[UITableView noteNumberOfRowsChanged]
    14 UIKitCore -[UITableView reloadData]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多