Skip to content

Commit da29495

Browse files
committed
Preserve header subdirectory structure in React-debug pod
Set header_mappings_dir unconditionally in React-debug.podspec so that headers in subdirectories (like redbox/) retain their directory structure when CocoaPods copies them, regardless of whether USE_FRAMEWORKS is set. Without this, static library builds flatten all headers into the header_dir ("react/debug"), making imports like `<react/debug/redbox/RedBoxErrorParser.h>` fail because the "redbox/" subdirectory is lost.
1 parent 6614fe7 commit da29495

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Pod::Spec.new do |s|
2828
s.source_files = podspec_sources("**/*.{cpp,h}", "**/*.h")
2929
s.exclude_files = "**/tests/**/*.{cpp,h}"
3030
s.header_dir = "react/debug"
31+
s.header_mappings_dir = "../.."
3132
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
3233
"DEFINES_MODULE" => "YES" }
3334

0 commit comments

Comments
 (0)