NSLocale isn’t correctly set from launch arguments in logic tests in Xcode 7

Originator:nicolas.bouilleaud
Number:rdar://21461585 Date Originated:2015-06-19
Status:Open Resolved:
Product:Developer Tools Product Version:7.0 beta (7A120f)
Classification:Serious Bug Reproducible:Always
 
The "AppleLocale" Launch Argument is not taken into account when running logic tests in Xcode 7. (it should be, and it was in Xcode 6)

Steps to Reproduce:
See attached minimal project. Run Test (command-U) under Xcode 7.

Expected Results:
NSLocale.currentLocale should be "en_GB", as passed in the launch arguments.

Actual Results:
NSLocale.currentLocale is "en_US" under Xcode 7. When using Xcode 6, it’s correctly set to "en_GB".

Version:
Xcode 7.0 beta (7A120f)

Notes:
When running the tests in a host application, the locale is correctly set from the launch arguments; this bug only applies to logic tests running in xctest.


http://cl.ly/2o453i1h2w09/download/LogicTestsLocale.zip

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!