Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What precisely happens when iOS installs an update to an app?

Tags:

xcode

iphone

What is the official, documented behavior when you install an update to an app?

This question asks the same thing, but the answer, which says that the app bundle is replaced but all other folders are untouched, does not provide any documentation. I have reason to believe that the app bundle, in fact, is not replaced, so I'd like to know for sure.

Please link to documentation!

like image 336
Jesse Beder Avatar asked Mar 07 '11 22:03

Jesse Beder


People also ask

How do iOS app updates work?

In order to allow future updates, the app copies all textures/images from the main bundle to the Documents directory (which is not altered when an app is updated). When the app starts, it checks if the required textures exist in the Documents folder.

What happens when you update apps?

You can update your Android apps and the Play Store app one at a time, all together, or automatically. Updating your apps to the latest version gives you access to the latest features and improves app security and stability.

Do apps update when you update iOS?

On your iPhone and iPad, apps that you download from the App Store are automatically updated by default.

What happens after iPhone software update?

When you update to the latest version of iOS, your data and settings remain unchanged. Before you update, set up iPhone to back up automatically, or back up your device manually.


1 Answers

From the iOS Application Programming Guide (see the "Files Saved During Application Updates" section within "The File System"):

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.

What you're seeing in the Why isn't my iPhone app bundle replacing the old one during an update? question is an issue where Xcode doesn't correctly detect/push updated resources to the device, which is a very different scenario.

like image 122
John Parker Avatar answered Oct 28 '22 15:10

John Parker