Skip to content

fix: always launches fallback simulator#2778

Merged
thymikee merged 2 commits into
react-native-community:mainfrom
dannyhw:dannyhw/fix/always-launches-fallback-simulator
Mar 11, 2026
Merged

fix: always launches fallback simulator#2778
thymikee merged 2 commits into
react-native-community:mainfrom
dannyhw:dannyhw/fix/always-launches-fallback-simulator

Conversation

@dannyhw

@dannyhw dannyhw commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary

When passing the --simulator flag with either the device name or udid it is ignored and the fallback is used

I believe it is the intended behaviour of the flag to launch with the id you specify but it was not being respected

Heres a video where i first use the current latest version without my change, then I link my local version of the cli and show it working

The udid i specify is for iphone17 so the first time when it launches the iphone16 thats just using the fallback

beforeandager.mp4

Test Plan

link to a local project and note that you can pick the simulator now

for example

yarn ios --simulator 'iPhone 17'
yarn ios --simulator '32D43F28-6167-488D-A94C-7F988698225A'
yarn ios --udid '32D43F28-6167-488D-A94C-7F988698225A'

Checklist

  • Documentation is up to date.
  • Follows commit message convention described in CONTRIBUTING.md.
  • For functional changes, my test plan has linked these CLI changes into a local react-native checkout (instructions).
@dannyhw dannyhw requested a review from cipolleschi as a code owner March 10, 2026 19:51
@dannyhw

dannyhw commented Mar 10, 2026

Copy link
Copy Markdown
Contributor Author

added a fallback for when the id doesn't match
image

@dannyhw

dannyhw commented Mar 10, 2026

Copy link
Copy Markdown
Contributor Author

ci failure seems to be about react-native-safe-area-context version changing to 5.7.0

@thymikee thymikee merged commit b762402 into react-native-community:main Mar 11, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants