Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which directories are deleted in the sandbox of an App during update

I cache some downloaded information in the NSLibraryDirectory in an App. However after a recent update the users report having problems accessing the previously downloaded content in the Library directory.

Which directories are safe to cache information over new app versions? Is there any Apple documentation on this? I couldn't find any...

thanks a lot, e.

like image 993
Engin Kurutepe Avatar asked Jan 12 '11 11:01

Engin Kurutepe


People also ask

How do I delete files from sandbox?

The window is displayed when the Sandbox Menu > Sandbox > Delete Sandbox command (or the corresponding command from the Tray Icon Menu) is invoked. The window is also displayed if the sandbox is configured for automatic delete (see Sandbox Settings > Delete > Invocation), and any files are eligible for Quick Recovery.

Do IOS apps run in a sandbox?

All third-party apps are “sandboxed,” so they are restricted from accessing files stored by other apps or from making changes to the device. Sandboxing is designed to prevent apps from gathering or modifying information stored by other apps.

What is sandbox folder Mac?

Overview. The App Sandbox is an access control technology that macOS provides and enforces at the kernel level. The sandbox's primary function is to contain damage to the system and the user's data if the user executes a compromised app.


1 Answers

from Apple Application Programming Guide:

Files Saved During Application Updates When a user downloads an application update, iTunes installs the update in a new application directory. It then moves the user’s data files from the old installation over to the new application directory before deleting the old installation. Files in the following directories are guaranteed to be preserved during the update process:

<Application_Home>/Documents
<Application_Home>/Library 

Although files in other user directories may also be moved over, you should not rely on them being present after an update.

like image 146
Engin Kurutepe Avatar answered Sep 27 '22 18:09

Engin Kurutepe