Master Data - Sending App Store Updates

Basically, when I have an application in Xcode, I change the sqlite / coredata database and try to run it on a device that already has the application, after which the application crashes. I need to uninstall the application and reinstall it.

I updated the database in an application that has already been submitted to the application store. There were about 100 downloads, and now I want to send an update. Will people who have already downloaded it have problems with it? How can I make sure they do not? The old database will not have the data that I will need to be honest, but I worry that the application simply will not start at all.

Thanks tom

+4
source share
2 answers

From your description, I can say that you changed the model of the managed object with changing the version of the repository.

Check out this tutorial (there may be a Mac version, but it must be valid) here .

However, if you omit the migration (since you said that users will not have any data in the repository for sure), you can always change the repository path so that it loads another repository. However, if you plan on any updates and further development of the application, I highly recommend reading about the migration of master data.

+4
source

Yes, the application will probably work when working with the old db.

Apple released interesting documentation on the release and migration of Core Data: Core Data Programming and Data Migration Guide

If you read this document, you will learn how to avoid crashes with updated coredata databases.

+2
source

All Articles