Core Data migration problem: “Persistent store migration failed, missing source managed object model.”

后端 未结 5 1230
耶瑟儿~
耶瑟儿~ 2020-12-16 19:36

The Background

  • A Cocoa Non Document Core Data project with two Managed Object Models.
  • Model 1 stays the same. Model 2 has changed, s
5条回答
  •  青春惊慌失措
    2020-12-16 20:20

    When I got this error, I had updated my core data models but not cleared the app instance from my test phone. This meant the models saved to core data on the phone did not match what I was trying to use in the code.

    I removed the app from the phone and re-built/ran successfully.

提交回复
热议问题