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.
Target Branch
0.83-stable
Link to commit or PR to be picked
facebook/react-native#56592
Description
React/CoreModules/RCTRedBox.mmimports<react/featureflags/ReactNativeFeatureFlags.h>(added in #56574). Underuse_frameworks!this fails to build on 0.83.7:React-CoreModules.podspecuses plains.dependency "React-featureflags", which doesn't add the framework's Headers dir toHEADER_SEARCH_PATHS. Switching toadd_dependency(s, "React-featureflags")does — matching every neighboring dep (React-debug,React-runtimeexecutor,React-jsinspector*, etc.) in the same file.On
mainthe symptom is masked by theupdate_search_pathspost-install hook (#55679 added a global entry forReact-featureflags), which was never backported to0.83-stable— which is why the bug surfaces here and not onmain. Landing this directly on0.83-stableunblocks 0.83.7use_frameworks!users without waiting for a main → stable cherry-pick.