Repository navigation
Fix ImageRequestParams.h not found in ReactCodegen with static frameworks - #60225
Merged
meta-codesync[bot] merged 1 commit intoNov 23, 2026
Merged
meta-codesync[bot] merged 1 commit into
meta-codesync[bot] merged 1 commit into
Conversation
intergalacticspacehighway
force-pushed
the
@nishan/fix-reactcodegen-imagemanager-static-frameworks
branch
from
November 23, 2026 08:36
042d666 to
26ca996
Compare
…orks With `use_frameworks!` and React Native built from source, generated component code fails to compile when a spec has an `ImageSource` prop. Generated `Props.h` includes `<React/ImageManager.h>`, which reaches `ImageRequestParams.h` in `React_ImageManager.framework`. The `ReactCodegen` pod has no header search path for that framework.
intergalacticspacehighway
force-pushed
the
@nishan/fix-reactcodegen-imagemanager-static-frameworks
branch
from
November 23, 2026 08:37
26ca996 to
6860cf0
Compare
intergalacticspacehighway
marked this pull request as ready for review
November 23, 2026 08:37
3 tasks
javache
approved these changes
Nov 23, 2026
|
@javache has imported this pull request. If you are a Meta employee, you can view this in D133961066. |
christophpurrer
approved these changes
Nov 23, 2026
christophpurrer
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Collaborator
|
This pull request was successfully merged by @intergalacticspacehighway in a83804d When will my fix make it into a release? | How to file a pick request? |
gabrieldonadel
deleted the
@nishan/fix-reactcodegen-imagemanager-static-frameworks
branch
November 23, 2026 16:33
gabrieldonadel
pushed a commit
that referenced
this pull request
Nov 23, 2026
…orks ## Summary: Since 0.89.0-rc.0, the iOS build fails with static frameworks when React Native is built from source and a codegen spec has an `ImageSource` prop. `@react-native-community/slider`, `react-native-svg`, and `react-native-screens` all hit this. ``` React_Fabric.framework/Headers/react/renderer/imagemanager/ImageManager.h:17:10: fatal error: 'react/renderer/imagemanager/ImageRequestParams.h' file not found ``` Regressed by #58730, which made codegen emit umbrella includes. Generated `Props.h` now includes `<React/ImageManager.h>`. That umbrella includes `ImageManager.h`, which needs `ImageRequestParams.h` from `React_ImageManager.framework`. The `ReactCodegen` pod has no header search path for that framework. Library pods already get it from `new_architecture.rb`. This change adds `React-ImageManager` to the `ReactCodegen` framework header search paths. The prebuilt core is not affected. ## Changelog: [IOS] [FIXED] - Fix `ImageRequestParams.h` not found in codegen with static frameworks ## Test Plan: Repro: https://github.com/intergalacticspacehighway/rn-static-frameworks-imagesource-repro (RN CLI app on 0.89.0-rc.2 with `@react-native-community/slider@5.2.2`). ```sh USE_FRAMEWORKS=static RCT_USE_RN_DEP=0 RCT_USE_PREBUILT_RNCORE=0 bundle exec pod install xcodebuild -workspace SliderRepro.xcworkspace -scheme SliderRepro \ -configuration Release -sdk iphonesimulator -derivedDataPath build ``` - Without this change: `BUILD FAILED` with the error above. - With this line applied to the 0.89.0-rc.2 template in the repro: `BUILD SUCCEEDED`. The template on `main` is the same. - `jest packages/react-native/scripts/codegen/__tests__/generate-artifacts-executor-test.js`: 52 passed. The 2 snapshots are updated for the new line. Differential Revision: D133961066 Pull Request resolved: #60225 (cherry picked from commit a83804d)
Collaborator
|
This pull request was successfully merged by @intergalacticspacehighway in 051dc36 When will my fix make it into a release? | How to file a pick request? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Since 0.89.0-rc.0, the iOS build fails with static frameworks when React Native is built from source and a codegen spec has an
ImageSourceprop.@react-native-community/slider,react-native-svg, andreact-native-screensall hit this.Regressed by #58730, which made codegen emit umbrella includes. Generated
Props.hnow includes<React/ImageManager.h>. That umbrella includesImageManager.h, which needsImageRequestParams.hfromReact_ImageManager.framework. TheReactCodegenpod has no header search path for that framework. Library pods already get it fromnew_architecture.rb.This change adds
React-ImageManagerto theReactCodegenframework header search paths. The prebuilt core is not affected.Changelog:
[IOS] [FIXED] - Fix
ImageRequestParams.hnot found in codegen with static frameworksTest Plan:
Repro: https://github.com/intergalacticspacehighway/rn-static-frameworks-imagesource-repro (RN CLI app on 0.89.0-rc.2 with
@react-native-community/slider@5.2.2).USE_FRAMEWORKS=static RCT_USE_RN_DEP=0 RCT_USE_PREBUILT_RNCORE=0 bundle exec pod install xcodebuild -workspace SliderRepro.xcworkspace -scheme SliderRepro \ -configuration Release -sdk iphonesimulator -derivedDataPath buildBUILD FAILEDwith the error above.BUILD SUCCEEDED. The template onmainis the same.jest packages/react-native/scripts/codegen/__tests__/generate-artifacts-executor-test.js: 52 passed. The 2 snapshots are updated for the new line.