Code signing error: Doesn't match key pair in default keychain

纵然是瞬间 提交于 2019-12-18 05:54:07

问题


*****Code Sign error: The identity 'iPhone Developer: XXXXXXXXXX' doesn't match any valid certificate/private key pair in the default keychain**.***

I am a member in developer profile, I have the provisioning profile installed, what must be the problem here?

Code Sign error: The identity 'iPhone Developer: XXXXXXXXXXXX' doesn't match any valid certificate/private key pair in the default keychain

What am I supposed to do? I already searched for a solution but still didn't find any.


回答1:


This error suggests that there is a problem with either your certificate or your private key.

If you open Keychain Access (in Applications/Utilities), do you see 'iPhone Developer: XXXXXXXXXX' in your certificates? If not, you need to download it from the Program Portal.

When you created the certificate 'iPhone Developer: XXXXXXXXXX', did you generate a certificate signing request on the same computer that you are now using to compile? If not, the private key that goes with your certificate may not be installed on the computer; whoever generated the signing request will need to send it to you, and you will need to add it to your keychain.




回答2:


Apple's steps to troubleshoot the issue are here: How do I resolve the CodeSign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in the default keychain




回答3:


  • Just open a bash.
  • Go into the ProjectName*.xcodeproj* directory
  • And remove every *.mode1v3 and *.pbxuser file

Then start xcode again and you're lucky.

For my case it was like:

  • cd iCodeBrowser/iCodeBrowser.xcodeproj/
  • rm brandontrieb.*


来源:https://stackoverflow.com/questions/2452969/code-signing-error-doesnt-match-key-pair-in-default-keychain

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