no identity found, failed with exit code 1

My iOS Development certificate expired recently. Xcode gave me no warning and it disappeared from Apple's Member Center.


I tried to generate a new certificate via the Developr portal "Add iOS Certificate". I followed the instructions to use Keychain Access, Certificate Assistant, Request a certificate from a certificate authority. I uploaded the certificate request and downloaded the new certificate.


I deleted the old certificate. I tried to build the project to my device and recieved the "no identity found, Command /usr/bin/codesign failed with exit code 1".


I then revoked the new certificate and deleted it. I obtained a new certificate via Xcode, Preferences, View Details, Create. I cleaned my project and restarted my computer. I checked my keychain access and the new certificate expiration date matches the one that is in Member Center.


I still received the same error message. I am using Xcode Version 7.1.1 and OS X El Capital version 10.11.1


Below is the full error message:

CodeSign /Users/iMac/Library/Developer/Xcode/DerivedData/Company-chbabafbqgbogxhboouayglaqksa/Build/Products/Debug-iphoneos/Company.app
    cd /Users/iMac/dev/Company/client/iOS/Company
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:    "iOS Development: First Last (YUWK5BGE55)"
Provisioning Profile: "com.Company.* dev profile"
                      (55f0a5b5-d379-4f7f-91f1-ed555b55555e)


    /usr/bin/codesign --force --sign A50CFCB6F80B0B2B0B8C5CB5AD75F55AB0E5B555 --entitlements /Users/iMac/Library/Developer/Xcode/DerivedData/Company-chbabafbqgbogxhboouayglaqksa/Build/Intermediates/Company.build/Debug-iphoneos/Company.build/Company.app.xcent --timestamp=none /Users/iMac/Library/Developer/Xcode/DerivedData/Company-chbabafbqgbogxhboouayglaqksa/Build/Products/Debug-iphoneos/Company.app


A50CFCB6F80B0B2B0B8C5CB5AD75F55AB0E5B555: no identity found
Command /usr/bin/codesign failed with exit code 1


I can build to the simulator but not to the device. I would appreciate any help.


I also tried going back to Member Center to see about generating another certificate but now when I press the plus button for "Add iOS Certificate" the "iOS App Development" option is greyed out. Which is odd since it worked before.

>I cleaned my project and restarted my computer.


A simple 'clean' is rarely effective.


Instead, use Xcode's Product menu, then, with the option key pressed, select 'Clean Build Folder'. Confirm no errors in the navigator and go again.


Still no joy, visit Keychain Access on your computer and houseclean expired/duplicate certs there.


Have you taken any steps that involved letting Xcode 'fix' the signing issue(s)?

Accepted Answer

This is solved. My admin forget to add my new certificate to the provisioning profile.

when i reach to the certificate on the developer it dont let e download certificate.

do i neeed to pay for download it??

The easy way (which will do all png files) I used:

Run This Command in Terminal

find . -name "*.png" -exec xattr -c {} \;

no identity found, failed with exit code 1
 
 
Q