List Available Apple Devices
See original GitHub issueDescribe the Feature
Instead of passing the --simulator "{some apple device simulator string}"
I would like an interactive option to first list the available simulators and select the one I want.
Possible Implementations
- add a
list
command of--list
flag torun-ios
command - Reuse available device listing & parsing logic in
findMatchingSimulator.ts
to print the devices to the console - User can use arrows to select the device
- The selected devices is passed to a
react-native run-ios --simulator "{selected apple device simulator name}"
command
Related Issues
Not in this repo, but a very popular tool called ohmyzsh
has a plugin for react-native, and to be up-to-date it is manually updated with device simulator flags. I think this main benefit of this aliasing plugin would be surpassed by an interactive list
available devices function in the CLI itself.
For those not using the above ohmyzsh plugin, having this part of the CLI itself would be easier and clearer, and users wouldn’t need to open up xCode to see available simulators or run xcrun simctl list devices
either.
I’m happy to work on it, but wanted to know first if it would be well-received or not. 🙏
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Doctor command has some, you can check that
Sounds like something useful, happy to review PR 😃