diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index b5f7544d3e8376..dab1d5cb05b5f7 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -74,7 +74,7 @@ else ENTRY_FILE=${1:-index.js} fi -if [[ $DEV != true && ! -f "$ENTRY_FILE" ]]; then +if [[ $DEV != true && ! -f "../$ENTRY_FILE" ]]; then echo "error: Entry file $ENTRY_FILE does not exist. If you use another file as your entry point, pass ENTRY_FILE=myindex.js" >&2 exit 2 fi