Debug & Release builds in Xcode

Is there a way to get the Build Configurations to work in Xcode when you have a multi-config project?

I can use cmake --build ./build --config Release but if I build Debug or Release from the Xcode schemes, they both just output the Debug binary to build/artefacts/Debug`. It’d be great if it worked both from Xcode and the command line if possible.


To my knowledge, it does work. Please provide a minimal example project and set of steps which someone else can use to reproduce your problem.

Thanks. It took me a while to get back around to this.

I setup a minimal config and it’s working as expected. I’ll dig further into my actual project configuration. Thanks for the sanity check.