How to set DEBUG BUILD in Xcode Cloud

When building in Xcode Cloud it allows setting a schema but is missing Configuration.

We have: Debug, Release.

configuration: "Debug", scheme: "MyApp"

I noticed in scheme it has several types:

  1. Build
  2. Run - Debug
  3. Test - Debug
  4. Profile - Release
  5. Analyze - Debug
  6. Archive - Release

For XCode to work right what should these be set to? This seems to not be documented. In React Native they recommend "Run to be Release". Is it ok to change that for Xcode Cloud?

Info:

Building an app for distribution in the App Store requires using the Release scheme in Xcode. Apps built for Release will automatically disable the in-app Developer menu, which will prevent your users from inadvertently accessing the menu in production. It will also bundle the JavaScript locally, so you can put the app on a device and test whilst not connected to the computer. To configure your app to be built using the Release scheme, go to Product → Scheme → Edit Scheme. Select the Run tab in the sidebar, then set the Build Configuration dropdown to Release.