The codesign tool requires there only be one-Solution

Source: Internet
Author: User

Benefit from this post: http://www.cocoachina.com/bbs/read.php? Tid = 96925

Thank you!Neutyz& Cocoachina

Symptom

Certificate identity 'iphone developer: XXXX Ho (2j123456ha) 'appears more than once in the keychain. The codesign tool requires there only be one.

Solution

The reason is that there is an expired 'iphone distribution: xxxx' in keychain access, but it is not displayed in the key chain/login, but in the key chain/system, and it is hidden, therefore, you need to go to the key chain> display the expired certificate, and then delete the logon and system expired certificates under the key chain.

In addition, when searching for answers, I saw a post that may fail to delete the expired certificate, but it is displayed in the keychain that the deletion was successful. The solution to this problem is to restart the keychain and delete it, repeat this process until the deletion is successful.

Sometimes the expired and redundant certificates cannot be found in the keychain, but we can see the redundant certificates in the code signing of building setting of xcode target, this proves that our keychain is not clear and clean.

SummaryTo solve this problem, perform the following steps: 1. Clear unnecessary certificates in the keychain. 2. Refresh the provisioning profile in xcode.

The official troubleshooting is posted below:

This error indicates that while searching all Keychains, xcode found more than one signing Certificate for the same IOS Developer Program team member, and it does not know which one to use for code signing.

To resolve the problem, use the following process to ensure that there is only one copy of each certificate type: "iPhone developer" or "iPhone distribution" within the entire keychain, for the same team member.

In keychain access, make sure your "View" menu> show expired certificates option is turned on
Click the "Certificates" 'category 'and then click through every one of the keychains you have listed in your 'keychain' sidebar in keychain access. if you see any duplicates, even expired certificates, delete those duplicates.
Click the "keys" 'category 'in keychain access.
Navigate through every keychain looking for and deleting any "Orphaned keys" that have the same common name as the affected certificate. orphaned keys are ones that are not bound by a disclosure triangle to an iPhone developer or iPhone Distribution Certificate
That currently exists in the keychain.
If you found and removed any extra keys or certificates, please reattempt your build.
If the issue persists after removing all active or expired duplicate certificates or keys by the same common name, you might try removing * All * Existing signing certificates and keys and replace them with new ones using the steps in how do I delete/Revoke my
Certificates and start over fresh ?.
Finally, if the error persists even after creating new certificates, please control-click on the affected Certificate in keychain access, choose "New identity preference" and click the 'certificate' field. if you see duplicate certificates listed in here, this
Is an known and uncommon issue with keychain access. To work around the problem, try the following:
Export your developer profile using the process in transferring your identities.
Create a new OS X user account, install xcode for the new user and import the developer Profile created in the previous step.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.