# Debug & Release builds in Xcode

**URL:** <https://discourse.cmake.org/t/debug-release-builds-in-xcode/10965>\
**Category:** Code\
**Tags:** os:windows, os:macos\
**Created:** [June 6, 2024, 7:25pm UTC](https://discourse.cmake.org/t/debug-release-builds-in-xcode/10965 "2024-06-06T19:25:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonaylward](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jasonaylward/32/2219_2.png) [@jasonaylward](https://discourse.cmake.org/u/jasonaylward)\
**Post date:** [June 6, 2024, 7:25pm UTC](https://discourse.cmake.org/t/debug-release-builds-in-xcode/10965/1 "2024-06-06T19:25:59Z")

</div>

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.

Thanks!

---

<div class="post-metadata">

**Author:** ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Post date:** [June 7, 2024, 4:06am UTC](https://discourse.cmake.org/t/debug-release-builds-in-xcode/10965/2 "2024-06-07T04:06:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jasonaylward](https://discourse.cmake.org/user_avatar/discourse.cmake.org/jasonaylward/32/2219_2.png) [@jasonaylward](https://discourse.cmake.org/u/jasonaylward)\
**Post date:** [June 13, 2024, 6:53pm UTC](https://discourse.cmake.org/t/debug-release-builds-in-xcode/10965/3 "2024-06-13T18:53:41Z")

</div>

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.
