From 7b7c3ff530cae07daccc5b5ea6b72d239f913be0 Mon Sep 17 00:00:00 2001 From: louiszawadzki Date: Fri, 23 Jun 2023 16:03:00 +0200 Subject: [PATCH] Fix pod install for swift libs using new arch --- packages/react-native/scripts/cocoapods/fabric.rb | 4 ++-- packages/react-native/scripts/react_native_pods.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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/react_native_pods.rb b/packages/react-native/scripts/react_native_pods.rb index 42393998e79a99..1c560d40a9ca1e 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)