Skip to content

Commit 7b7c3ff

Browse files
author
louiszawadzki
committed
Fix pod install for swift libs using new arch
1 parent 6c729ac commit 7b7c3ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-native/scripts/cocoapods/fabric.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#
99
# @parameter react_native_path: relative path to react-native
1010
def setup_fabric!(react_native_path: "../node_modules/react-native", new_arch_enabled: false)
11-
pod 'React-Fabric', :path => "#{react_native_path}/ReactCommon"
12-
pod 'React-graphics', :path => "#{react_native_path}/ReactCommon/react/renderer/graphics"
11+
pod 'React-Fabric', :path => "#{react_native_path}/ReactCommon", :modular_headers => true
12+
pod 'React-graphics', :path => "#{react_native_path}/ReactCommon/react/renderer/graphics", :modular_headers => true
1313
pod 'React-RCTFabric', :path => "#{react_native_path}/React", :modular_headers => true
1414
pod 'React-ImageManager', :path => "#{react_native_path}/ReactCommon/react/renderer/imagemanager/platform/ios"
1515
pod 'RCT-Folly/Fabric', :podspec => "#{react_native_path}/third-party-podspecs/RCT-Folly.podspec"

packages/react-native/scripts/react_native_pods.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def use_react_native! (
117117
pod 'React-Core/RCTWebSocket', :path => "#{prefix}/"
118118
pod 'React-rncore', :path => "#{prefix}/ReactCommon"
119119
pod 'React-cxxreact', :path => "#{prefix}/ReactCommon/cxxreact"
120-
pod 'React-debug', :path => "#{prefix}/ReactCommon/react/debug"
121-
pod 'React-utils', :path => "#{prefix}/ReactCommon/react/utils"
120+
pod 'React-debug', :path => "#{prefix}/ReactCommon/react/debug", :modular_headers => true
121+
pod 'React-utils', :path => "#{prefix}/ReactCommon/react/utils", :modular_headers => true
122122

123123
if hermes_enabled
124124
setup_hermes!(:react_native_path => prefix, :fabric_enabled => fabric_enabled)

0 commit comments

Comments
 (0)