diff --git a/packages/react-native/scripts/cocoapods/__tests__/fabric-test.rb b/packages/react-native/scripts/cocoapods/__tests__/fabric-test.rb index 6e91c455f3f379..3c9044d06d5c36 100644 --- a/packages/react-native/scripts/cocoapods/__tests__/fabric-test.rb +++ b/packages/react-native/scripts/cocoapods/__tests__/fabric-test.rb @@ -48,9 +48,9 @@ def test_setupFabric_whenNewArchEnabled_installPods def check_installed_pods(prefix) assert_equal(6, $podInvocationCount) - check_pod("React-Fabric", :path => "#{prefix}/ReactCommon") + check_pod("React-Fabric", :path => "#{prefix}/ReactCommon", :modular_headers => true) check_pod("React-FabricImage", :path => "#{prefix}/ReactCommon") - check_pod("React-graphics", :path => "#{prefix}/ReactCommon/react/renderer/graphics") + check_pod("React-graphics", :path => "#{prefix}/ReactCommon/react/renderer/graphics", :modular_headers => true) check_pod("React-RCTFabric", :path => "#{prefix}/React", :modular_headers => true) check_pod("RCT-Folly/Fabric", :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec") check_pod("React-ImageManager", :path => "#{prefix}/ReactCommon/react/renderer/imagemanager/platform/ios") diff --git a/packages/react-native/scripts/cocoapods/fabric.rb b/packages/react-native/scripts/cocoapods/fabric.rb index 3e186dc6c428d5..b77ba6cc12262e 100644 --- a/packages/react-native/scripts/cocoapods/fabric.rb +++ b/packages/react-native/scripts/cocoapods/fabric.rb @@ -8,8 +8,8 @@ # # @parameter react_native_path: relative path to react-native def setup_fabric!(react_native_path: "../node_modules/react-native", new_arch_enabled: false) - pod 'React-Fabric', :path => "#{react_native_path}/ReactCommon" - pod 'React-graphics', :path => "#{react_native_path}/ReactCommon/react/renderer/graphics" + pod 'React-Fabric', :path => "#{react_native_path}/ReactCommon", :modular_headers => true + pod 'React-graphics', :path => "#{react_native_path}/ReactCommon/react/renderer/graphics", :modular_headers => true pod 'React-RCTFabric', :path => "#{react_native_path}/React", :modular_headers => true pod 'React-ImageManager', :path => "#{react_native_path}/ReactCommon/react/renderer/imagemanager/platform/ios" pod 'RCT-Folly/Fabric', :podspec => "#{react_native_path}/third-party-podspecs/RCT-Folly.podspec" diff --git a/packages/react-native/scripts/cocoapods/jsengine.rb b/packages/react-native/scripts/cocoapods/jsengine.rb index e4b2dd4e315284..2856e33f310cf9 100644 --- a/packages/react-native/scripts/cocoapods/jsengine.rb +++ b/packages/react-native/scripts/cocoapods/jsengine.rb @@ -10,7 +10,7 @@ # @parameter react_native_path: relative path to react-native # @parameter fabric_enabled: whether Fabirc is enabled def setup_jsc!(react_native_path: "../node_modules/react-native", fabric_enabled: false) - pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi" + pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi", :modular_headers => true pod 'React-jsc', :path => "#{react_native_path}/ReactCommon/jsc" if fabric_enabled pod 'React-jsc/Fabric', :path => "#{react_native_path}/ReactCommon/jsc" diff --git a/packages/react-native/scripts/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index 42393998e79a99..f98503d2004c65 100644 --- a/packages/react-native/scripts/react_native_pods.rb +++ b/packages/react-native/scripts/react_native_pods.rb @@ -117,8 +117,8 @@ def use_react_native! ( pod 'React-Core/RCTWebSocket', :path => "#{prefix}/" pod 'React-rncore', :path => "#{prefix}/ReactCommon" pod 'React-cxxreact', :path => "#{prefix}/ReactCommon/cxxreact" - pod 'React-debug', :path => "#{prefix}/ReactCommon/react/debug" - pod 'React-utils', :path => "#{prefix}/ReactCommon/react/utils" + pod 'React-debug', :path => "#{prefix}/ReactCommon/react/debug", :modular_headers => true + pod 'React-utils', :path => "#{prefix}/ReactCommon/react/utils", :modular_headers => true if hermes_enabled setup_hermes!(:react_native_path => prefix, :fabric_enabled => fabric_enabled) @@ -131,7 +131,7 @@ def use_react_native! ( pod 'React-callinvoker', :path => "#{prefix}/ReactCommon/callinvoker" pod 'React-runtimeexecutor', :path => "#{prefix}/ReactCommon/runtimeexecutor" - pod 'React-rendererdebug', :path => "#{prefix}/ReactCommon/react/renderer/debug" + pod 'React-rendererdebug', :path => "#{prefix}/ReactCommon/react/renderer/debug", :modular_headers => true pod 'React-perflogger', :path => "#{prefix}/ReactCommon/reactperflogger" pod 'React-logger', :path => "#{prefix}/ReactCommon/logger" pod 'ReactCommon/turbomodule/core', :path => "#{prefix}/ReactCommon", :modular_headers => true @@ -139,7 +139,7 @@ def use_react_native! ( pod 'Yoga', :path => "#{prefix}/ReactCommon/yoga", :modular_headers => true pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec" - pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec" + pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec", :modular_headers => true pod 'boost', :podspec => "#{prefix}/third-party-podspecs/boost.podspec" pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec", :modular_headers => true