Comment on Xcode 11, Command CodeSign failed with a nonzero exit code Same here. I just needed a small png file for testing so I created one with Photoshop 2022. Suddenly, the build fails with this message. Now I used an online generator to create that png and it suddenly works. Thank you so much. Developer Tools & Services Xcode Oct ’23