From d2464d8e7af4109fa7d5d7bf709131ba59bc2b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Tue, 3 Jun 2025 09:48:36 -0700 Subject: [PATCH] fix: make sure RNTester builds with USE_HERMES=0 (#51772) Summary: This PR makes sure React Native still builds with USE_HERMES=0. ## Changelog: [IOS] [FIXED] - make RNTester build with USE_HERMES=0 Pull Request resolved: https://github.com/facebook/react-native/pull/51772 Test Plan: CI Green Reviewed By: andrewdacenko Differential Revision: D75876484 Pulled By: cipolleschi fbshipit-source-id: 72f3a7d33c19063b52c4c3e577ad2c5eae049d90 --- .../Libraries/AppDelegate/React-RCTAppDelegate.podspec | 4 +++- packages/react-native/React-Core.podspec | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec index 09823fba146..8332661d94c 100644 --- a/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec +++ b/packages/react-native/Libraries/AppDelegate/React-RCTAppDelegate.podspec @@ -66,7 +66,9 @@ Pod::Spec.new do |s| s.dependency "React-CoreModules" s.dependency "React-RCTFBReactNativeSpec" s.dependency "React-defaultsnativemodule" - s.dependency 'React-hermes' + if use_hermes + s.dependency 'React-hermes' + end add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"]) add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"]) diff --git a/packages/react-native/React-Core.podspec b/packages/react-native/React-Core.podspec index c57a3361ad7..80eab1ff591 100644 --- a/packages/react-native/React-Core.podspec +++ b/packages/react-native/React-Core.podspec @@ -122,7 +122,10 @@ Pod::Spec.new do |s| s.dependency "React-featureflags" s.dependency "React-runtimescheduler" s.dependency "Yoga" - s.dependency 'React-hermes' + + if use_hermes + s.dependency "React-hermes" + end s.resource_bundles = {'React-Core_privacy' => 'React/Resources/PrivacyInfo.xcprivacy'}