Vst/au won't build in xcode - signing error

I am starting my first JUCE project recently, and have set everything up in projucer, to run in xcode.
When I launch the project in xcode from projucer, without changing anything, I can build the standalone file with no issues, but I cannot build the vst3 or AU files.

I get the following 3 errors, no matter what I do to get rid of them:

code object is not signed at all
resource fork, Finder information, or similar detritus not allowed
Command PhaseScriptExecution failed with a nonzero exit code

I have read around the forum here and on the apple developer forum for xcode, and have tried all the solutions I have found but none seem to work?

I have tried:
.using xattr -rc Distortion_vst.component to remove extended attributes
.adding a new certificate
.signing manually
.removing $(CODE_SIGN_IDENTITY_$(_DEVELOPMENT_TEAM_IS_EMPTY)) from the Code signing identity field
.reinstalling xcode and JUCE

I can’t figure out what the issue is…
As I am new to JUCE perhaps there is something simple I am missing?

For context I am using
Monteray OS (12.2.1), JUCE v7.0.9, xcode Version 13.4.1

Thanks

Did you at some point look at the bundle folder and thus deposit .DS_Store files all over the place?