Reply to Xcode 11, Command CodeSign failed with a nonzero exit code For those who tried all solutions without any success, try to download and install the latest certificate from this link: https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer This solved my issue! Developer Tools & Services Xcode Jul ’21