iOS app what happens when a running app is upgraded

Hi,


When an app is running, and it is upgraded (via test flight upgrade or normal upgrade from app store), is the old version of the app still running until it's restarted?


Reason I ask is, that one of my testers was seeing behavior from a previous build. This behavior was not seen from 2 other testers with the new builds on their devices. But that one tester never killed the app after the upgrade.

After she killed the app and restarted it, the behavior was gone.


Hence this question.


Thanks in advance,

Anthony

Replies

When an app is updated, the new version is written out to a new space, then certain assets are copied over, finally, the old app is deleted.


The app itself is loaded into memory, so what your user in this case may have experienced was more than likley related to how much of that app was being held in memory/cache vs. how badly the system may have needed that space, etc. etc.


The point is that how an update manifests is subjective, and without being able to replicate what a given user experiences in a controlled testing scenario, the details can't be pinpointed. Anything can occur on the fly.