Since updating to Xcode 11, I’m getting build failures with:
.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
I’m not sure exactly what that’s referring to, but it exposes a related problem in that if I don’t set a code-signing identity in Projucer, it doesn’t add a
CODE_SIGN_IDENTITY setting to the
XCBuildConfiguration in the
.pbxproj file. This causes Xcode to default to a setting of “Sign to run locally”.
I believe what the Projucer should do if no signing identity is specified, is explicitly set the
CODE_SIGN_IDENTITY to an empty string. i.e.
CODE_SIGN_IDENTITY = "";
This will cause Xcode not to attempt to sign for any builds where no signing identity is supplied rather than using whatever its default setting happens to be.