From 85f0c64411038fb9cba7e4a02d1216cacd01365f Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Mon, 19 Sep 2022 22:30:53 -0400 Subject: [PATCH] Fix HERMES_ENABLED in react-native-xcode.sh --- scripts/react-native-xcode.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index e822afd58f37..8577de21092b 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -78,11 +78,11 @@ fi # shellcheck source=/dev/null source "$REACT_NATIVE_DIR/scripts/node-binary.sh" -# If hermes-engine is in the podfile.lock, it means that Hermes is a dependency of the project +# If hermes-engine is in the Podfile.lock, it means that Hermes is a dependency of the project # and it is enabled. If not, it means that hermes is disabled. -HERMES_ENABLED=$(grep hermes-engine podfile.lock) +HERMES_ENABLED=$(grep hermes-engine "$PODS_PODFILE_DIR_PATH/Podfile.lock") -# If hermes-engine is not in the podfile.lock, it means that the app is not using Hermes. +# If hermes-engine is not in the Podfile.lock, it means that the app is not using Hermes. # Setting USE_HERMES is no the only way to set whether the app can use hermes or not: users # can also modify manually the Podfile. if [[ -z "$HERMES_ENABLED" ]]; then