xcodebuild doesn't provide UI tests with test location

Originator:danielctull
Number:rdar://31450652 Date Originated:5 April 2017
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.3
Classification:Serious Bug Reproducible:Always
 
Summary:

When adding UI tests, there is an option in the scheme to add a Test Location. This is given to the app correctly when testing from Xcode but not when using xcodebuild.



Steps to Reproduce:

* Add UI tests to a project that requires a location
* Provide a Test Location in the scheme in the Test section
* Run the UI tests with xcodebuild on the command line



Expected Results:

Tests complete and succeed in exactly the same way as they do using Xcode to perform the test.



Actual Results:

Tests fail because no location is received.



Notes:

I have attached a test project which has a basic setup, but similar tests to the app I’m trying to run tests on. This can also be found at https://github.com/danielctull-tests/Location-Command-Line-Build-Test

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!