Looking for some concrete detail on how version to version upgrade works in iOS, specifically what happens to bundle content that has been removed in the new version? For example, if version 1.0 has a file called "foo.png" in the bundle, but version 2.0 does not, does iOS remove the existing foo.png during upgrade? Or does it leave it there? Thanks, alex
The way to think about it is this:
All your app-stored data, documents, and user defaults stay exactly where the are. The new version of your app will wake up to find all that state still there and need to handle it correctly. But none of the old app bundle's resources are there, though-- you don't need to worry about seeing upgrades and versioning of those things.
Upgrading removes all old files. You will only have the files that belongs to your target in the bundle after updating.
This is actually crucial. Say you delete a nib. If it isn't actually deleted, it will still be initialized from simply being in the file system of the bundle. And you will probably not have IBOutlets etc in your view controller for connections in the xib you deleted. This will cause the application to crash when initializing the nib.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With