Coredata - “NSObjectInaccessibleException - CoreData could not fulfill a fault”

前端 未结 4 711
无人及你
无人及你 2021-01-30 21:39

I am new to Core data and still figuring out the nuts and bolts and this error has been bugging me for hours and I cant seem to find a solution. Any help is greatly appreciated.

4条回答
  •  情深已故
    2021-01-30 22:33

    For info, yesterday, I had the same error. I checked in a live version of the app, and it was still there. yikes.

    I ran through all the permutations of adding info to the core data stack until the crash occurred.

    I then looked at the sqlite file from the app in the simulator library using SqliteManager. I found a data error in one table. This had occurred as there is a starter db used the first time the app was run. The error was in the starter db.

    Ran the app again, testing each field in each table. Found several more occurrences. I remember reading this question, and thought maybe someone else could benefit from my mistake.

提交回复
热议问题