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

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?