Xcode 7 UI Testing target locale and region settings
<p>I'm trying to set the language and the region of my UI Testing target, and unfortunately it doesn't seem to work. </p>

<p>I've tried both ways, first:</p>

<ul>
<li>Product | Scheme | Edit Scheme</li>
<li>Run | Options

<ul>
<li>Application Language: French</li>
<li>Application Region: France</li>
</ul></li>
<li>Test | Arguments

<ul>
<li>Use the Run action's arguments and environment variables: Checked</li>
</ul></li>
</ul>

<p>And I try this other way:</p>

<ul>
<li>Product | Scheme | Edit Scheme</li>
<li>Test | Arguments

<ul>
<li>Use the Run action's arguments and environment variables: Unchecked</li>
<li>Arguments passed at launch:

<ul>
<li><code>-AppleLanguages (French)</code></li>
<li><code>-AppleLocale fr_FR</code></li>
</ul></li>
</ul></li>
</ul>

<p>Each way resulting in the UI Testing still happening in English. Moreover, when I hit the record button, it runs in French...</p>

<p>So if I do something wrong, I would be happy to know!</p>

<p>Thanks in advance!</p>