Skip to content

Commit

Permalink
refactor: bring back IOS_SIMULATOR var as optional (#8834)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachunei authored Mar 4, 2024
1 parent fe5f991 commit 53e482b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 53e482b

Please sign in to comment.