Your account already has a signing certificate for this machine but it is not present in your keychain

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-31 10:31:45

问题


I get this error, verbatim, when trying to build and install to a device.

This is my environment:

  • Xcode 8
  • El Capitan

Has anyone run into this problem? How did you solve it?

Thank you


回答1:


Go to Xcode Preferences -> Accounts tab -> Double-click your team name -> Click the + at the bottom left of the dialog box that appears -> Select iOS Development.

This will create a new development certificate that will allow you to install and test on your device.




回答2:


go to your apple developer site and download the signing certificate. Once downloaded you should be able to click and it will auto do its thing and should be good after that




回答3:


In my case problem was in revoked certificate.
To fix this problem:

  1. Go to Xcode –> Preferences –> Accounts –> Select needed Apple ID –> Double-click your Team –> Check certificate with Status Revoked.
  2. Go to Keychain Access –> Search for certificate was revoked –> Delete it.



回答4:


I got this error immediately after a repair to replace the MagSafe module on my MacBook Pro (I am guessing the long period with the battery unplugged reset the SMC). I really didn't want to recreate the signing certificate so I went into the Keychain, realised I had so many expired keys still present and decided to delete the expired ones. I Go back to Xcode, clean the project and rebuild and boom...everything works fine. Hope this helps someone



来源:https://stackoverflow.com/questions/40424878/your-account-already-has-a-signing-certificate-for-this-machine-but-it-is-not-pr

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