Skip to content

[0.83] Fix React-CoreModules missing React-featureflags header path under use_frameworks! #1283

@motiz88

Description

@motiz88

Target Branch

0.83-stable

Link to commit or PR to be picked

facebook/react-native#56592

Description

React/CoreModules/RCTRedBox.mm imports <react/featureflags/ReactNativeFeatureFlags.h> (added in #56574). Under use_frameworks! this fails to build on 0.83.7:

RCTRedBox.mm:19:9: 'react/featureflags/ReactNativeFeatureFlags.h' file not found

React-CoreModules.podspec uses plain s.dependency "React-featureflags", which doesn't add the framework's Headers dir to HEADER_SEARCH_PATHS. Switching to add_dependency(s, "React-featureflags") does — matching every neighboring dep (React-debug, React-runtimeexecutor, React-jsinspector*, etc.) in the same file.

On main the symptom is masked by the update_search_paths post-install hook (#55679 added a global entry for React-featureflags), which was never backported to 0.83-stable — which is why the bug surfaces here and not on main. Landing this directly on 0.83-stable unblocks 0.83.7 use_frameworks! users without waiting for a main → stable cherry-pick.

Metadata

Metadata

Assignees

Labels

Type Pick RequestPick requests to include commits inside a React Native release

Type

No type

Projects

Status

Done / Picked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions