title: How does Xcode server run tests in release mode without Enable Testability?
body: <p>When using Xcode server to execute UI Tests, the bot has a setting to 'override' the configuration to Release mode.</p>
  
  <p>This was handy as tests would be executed on release build.</p>
  
  <p>Now when I am trying to run tests on TeamCity or CLI and pass the <code>-configuration Release</code> I get an error saying <code>Module 'App name' was not compiled for testing</code></p>
  
  <p>This can be solved by toggling <code>Enable testability</code> flag for Release configuration in build settings but that will have to be changed back each time before releasing the app.</p>
  
  <p>Creating another build configuration is also not a desirable option as I have a lot of targets and maintaining an extra config for all would be a pain.</p>
  
  <p>So how does Xcode server do this? Is there a CLI param or something I am missing? Or does it just change the setting via a prebuild script?</p>