error: An empty identity is not valid when signing a binary for the product type 'Command-line Tool'.

Hi,

I am facing this error in Xcode 14 beta 3 version. The command:

xcodebuild CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -workspace abc.xcworkspace -configuration Debug -sdk macosx -derivedDataPath abcd/efgh -scheme cliName build-for-testing ARCHS=x86_64

The error doesn't occur on 13.3. Feel free to ask for more info that can be of help.

Thank you.

Replies

If you want to report a bug about this, please do that in Feedback Assistant, then post your bug number here, just for the record.

Taking a step back, why are you building a command-line tool without signing it? Unsigned code is pretty unusual on modern versions of macOS (notably, it’s not supported at all on Apple silicon). IMO the only good reason for building unsigned code is that you’re going to embed the code in some other code that is itself signed. Is that the case here?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thank you for the response. The bug number / case id is 101754820412.

Yes, we are creating the tool then shipping it along with our application that is signed