Change simulator location from simctl
Originator: | keithbsmiley | ||
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 |
Summary: 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 Simulator.app 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 Version: Xcode 8.3 beta 3 Notes: I've written a tool to use the private notification to do this in the meantime https://github.com/lyft/set-simulator-location
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!