react-native-macos/local-cli/runIOS
Ely Alvarado 0fab27cbac Allow specifying iOS version for run-ios with simulator option (#19079)
Summary:
Fixes #19069

The --simulator option for the run-ios command now can take an optional
iOS version between parenthesis to further match the desired simulator.
This is useful if you have installed simulators for different iOS
versions and you want to run the app in an especific one. Example:

react-native run-ios --simulator "iPhone 6s (9.3)"

Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.

Updated tests for the findMatchingSimulator function to include test cases specifying iOS version, and tested on the command line in my app to make sure it has the expected behavior.

[CLI] [ENHANCEMENT] [{/runIOS/findMatchingSimulator.js}] - run-ios command with the --simulator option now allows specifying the iOS version to run an specific simulator if you have multiple versions of the simulator installed. Example: `react-native run-ios --simulator "iPhone 6s (9.3)"`.
Pull Request resolved: https://github.com/facebook/react-native/pull/19079

Differential Revision: D10432487

Pulled By: hramos

fbshipit-source-id: efa50d798b79d83bfe357ee17967a56c7c003bee
2018-10-17 13:25:39 -07:00
..
__tests__ Allow specifying iOS version for run-ios with simulator option (#19079) 2018-10-17 13:25:39 -07:00
findMatchingSimulator.js Allow specifying iOS version for run-ios with simulator option (#19079) 2018-10-17 13:25:39 -07:00
findXcodeProject.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
parseIOSDevicesList.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
runIOS.js Allow specifying iOS version for run-ios with simulator option (#19079) 2018-10-17 13:25:39 -07:00