Command CodeSign failed with a nonzero exit code in MacOS Sonoma

I have this issue with compiling with xcode, i tried using a blank project and a project already done end functional, but i can’t seem to make it work.
I tried cleaning the build folder and even installing an Apple developer certificate as suggested from another thread here on the juce forum, even tried downgrading xcode to 15.2.0 from the app store version.

Anyone can help me? Now i’m programming in a Win 11 VM to compilate the project but is wasteful and not a good approach in my opinion

Please can you paste the full text of the error message? This error can be triggered for many different reasons.

As a first step, make sure that your copy of JUCE, along with your generated project directory, are not stored in a folder that is automatically synced/backed-up by iCloud, Dropbox, Google Drive etc. These backup tools can add metadata to files after they are built that then breaks the signing process.

If in doubt, create a whole new directory in /Users/<yourname>/, then download a fresh copy of JUCE to that location, and save your generated project there too.

Fixed, cause now it works correctly, thank you for the reply and the help.

1 Like