Skip to content

Commit b379874

Browse files
coadofacebook-github-bot
authored andcommitted
Fix Fabric umbrella search paths (#58622)
Summary: Source-built CocoaPods frameworks do not automatically expose the source directories behind stable <React/...> umbrella includes. React-FabricComponents exports modal and text headers that consume umbrellas owned by React-Fabric, React-debug, React-rendererdebug, and React-utils, causing dynamic-framework builds to fail while resolving headers such as <React/RendererCore.h>. Add the five owning source directories to React-FabricComponents HEADER_SEARCH_PATHS when frameworks and source-built RNCore are used. Keep prebuilt RNCore unchanged so its <React/...> headers continue to resolve from the prebuilt React.framework. Changelog: [Internal] Differential Revision: D120992289
1 parent 17dec8b commit b379874

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/react-native/ReactCommon/React-FabricComponents.podspec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ if ENV['USE_FRAMEWORKS']
3333
"\"$(PODS_TARGET_SRCROOT)/react/renderer/components/text/platform/cxx\"",
3434
"\"$(PODS_TARGET_SRCROOT)/react/renderer/components/view/platform/cxx\"",
3535
]
36+
37+
if ReactNativeCoreUtils.build_rncore_from_source()
38+
# Stable umbrellas consumed by exported component headers.
39+
header_search_path = header_search_path + [
40+
"\"$(PODS_TARGET_SRCROOT)/react/debug\"",
41+
"\"$(PODS_TARGET_SRCROOT)/react/renderer/components/view\"",
42+
"\"$(PODS_TARGET_SRCROOT)/react/renderer/core\"",
43+
"\"$(PODS_TARGET_SRCROOT)/react/renderer/debug\"",
44+
"\"$(PODS_TARGET_SRCROOT)/react/utils\"",
45+
]
46+
end
3647
end
3748

3849
Pod::Spec.new do |s|

0 commit comments

Comments
 (0)