simctl should provide a command to set a simulator's location
Originator: | jp | ||
Number: | rdar://50426879 | Date Originated: | May 2nd 2019 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | All |
Classification: | Feature (New) | Reproducible: |
There are no reliable, supported ways to set a simulator’s location programmatically, for example for use in UI Automation tests running with XCTest. It would be very useful to be able to run ``` $ xcrun simctl location booted simulate-location --latitude “37.3308337” --longitude “-122.0096567” ``` It would also be useful to get the simulator’s location for similar reasons. ``` $ xcrun simctl location booted get-location Latitude: 37.3308337 Longitude: -122.0096567 ``` And finally, being able to play a GPX file would be lovely, similar to the feature available in “Xcode in Debug -> Simulate Location -> Add GPX File to Workspace…” ``` $ xcrun simctl location booted simulate-location --gpx-file my_run.gpx ```
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!