Which folder will be cleared when updating the iOS application

We know that iOS has NSDocumentDirectory, NSCachesDirectory, and NSTemporaryDirectory (), so which folder will be cleared when the iOS application is updated to a newer version? folder with cache or temporary folder? and will the temporary folder be cleared after the application exits?

+4
source share
1 answer

From the docs:

* When a user downloads an application update, iTunes installs the update in a new application directory. It then deletes user data files from the old installation into the new application directory before uninstalling the old installation. Files in the following directories will be saved during the upgrade process:

Application_Home / Documents

Application_Home / Library

Although files in other user directories may also be moved, you should not rely on them to be present after the upgrade. *

I recommend that you read the application runtime

+5
source

Source: https://habr.com/ru/post/1341918/


All Articles