From 0b9d2cf17fb050fc8469c0f1184ad86120bf1c9c Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 24 Nov 2023 03:45:24 -0800 Subject: [PATCH] Back out "RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag" (#41626) Summary: In the codebase, we never set the RCT_USE_HERMES flag. When we install the pods, we use the USE_HERMES flag and we set USE_HERMES as a build setting. So, the RCT_USE_HERMES flag will always be not set for the OSS. https://pxl.cl/3RRxr ## Changelog: [iOS][Fixed] - use the right USE_HERMES flag ## Facebook: This change was incorrect as in OSS we never set the RCT_USE_HERMES flag, while we actually set the USE_HERMES one. I will align the BUCK RNTester setup in the next diff of the stackog: Reviewed By: dmytrorykun Differential Revision: D51547810 --- packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm index 414534f9fb4dbe..924664e6cd6a40 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -26,7 +26,7 @@ #import #import #import -#if RCT_USE_HERMES +#if USE_HERMES #import #else #import @@ -292,7 +292,7 @@ - (void)createReactHost - (std::shared_ptr)createJSRuntimeFactory { -#if RCT_USE_HERMES +#if USE_HERMES return std::make_shared(_reactNativeConfig, nullptr); #else return std::make_shared();