I keep on getting “save operation failure” after any change on my Xcode Data Model

后端 未结 8 1652
囚心锁ツ
囚心锁ツ 2020-12-07 17:00

I started using Core Data for iPhone development. I started out by creating a very simple entity (called Evaluation) with just one string property (called evaluationTopic).

相关标签:
8条回答
  • 2020-12-07 17:45

    this is due to your database change because in app there is other database and in Library/Application Support/iPhone Simulator/User/Applications there is other database ....so DELETE the databse from application folder works for me.

    0 讨论(0)
  • 2020-12-07 17:51

    Michael's answer fit my case.
    I modified the core data model and starts getting this error.
    My solution was remove the app(hold HOME and CROSS the app) and relunch the app. Problem solved!

    0 讨论(0)
提交回复
热议问题