Missing iOS Distribution signing identity

前端 未结 7 993
遇见更好的自我
遇见更好的自我 2021-02-01 11:49

I deleted all my provisioning profiles from my Mac by mistake (Library/Mobile Device/Provisioning Profiles). Now, no matter what I do, Xcode gives me this error:

相关标签:
7条回答
  • 2021-02-01 12:05

    This worked for me: Keychain Access -> View -> Show Expired Certificates

    then

    Keychain Access -> System tab

    Locate the EXPIRED "Apple Worldwide Developer Relations Certificate Authority" certificate and delete it.

    0 讨论(0)
  • 2021-02-01 12:06

    This is the same exact error for an expired Apple cert - though I know it's not your issue, you're the #1 answer on Bing at the moment.

    According to the Apple Developer Forums, the Apple Worldwide Developer Relations Intermediate Certificate Expiration expired 2/14/2016.

    ... This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

    You can get a new cert (which expires February 7, 2023). The AppleWWDRCA.cer is available on the explanation page: https://developer.apple.com/support/certificates/expiration/

    BTW: it appears this new cert is installed with Xcode 7.2.1

    0 讨论(0)
  • 2021-02-01 12:10

    Check here: https://forums.developer.apple.com/thread/37208

    Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and double-click to install to Keychain.

    Select "View" -> "Show Expired Certificates" in Keychain app.

    Remove Apple Worldwide Developer Relations Certificate Authority certificates from "login" tab and "System" tab in Keychain app.

    0 讨论(0)
  • 2021-02-01 12:15

    It says very clearly. I just had to delete expired certificate as described below and download new one from this link. It is all described on this page.

    What should I do if Xcode doesn’t recognize my distribution certificate? If you have a copy of the expired WWDR Intermediate certificate in both your System and Login keychains within the Keychain Access application, your certificates may appear as invalid and not be recognized by Xcode. To resolve the issue, you should first download and install the renewed certificate. Next, in the Keychain Access application, select the System keychain. Select 'Show Expired Certificates' in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate. Your certificates should now appear as valid in Keychain Access and be available to Xcode.

    0 讨论(0)
  • 2021-02-01 12:18

    From Apple -

    Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

    Also answered at https://stackoverflow.com/a/35401483/921358

    0 讨论(0)
  • 2021-02-01 12:23

    Apparently, I was having the same issue as this question, the answer there solved my problem too!! Even though I had my WWDR certificate, re adding to the keychain solved my problem!

    EDIT: Before doing this, here is what I did:

    1. Exit xCode

    2. Go to Keychain Access. Delete every certificate which has iOS in it's name. Do the same for keys as well.

    3. Open up finder, press Go and press ALT, this will bring up the option to go to your Library. Click on that, find Mobile Devices -> Provisioning Profiles -> and delete everything from there.

    4. Go to Member Center and revoke every certificate you have, delete all existing provisioning profiles.

    5. Open xCode, open your project and in General select your team, under it you will get a warning and a button which says fix issue, click on that. After it is done, build your app to a real device(not simulator) and exit xCode.

    6. Go to Member Center and go to Certificates, you will see that xCode has created a new one. Download that, and add it to your Keychain Access.

    7. Add WWDR to Keychain Access.

    8. Try archiving, it should work now!

    Note: In Build Settings set code signing to automatic.

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