-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Description
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.