question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List Available Apple Devices

See original GitHub issue

Describe 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

  1. add a list command of --list flag to run-ios command
  2. Reuse available device listing & parsing logic in findMatchingSimulator.ts to print the devices to the console
  3. User can use arrows to select the device
  4. 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:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thymikeecommented, Aug 12, 2022

Doctor command has some, you can check that

1reaction
thymikeecommented, Aug 11, 2022

Sounds like something useful, happy to review PR 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check your Apple ID device list to find where you're signed in
From the Devices section of your Apple ID account page, you can find all of the devices that you're currently signed in to...
Read more >
List of iOS, iPadOS, tvOS, and watchOS devices - Wikipedia
Apple Inc. has developed four Unix-like operating systems, namely iOS, iPadOS, tvOS, and watchOS. Devices using these systems include the iPhone, ...
Read more >
Apple Device Model list - GitHub
Apple Device Model list · iPhone · iPad · iPod · Apple TV · Apple Watch · HomePod · Simulator · Data.
Read more >
How to Check Your Apple ID Device List? - Top Tek System
Sign in to your Apple ID account page,* then scroll to Devices. · If you don't see your devices right now, click View...
Read more >
How to see every Mac, iPad, and iPhone associated with your ...
If you've logged into your Apple ID from a device, you'll find it at appleid.apple.com. Just log into the Apple ID site and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found