Pick any iOS Simulator when it's ambiguous

Originator:keithbsmiley
Number:rdar://30725285 Date Originated:26-Feb-2017 16:07
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.2.1
Classification:UI/Usability Reproducible:Always
 
Summary:
Currently if you build a project with `xcodebuild -destination 'name=iPhone 7'` when there is more than one iPhone 7 simulator, results in an error. It would be nice if there was a way to not have to worry about which simulator was picked.

Steps to Reproduce:
1. Create multiple iPhone 7 simulators on your machine
2. Create a new project
3. Build the project from the command line with `xcodebuild -destination 'name=iPhone 7'`

Expected Results:
The build should succeed by picking one of the 2 iPhone 7 simulators.

Actual Results:
The build fails and you are told to pick a specific simulator.

Version:
Xcode 8.2.1

Notes:
This is more of a problem on CI than anything else. Many CI providers have many simulators for all devices and many iOS versions. This along with having extra simulators for pairing with the watch or not means that many CI setups have multiple simulators of the same device type and the same OS version, meaning the only way to disambiguate is with the udid of the simulator, which obviously cannot be hard coded for builds.

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!