# Xcode schemes: how to choose which build type is assigned to each task?

**URL:** <https://discourse.cmake.org/t/xcode-schemes-how-to-choose-which-build-type-is-assigned-to-each-task/8395>\
**Category:** Code\
**Tags:** gen:xcode\
**Created:** [June 23, 2023, 12:43am UTC](https://discourse.cmake.org/t/xcode-schemes-how-to-choose-which-build-type-is-assigned-to-each-task/8395 "2023-06-23T00:43:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzymyn](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zzymyn/32/3549_2.png) [@zzymyn](https://discourse.cmake.org/u/zzymyn)\
**Post date:** [June 23, 2023, 12:43am UTC](https://discourse.cmake.org/t/xcode-schemes-how-to-choose-which-build-type-is-assigned-to-each-task/8395/1 "2023-06-23T00:43:53Z")

</div>

By default Cmake assigns the Debug build to the Run and Test actions and the Release build to the Profile and Archive actions. Is there a way to change it so it assigned RelWithDebInfo to the Archive action?

I see there’s `XCODE_SCHEME_LAUNCH_CONFIGURATION` for configuring the Launch config, maybe we need `XCODE_SCHEME_TEST_CONFIGURATION`, `XCODE_SCHEME_PROFILE_CONFIGURATION`, `XCODE_SCHEME_ANALYZE_CONFIGURATION` and `XCODE_SCHEME_ARCHIVE_CONFIGURATION`?
