From a4a33033430bba1aac240753890895830a7b6d21 Mon Sep 17 00:00:00 2001 From: td-tomasz-joniec <109506928+td-tomasz-joniec@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:31:38 +0100 Subject: [PATCH] fix: enhance IP address retrieval for iOS devices in Metro bundler setup --- packages/react-native/scripts/react-native-xcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/react-native-xcode.sh b/packages/react-native/scripts/react-native-xcode.sh index c34ea666d782..c821d74d1d0e 100755 --- a/packages/react-native/scripts/react-native-xcode.sh +++ b/packages/react-native/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 [[ ! "$SKIP_BUNDLING_METRO_IP" && "$CONFIGURATION" = *Debug* && ! "$PLATFORM_NAME" == *simulator ]]; then for num in 0 1 2 3 4 5 6 7 8; do - IP=$(ipconfig getifaddr en${num}) + IP=$(ipconfig getifaddr en${num} || echo "") if [ ! -z "$IP" ]; then break fi