Here I’ve got a question concerning releasing update of the application in app store.
- Suppose I’ve an application installed on my iPhone, which has some database inside, i.e. overtime user has entered info and the data were kept locally.
- If the new version of application is released, and installed on my iPhone. Will the database be lost ?
I suppose all the information of the application, is removed and the update is installed like a new app. Please confirm.
Thanks
No the users data will not be lost.
When you update an app only the bundle data will be updated, meaning the
.appdirectory of the installed app. Any other directory, likeDocumentsandLibrarywill not be touched.If there is any data in for example the
Documentsdirectory that need updating then you have to write code to detect that and make the necessary changes.If the database is used by Core Data then you will need to version and migrate the data.