diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 6e80f843fab9a5..da9e44ca399c67 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -15,7 +15,7 @@ DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH # Enables iOS devices to get the IP address of the machine running Metro if [[ "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then IP=$(ipconfig getifaddr en0) - if [ -z "$IP" ]; then + if [[ -z "$IP" || -n "`ifconfig $value | grep 'baseT'`" ]]; then IP=$(ipconfig getifaddr en1) fi if [ -z "$IP" ]; then