Change simulator location from simctl

Number:rdar://30789939 Date Originated:01-Mar-2017 13:31
Status:Duplicate of 16029389 (open) Resolved:
Product:Developer Tools Product Version:Xcode 8.3 beta 3
Classification:UI/Usability Reproducible:Always
It would be useful if, from the simctl CLI, you could change the simulated location of a iOS simulator. This would be useful for scripting, especially automation tests, where you aren't particularly launching from Xcode, so gpx files won't work, and you don't want to try and use AppleScript to change it in the UI

Steps to Reproduce:
1. Launch an iOS simulator
2. Attempt to script changing the location

Expected Results:
You could easily do this from `simctl booted location coordinates` or something similar

Actual Results:
You cannot do this without the use of a private NSDistributedNotificationCenter notification

Xcode 8.3 beta 3

I've written a tool to use the private notification to do this in the meantime


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!