diff --git a/scripts/build.sh b/scripts/build.sh index ea382f10fad..395a0fe8094 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -198,7 +198,12 @@ buildAndroidRunFlask(){ buildIosSimulator(){ prebuild_ios - react-native run-ios --port=$WATCHER_PORT + if [ -n "$IOS_SIMULATOR" ]; then + SIM_OPTION="--simulator \"$IOS_SIMULATOR\"" + else + SIM_OPTION="" + fi + react-native run-ios --port=$WATCHER_PORT $SIM_OPTION } buildIosSimulatorQA(){