Xcode 4 can't create IPA files after being restored from a time machine backup

Originator:mike.akers
Number:rdar://9506250 Date Originated:26-May-2011 01:59 AM
Status:Insufficient information Resolved:
Product:Developer Tools Product Version:4.02
Classification:Other Bug Reproducible:Always
 
The operation couldn’t be completed. No such file or directory


Summary:

I installed a new hard drive in my Macbook Pro, and after restoring my system from a time machine backup, xcode could no longer create IPA files from an xcarchive. Deleting my /Developer directory and reinstalling Xcode fixes the problem.

Steps to Reproduce:

1. Create an iOS xcode project configured for app store or enterprise distribution. Confirm that you can generate an IPA file from an xcarchive of the project in the xcode organizer.
2. Backup the system to Time Machine
3. Erase the hard drive
4. Re install Snow Leopard
5. Use migration assistant to restore the system from the time machine backup created in step 2
6. Apply all Software updates up to Mac OS X 10.6.7 (not sure if this step is required, but this is part of what I did)
7. Open the project from step 1 in xcode
8. Open the Xcode organizer
9. Select the "Archives" tab
10. select the archive that was created in step 1
11. click "share"
12. click "next"
13. click "save"

Expected Results:

An valid IPA file should be saved.

Actual Results:

Xcode fails to generate the IPA. A sheet appears with the message "The operation couldn’t be completed. No such file or directory."

See attached screenshot of the error message (Identical to http://i.imgur.com/SZnGY.png)

Re archiving the project does not solve the problem. The only solution is to reinstall xcode.

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!