CoreData: error: Serious application error. Exception was caught during Core Data change processing

前端 未结 2 518
借酒劲吻你
借酒劲吻你 2021-02-09 05:07

Hi I\'m getting crash,

when i\'m trying to insert 1000 records into db in back ground, i\'m getting following exception: CoreData: error: Serious application error

2条回答
  •  我寻月下人不归
    2021-02-09 05:41

    Are you accessing the database from two threads simultaneously?, using same context? That may be the reason. see this question

    Problems Adding to NSMutableArray: attempt to insert nil object at 10

提交回复
热议问题