-
Notifications
You must be signed in to change notification settings - Fork 926
fix: correctly list ios devices and simulators #1863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: correctly list ios devices and simulators #1863
Conversation
Thanks for the PR @roryf 🎉 Could you please resolve failing test? And then we can merge :) |
@adamTrz should be resolved now |
hey @roryf, I've released these packages:
They won't be automatically pulled by the RN 0.71, so we'd need to send a request to update the CLI EDIT: sent: reactwg/react-native-releases#59 |
## Description This PR updates react-native to 0.71.5, in order to address an issue that occurs when listing simulators. Reference: react-native-community/cli#1863 --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] provided a link to the relevant issue or specification - [x] reviewed "Files changed" and left comments if necessary - [x] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed all author checklist items have been addressed
@thymikee @szymonrybczak @roryf could we potentially make this the default behaviour in case it fails to run Asking as the command seems to be defaulting to my Apple Watch (something to look into as well, I would be happy to do it) and might default to my physical device which will potentially fail as well as it's sometimes not in the same network. |
Summary:
Backports #1823 to 10.x branch.
After updating to RN 0.71.3 I was experiencing issue similar to #1807 (it would try to use my laptop as target device), hoping this can be merged to a 10.x release and fixed in a new RN 0.71.x version.
Fixes #1845
Test Plan:
node ../cli/packages/cli/build/bin.js run-ios
verified it launched app in expected iPhone 14 simulator, where before it would error with out of box react native 0.71.1 failed run-ios facebook/react-native#35917 (comment)node ../cli/packages/cli/build/bin.js run-ios --list-devices
verified it listed all available simulators, and not my laptop as previous