title: Xcode 6 using target build settings in scheme arguments
body: <p>In order to test localisation, I have an Xcode scheme configured to specify simulator locale settings.  The scheme appears as follows:<img src="https://i.stack.imgur.com/0fxWB.png" alt="xcode scheme arguments"> </p>
  
  <pre><code>-AppleLocale $(LANG)_$(COUNTRY)
  -AppleLanguages ($(LANG))
  </code></pre>
  
  <p>Passing the above arguments to the simulator has the desired effect if <code>LANG</code> and <code>COUNTRY</code> are defined as build settings in the target.</p>
  
  <p><img src="https://i.stack.imgur.com/CYQ26.png" alt="xcode target build settings"></p>
  
  <p>For convenient automation, I'd like to be able to override the build settings from xcodebuild.  However, when I run the following to override the target build settings, the locale of the simulator remains unchanged.</p>
  
  <pre><code>xcodebuild test -workspace MyApp.xcworkspace -scheme 'App UI Tests' -destination 'name=iPad Air' LANG=es COUNTRY=ES
  </code></pre>
  
  <p>It seems the default build settings from the target are used, regardless of any overrides specified at the terminal.</p>
  
  <p>As an alternative, I could specify the locale code directly in the scheme.  Then I could duplicate the scheme for every locale.  It seems like a lot of duplication, but perhaps it is more the intended usage of schemes.</p>
  
  <p>Am I missing something? Is this a feature of schemes by design, or could it be an issue with Xcode?</p>