From ddc1275f8692f1d3f259fdc6c90078ba1b2b0008 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Date: Wed, 1 Nov 2023 17:23:03 -0300 Subject: [PATCH] Update ios pod post_install logic for detecting if hermes is enabled --- packages/react-native/scripts/react_native_pods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index 96e878eaa0b452..26643a41652e90 100644 --- a/packages/react-native/scripts/react_native_pods.rb +++ b/packages/react-native/scripts/react_native_pods.rb @@ -237,7 +237,7 @@ def react_native_post_install( ReactNativePodsUtils.apply_mac_catalyst_patches(installer) if mac_catalyst_enabled fabric_enabled = ENV['RCT_FABRIC_ENABLED'] == '1' - hermes_enabled = ReactNativePodsUtils.has_pod(installer, "React-hermes") + hermes_enabled = ENV['USE_HERMES'] == '1' if hermes_enabled ReactNativePodsUtils.set_gcc_preprocessor_definition_for_React_hermes(installer)