skip to Main Content

After updating to Xcode 13.x on Monterey, I’ve started getting numerous Code sign error(s): Command usr/bin/codesign failed with a nonzero exit code when building my project.

Cleaning Build Folder and deleting derived data are NOT working as a fix. Any suggestions?

error verbatim in Xcode 13.1

2

Answers


  1. Chosen as BEST ANSWER

    I found a solution to delete the Apple Worldwide Certificate in my Keychain Access. It seems to recreate when building and fixes the codesign error. Sometimes there are 2 certificates and I just delete the older one:

    WWDRC certs

    deleting older certificate


  2. For me, xcode13.4 / monterey osx, iOS 15.0 device. I recently upgraded to monterey and for some reason was the certificate not trusted in the keychain. I had to manually trust the keychain and then it worked. See this also. https://support.apple.com/guide/keychain-access/change-the-trust-settings-of-a-certificate-kyca11871/mac

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search