Saturday, February 19, 2011

Xcode Organizer cannot overwrite an existing file

There is a bug in the Xcode's Organizer (version 3.2.5) where if you try to save a build to an existing file, it will not throw any errors and look like you saved successfully.  Here is how to reproduce the issue:


  1. Open a project in Xcode
  2. Go to Build->Build and Archive
  3. In Window->Organizer click on your project under "Archived Applications".
  4. In the list of builds, click on the one you just built.
  5. Click on the "Share..." button.
  6. A dialog pops up to save the file.  Go ahead and save it to a new file.
    1. Take note of the modified date.
  7. Repeat steps 1 through 6.  Only this time, save it to the same file in step 6.
  8. Notice that the modified date did not change.  
You can also put the saved file in step 6 into iTunes then place the "updated" file from step 7 into iTunes.  You'll notice that iTunes does nothing.  It doesn't prompt you to overwrite the app or nothing.  If you save to another file and place that new file into iTunes, it will prompt you asking if you want to overwrite the app.

This bug has caused us to delay our recent app.  We first uploaded the app and found a bug.  So we rejected the binary, rebuilt and "overwrote" the ipa file.  We re-uploaded what we thought was the updated build, waited a week or so, and downloaded the app when it got approved only to find out the bug was still in the build.  It was first thought that the old build was uploaded.  However, after a few trials of ad hoc testing, it was discovered that the build did not get overwritten.

No comments:

Post a Comment