After updating to sonoma and after updating xcode compiling of my program fails with this error:
Command CodeSign failed with a nonzero exit code
Can someone help me to to understand and fix it…? xcode doesn’t give me any other help …
After updating to sonoma and after updating xcode compiling of my program fails with this error:
Command CodeSign failed with a nonzero exit code
Can someone help me to to understand and fix it…? xcode doesn’t give me any other help …
Anyone has an idea of what I could check? I cannot find a solution …
Did you look into the build log (right button in the left panel)? There should be a bit more information.
And did you remember to log into your account? Settings / accounts → login
I didn’t update yet though, so no personal experience with Sonoma from my side
I tried to click on the left panel, but, unlike before, it doesn’t come out the screen with infos…
But above all, what that error means? (sorry for my ignorance )
I believe the error means that a codesigning step is added to your xcode build and it’s failing. If the binary actually gets built, you could try signing it yourself with the verbose flag to get more information.
sorry but I’m feeling really ignorant… Executable is compiled, but xcode cannot launch it… I still haven’t fully understood what this error that came up after updating the system in Sonoma… here’s a screenshot.
That happens for all my projects (but trying to compile projucer or Audiopluginhost for examples it compiles without errors).
Ok, let’s get this to a debugging level first. Please post all your code-signing settings (maybe censor a few) so we can have a proper look. They are scattered () through multiple areas of Xcode, e.g. project info settings, project code signing settings, project build settings, target build settings and the Xcode account settings.
Do you have your Xcode project under version control? If not, now is the time to fix this! This is the kind of bullshit for which you really need a VSC that not only includes your source but also the Xcode project.
Next, were is your build folder. JUCE normally overwrites that using a user-defined flag (more or less undocumented by Xcode ) CONFIGURATION_BUILD_DIR, but you may have set that back to the default which would then be somewhere buried in the Xcode global settings.
Now that you have all the informations available, you can start working on the problem.
Last note (Apple rant enabled): I spend a lot of hours trying to get code signing to work the way I want to, and frankly I can’t understand why it is such a mess and is breaking sometimes, even though you know you didn’t change anything, or why it is so easy to be broken in the first place. And I’m signing stuff with my apple developer account for distribution (so in the major league over here…). It is a fucking nightmare! Not only are these parts of Xcode buggy, but they involve other parts of MacOS that are also buggy (like the Profiles in System Settings or the KeyChain Access or the messed up online formulas for getting the application ids and what not ) so it is for months at a point, where I just don’t touch anything, in order not to fuck anything up.
In case you want to see how far you may go: This is how my Keychain Access looks like
lets start from this … I create a new completely void project in projucer and I screenshots some docs (signing related) in xcode
Ok, change the code signing identity to an empty string please. Select the parent item and all the sub MacOS SDK Release Debug stuff at once and press DEL. Then (when everything is deleted) open the dropdown menu for Code Signing, select other, remove what ever is in there (probably a -) and click out of the window. Now it should just show an empty field.
ok… really thank you … now it works… but why this thing was not necessary for previous os versions…?