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

前端 未结 21 1160
萌比男神i
萌比男神i 2021-01-01 18:35

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

相关标签:
21条回答
  • 2021-01-01 18:52

    I solved this same problem by deleting all of the expired signing certificates from my Keychain. Xcode seems to just grab the first one it finds with the given name, regardless of whether it's still valid.

    0 讨论(0)
  • 2021-01-01 18:56

    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.

    0 讨论(0)
  • 2021-01-01 18:58

    I tried everything including reinstalling xcode4 with unix tools. NOthing works. I assume I shouldnt have to do this as I'm able to submit other apps without issues. I'm just having this issue with a partiular project (coming from xcode3).

    I even created a project from scratch, imported all the code over and tried again - failed. so it's not only my project but something in it. So I've started the process of creating a new project, adding some files, then submitting, then rejecting to figure out what's causing it. This is working so far.

    update: ok - it has something to do with using CorePlot and linking it in as a library. and voila - found the answer here. Can't submit app with CorePlot using Xcode4 Solution: when submitting select "Don't resign"

    0 讨论(0)
  • 2021-01-01 18:58

    Here is how I solved it:

    1. Open Keychain and delete all distribution certificates, both from my "login" and from "system".
    2. Download the latest Distribution certificate from the Dev Center.
    3. Double click the certificate to install on Keychain.
    4. On XCode, make sure the certificate name matches on Build Settings.
    5. Build for Archive (a Keychain popup should ask for permission to sign the app).
    6. Archive (again, Keychain confirmation required).
    7. Validate archived app (again, Keychain confirmation will be required).
    8. Submit app (one more time, Keychain confirmation will be required).

    If you are building for Archive and you don't see any Keychain confirmation dialog, you can stop at that point because submission is not going to work.

    0 讨论(0)
  • 2021-01-01 18:59

    In my case this has nothing to do with Xcode or the unix tools. Indeed I happend to had too many distribution certificates (Why? I don't know). Deleted all of them but one, code sign with this one, re code sign it while validating and submit it with no errors. I hop this help.

    0 讨论(0)
  • 2021-01-01 18:59

    Had this error in Xcode, but had no such error when using the Application Loader. Get to it via Xcode -> Open Developer Tool -> Application Loader. Very frustrating indeed.

    0 讨论(0)
提交回复
热议问题