Project generator commandLine, how to build CLI only

I’m having difficulties in building the project generator commandLine.
Using Xcode I’ve got the following error:

commandLineDebug.app: bundle format unrecognized, invalid, or unsuitable
Command CodeSign failed with a nonzero exit code

and using make it actually build an application .app, different from the traditional command line.
it used to compile only the executable not the .app structure.

Am I missing something?
Thanks