Beto Rivera
Beto Rivera

Reputation: 3

iOS App crashes when it's updated in the AppStore, but not when it's installed in Xcode

I'm using CoreData in my app. When I modify an entity or attribute, upload it to the AppStore and try to update it, it crashes. I have to uninstall and download again. Is there a way to bypass this and that my update automatically deletes the outdated version and installs the latest version? How can I resolve this in the most user friendly and efficient way?

Upvotes: 0

Views: 139

Answers (1)

Arasuvel
Arasuvel

Reputation: 3012

You need to create a new core data model and migration.

Please use the tutorial: https://code.tutsplus.com/tutorials/core-data-from-scratch-migrations--cms-21844

Upvotes: 1

Related Questions