Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode iOS organizer submit to app store yields "The archive is invalid" error

I just switched from Xcode 3 to 4. When I attempt to upload an app that I have archived to the organizer, I receive this error:

The archive is invalid. /var/folders/.../app.ipa does not exist.

archive is invalid. app.ipa does not exist.

This happens after I log in to itunes connect, select the application to update and select next. I am not sure where to begin trying to figure out what is causing this error. Please let me know if I am leaving out anything that would be useful for diagnosing. Thanks

like image 499
Dobler Avatar asked Mar 30 '11 08:03

Dobler


4 Answers

I just faced this problem myself, and I seem to have found a solution to it. Even though the correct provisioning profile seems to be selected, it might not be.

Try to manually navigate the list of possible provisioning profiles and select the correct one. Do not leave the setting on automatic selection.

In the "Identity:"-list, make sure it does not say "Currently matches...". Manually select the correct one yourself.

That should fix the problem and you should be able to upload to the AppStore.

like image 58
Simen Øian Gjermundsen Avatar answered Oct 01 '22 17:10

Simen Øian Gjermundsen


Okay, so when you install the Xcode 4 package, make sure you have the "Unix Tools" option selected. This was the problem in my case.

like image 25
Dobler Avatar answered Oct 01 '22 17:10

Dobler


If you are running an Xcode beta version (Apple calls it a "developer preview") you will get this error because you're not allowed to submit apps from a beta version. This restriction is not mentioned in the Read Me file or on the Xcode download page. To submit an app, you will need to uninstall Developer Tools, then reinstall the latest non-beta version, then restart your computer.

Here's the command-line command to uninstall:

sudo /Developer/Library/uninstall-devtools --mode=all
like image 40
arlomedia Avatar answered Oct 01 '22 17:10

arlomedia


  1. Quit Xcode
  2. With a text editor open the file YourProject.xcodeproj/project.pbxproj
  3. Delete all lines containing PROVISIONING_FILE =
  4. Delete all lines containing CODE_SIGN_IDENTITY =
  5. Save & close project.pbxproj
  6. Reopen your project in Xcode
  7. Clean the project
  8. In the Build Settings pane choose the correct code signing identity
  9. Rebuild
like image 28
par Avatar answered Oct 01 '22 17:10

par