diff --git a/packages/react-native/scripts/react-native-xcode.sh b/packages/react-native/scripts/react-native-xcode.sh index d59caa1bb14442..b5d50ccb4bb496 100755 --- a/packages/react-native/scripts/react-native-xcode.sh +++ b/packages/react-native/scripts/react-native-xcode.sh @@ -148,7 +148,7 @@ if [[ -n "$CONFIG_JSON" ]]; then elif [[ -n "$CONFIG_CMD" ]]; then EXTRA_ARGS+=("--config-cmd" "$CONFIG_CMD") else - EXTRA_ARGS+=("--config-cmd" "$NODE_BINARY $NODE_ARGS $REACT_NATIVE_DIR/cli.js config") + EXTRA_ARGS+=("--config-cmd" "'$NODE_BINARY' $NODE_ARGS '$REACT_NATIVE_DIR/cli.js' config") fi # shellcheck disable=SC2086