Hello guys,
As far as I know, the Core Data store is stored in the application's documents directory. If the user updates the application through App Store, all the data will be removed, right? Can I save data to another place?
Thanks
Hello guys,
As far as I know, the Core Data store is stored in the application's documents directory. If the user updates the application through App Store, all the data will be removed, right? Can I save data to another place?
Thanks
Actually, the data should be fine. However, you will have to perform a migration if you changed the data model in the new version of your app.
Hi,
I have a similar problem.
My datamodel is composed by static entities and user updatable ones. In an application update, I'd like to add some records to the static part.
I thought about following solution:
- create a text file with new records and save it in application Resources;
- in applicationDidFinishLaunching, search for the file, if found read it and update the static part of the database, leaving safe the user data. Then, delete the text file or store somewhere the information that the db has been updated.
Could be this the right approach?
Is it possible to achieve the same goal using standard Apple's migration tools, given that the new version of the database will include only more prefilled records and not data model changes? In this case, the user data will be migrated from the old to the new db.
Stangely enough, I was not able to find some example on this among Apple documentation.
Thanks,
Mike