-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
react-native run-ios fails with ambiguous simulator targets #5850
Comments
Hey MSLaguana, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
This will be fixed with #6043 |
I first run iPhone 6 Simulator, then run Visual Studio Code DEBUG IOS success. |
Looks like this got fixed |
I've been trying to use the
react-native run-ios
command introduced in 0.19.0, and I've run into some issues. It seems to default to launching for iPhone 6, but on my machine there is both an "iPhone 6 (9.0)" and an "iPhone 6 (9.0) + Apple Watch - 38mm (2.0)" which causes ambiguity. The end result of this is the simulator does not change over to the correct device (or start at all if it is not already running) and my app appears to crash on startup since it is targeting a different phone.I think it would be possible to fix this if instead of constructing
const simulatorFullName =
${selectedSimulator.name} (${selectedSimulator.version});
you did
const simulatorFullName =
${selectedSimulator.name} (${selectedSimulator.version}) [;
which includes the start of the unique device ID and removes the possibility of the watch being involved.
The text was updated successfully, but these errors were encountered: