Resolution of a signature error--codesign failed with exit code 1

Source: Internet
Author: User

The next, MacBook's hard drive was unfortunately dead, so the development environment was migrated to the Mac Mini. You know, for Xcode, the most troublesome is a variety of certificates, provisioningprofile configuration problems. Import the original various development certificates and. P12 certificates into the Mini, and then come across a variety of inexplicable problems. First cannot development (can debug), found that the certificate was wrong (no agent certificate, only agent can publish). Then make the certificate request and re-download the certificate.

Wait until the issue of the deployment, and found unable to debug-the real machine can, but the simulator does not, the entry process will exit, do not report any errors. Try a variety of tricks are not, suspicion is the simulator problem. Then unloaded the Xcode reload. Problem resolution after reboot.

But new problems have arisen. Simulator can debug the program, the real machine debugging can compile, but not run, error codesign failded with exit code 1. The online search of information, did not solve the problem.

Later, open the error log to find the following description:

iphone Developer:hongyan Yang (gnf23cpxyk): ambiguous (matches "IPhone Developer:hongyan Yang (gnf23cpxyk)" in/users/km- Cn/library/keychains/login.keychain and "IPhone Developer:hongyan Yang (gnf23cpxyk)" in/library/keychains/ System.keychain)

Command/usr/bin/codesign failed with exit code 1

It turns out that there is a conflict between the Keychain system account and the certificate in the login account. Open the Keychain to view the developer certificate in your login account (note Identifier is a GNF23CPXYK certificate):


Check the system account also has two identifier for the Gnf23cpxyk certificate, obviously guide the certificate when do not know how to put the certificate into the system account, and also repeated. Remove the two certificates, close the keychain, and solve the problem.

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.