Profile doesn't match any valid certificate/private-key pair in the default keychain

£可爱£侵袭症+ 提交于 2019-12-20 08:50:27

问题


I am developing an application for a company, they gave me the admin role so I can edit provisioning files. I am getting "Valid signing identity not found for distribution file" and "Profile doesn't match any valid certificate/private-key pair in the default keychain" error on XCode, normally I would revoke the distribution profile by creating a key chain from my mac, but the company have other applications and I can not risk revoking it because clicking revoke gives the following warning.

"Revoking this certificate may invalidate one or more Provisioning Profiles in the Program Portal. Provisioning Profiles already installed on devices will continue to run until the provisioning profile expires."

Is there a way to add a new key pair without revoking the distribution certificate, would revoking the current certificate effect other applications or are there any other solutions to this problem?


回答1:


You need the private key associated with the distribution certificate.

Request the person who created the distribution certificate for the company for the private key associated with the distribution certificate. Get him to export the private key from his keychain! Ask him to remember to select both the distribution certificate and private key together before right clicking and exporting it as .p12 Select both the distribution certificate and private key together before right clicking and exporting it as .p12

Once you open the .p12 it should pair up with the distribution certificate (the .cer file you should already have in your keychain). Your provisioning profile should work fine then!

Let me know if it works!




回答2:


I came across the same issue and for some bizarre reason the method clearwater82 suggested didn't work.

But I found out this documentation on apple developer site. Might be helpful for someone else. It's just two simple steps.

FIRST STEP : Exporting Your Code Signing Assets to Your File System

SECOND STEP : Importing Your Code Signing Assets from Your File System

Hope this helps someone!



来源:https://stackoverflow.com/questions/11122046/profile-doesnt-match-any-valid-certificate-private-key-pair-in-the-default-keyc

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