Missing iOS Distribution signing identity

荒凉一梦 提交于 2019-12-20 09:31:58

问题


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:

Missing iOS Distribution signing identity

How can I fix this?


回答1:


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




回答2:


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.




回答3:


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.




回答4:


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.




回答5:


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.




回答6:


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




回答7:


First: down and install WWDR in here https://developer.apple.com/support/certificates/expiration/ Then: In Keychain Access click View and select show expired Certificates and delete them on login and System tab Finally: Clear and Build project on Xcode

I uesed above ways to create ipa file. Hope help you.



来源:https://stackoverflow.com/questions/35398083/missing-ios-distribution-signing-identity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!