Code sign error after Xcode version up

After version up to Xcode 9.1, I start to get Code sign error: "Command usr/bin/codesign failed with exit code 1" with code building.

How can I solve this problem?

First things I would try are 1) clean build folder (cmd-opt-shift-K), 2) delete your Derived Data folder (somewhere under ~/Library; can't remember exact path) and maybe 3) reboot your Mac.


If none of that helps then you'll have to delve deeper into log files to find the specific command line that failed, and look for more clues there.

Hi. Junkile,

Your suggestions, i.e. clean bulid folder and reboot works!! Thank you.

That worked for me!


Using Xcode 9.2 (9C40b)


For those searching where the directory is located:


~/Library/Developer/Xcode/DerivedData


Dont forget to reboot.


Rick

I did everything you said but it's not working Xcode 11.3.1

Code sign error after Xcode version up
 
 
Q