Scheme language setting ignored in iOS unit and ui tests : <p>My final goal is to issue </p>

<pre><code>xcodebuild test
</code></pre>

<p>from command line picking different schemes for different languages.</p>

<p>Currently I have two schemes, the only difference between them is the application language. In one scheme it is English, in the other is Spanish.
If I use xCode to run the application it works nice, it is launched with the language specified in the scheme I have picked, both EN or ES are okay.</p>

<p>If I run the tests from xCode, language setting is ignored. Whichever scheme I pick, it doesn't matter, it is always displayed as the device language. The same on simulator. The same when running tests with 
    xcodebuild test
picking scheme. (Adding an echo command to the scheme ensures that the correct one is picked)</p>

<p>In the scheme editor "Use the Run action's arguments and environment variables" is checked.</p>

<p>What am I doing wrong?</p>

<p>Thank you.</p>
