Skip to content

Add redbox subspec to React-debug pod#56585

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

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
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 28, 2026

@motiz88 has imported this pull request. If you are a Meta employee, you can view this in D102809818.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot closed this in 78a740d Apr 28, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Apr 28, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @motiz88 in 78a740d

When will my fix make it into a release? | How to file a pick request?

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 28, 2026

@motiz88 merged this pull request in 78a740d.

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. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants