Skip to content

Add redbox subspec to React-debug pod#56585

Open
motiz88 wants to merge 1 commit intofacebook:mainfrom
motiz88:fix-react-debug-header-mappings-main
Open

Add redbox subspec to React-debug pod#56585
motiz88 wants to merge 1 commit intofacebook:mainfrom
motiz88:fix-react-debug-header-mappings-main

Conversation

@motiz88
Copy link
Copy Markdown
Contributor

@motiz88 motiz88 commented Apr 23, 2026

Summary

Same fix as #56584 (targeting 0.83-stable), applied to main.

Add a redbox subspec to React-debug.podspec with its own header_dir, following the same pattern React-Fabric uses for its subdirectories.

Without this, static library builds (without USE_FRAMEWORKS) flatten all headers into the top-level header_dir (react/debug), so imports like <react/debug/redbox/RedBoxErrorParser.h> fail because the redbox/ subdirectory is lost.

On main this is currently masked because test_e2e_ios_templateapp uses prebuilt React.framework, but it would break any from-source static library build that includes React-CoreModules.

Changelog: [Internal]

Test Plan

CI

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 23, 2026
@motiz88 motiz88 force-pushed the fix-react-debug-header-mappings-main branch from da29495 to 8344b0a Compare April 23, 2026 17:03
Add a "redbox" subspec to React-debug.podspec with its own header_dir,
following the same pattern React-Fabric uses for its subdirectories.

Without this, static library builds (without USE_FRAMEWORKS) flatten all
headers into the top-level header_dir ("react/debug"), so imports like
`<react/debug/redbox/RedBoxErrorParser.h>` fail because the "redbox/"
subdirectory is lost.
@motiz88 motiz88 force-pushed the fix-react-debug-header-mappings-main branch from 8344b0a to ebf73ef Compare April 23, 2026 17:04
@motiz88 motiz88 changed the title Preserve header subdirectory structure in React-debug pod Add redbox subspec to React-debug pod Apr 23, 2026
@motiz88 motiz88 marked this pull request as ready for review April 23, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant