Distribution certificate / private key not installed

后端 未结 11 2266
灰色年华
灰色年华 2020-12-22 18:43

Using Xcode 9.1, after building an iOS app, I want to archive it and upload it to the appStore for beta-testing. But I get the following issue after clicking the button

相关标签:
11条回答
  • 2020-12-22 18:55

    Just for anyone else who goes through this, the answers above are correct but it can still be a bit confusing especially if you have multiple certificates. These were the steps that I took:

    1. First take note of the date in the actual distribution certificate that is missing its private key. Then go to the keychain application on the other computer and type iOS in the search bar. It will show all of your iOS Developer and Distribution keys so you have to find the right one.

    2. Click the right arrow of each iOS Distribution entry to reveal the certificate and find the one with the correct date and export that one by right clicking and selection export.

    3. Then just import it in the keychain of the new computer and at least with Xcode 9.3 it immediately recognizes it and corrects the error so you can now upload your achieve.

    0 讨论(0)
  • 2020-12-22 18:56

    People's answer here about having the key from the computer is generated are accurate. But if things are still failing, try restarting Xcode after installing a cert

    0 讨论(0)
  • 2020-12-22 18:56
    1. go to this link https://developer.apple.com/account/resources/certificates/list

    2. find certificate name in your alert upload then

    3. Revoke certificate that

    4. if you have certificate you download again
    5. upload testflight again
    0 讨论(0)
  • 2020-12-22 19:08

    In my case Xcode was not accessing certificates from the keychain, I followed these steps:

    1. delete certificates from the keychain.
    2. restart the mac.
    3. generate new certificates.
    4. install new certificates.
    5. clean build folder.
    6. build project.
    7. again clean build folder.
    8. archive now. It works That's it.
    0 讨论(0)
  • 2020-12-22 19:12

    If you are using the certificate in a new computer or not. The easiest thing to do would be to revoke the previous certificate relating to the project. Then re-upload to the store. Xcode will generate a new one.

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