Reputation: 3
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
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