Updating iTunes apps?

Discussion in 'iOS Programming' started by samdev, Aug 31, 2012.

  1. macrumors regular

    Sep 16, 2011
    I know that XCode 4 does not delete old resource files, on both the Simulator and iPhone devices,
    when debugging apps. I have to reset everything to get back to a clean slate.

    Question is, does iTunes work the same way as XCode? Or does it completely replace the
    app bundle when updating?
  2. macrumors 604


    Nov 26, 2007
    Xcode works the same way. Resources are replaced during updates. Documents and shared preferences are not. Apple has a more extensive list somewhere in their docs saying which directories are and are not cleared during app updates.
  3. samdev, Sep 1, 2012
    Last edited: Sep 1, 2012

    thread starter macrumors regular

    Sep 16, 2011
    I understand that resources are overwritten or replaced. My concern is resources that are
    moved during an update. For example, an app that has now been localized (images, nibs, etc...).

    So, if iTunes works like XCode, there will now be two conflicting copies of the same resource
    in different locations.

    You may say then, well, don't move it! Well, doesn't help, because when you start localizing files,
    XCode creates new folders called en.lproj, es.lproj, etc... and moves all of your original files
    into these folders. So, your files are moved, whether you like it or not.
  4. macrumors 604


    Nov 26, 2007
    And what's the issue with localized files being moved? I had an app that was originally English only... I had no issues when I added a German localization.
  5. macrumors 68030


    Sep 2, 2008
    Installing an ipa file with iTunes is NOT like installing an app from within Xcode. The entire bundle is replaced when an app is installed as an ad hoc or from the app store.

    You can easily test this with an ad hoc install over an existing install.
  6. thread starter macrumors regular

    Sep 16, 2011
    Before the update, all non-localized files are dumped into the top bundle folder.

    After the update, if these non-localized files still exist, they will get loaded first.
    iOS will ignore your localized files.

    I hope so!

Share This Page