قالب وردپرس درنا توس
Home / IOS Development / What happens to local files on iOS when the app is updated?

What happens to local files on iOS when the app is updated?



My iOS app writes to local files for:

  / var / mobile / Containers / Data / Application / A ... / Library / a.txt

When the app is updated, it gets a new application container ID and folder:

  / var / mobile / Containers / Data / Application / B ...

What happens to all the files I wrote to container ID A?

Is there an "update hook" that allows me to copy all A container files to path "B"?

Can New version of the app (B) read old version files (A)?

Is there any documentation of what happens to the file system during updates?

Is it possible to recover files from container A after B is installed?


Source link