fix(rn-tester): use framework-style import for RCTFabricComponentsPlugins.h - #57697
Closed
chrfalch wants to merge 1 commit into
Closed
fix(rn-tester): use framework-style import for RCTFabricComponentsPlugins.h#57697chrfalch wants to merge 1 commit into
chrfalch wants to merge 1 commit into
Conversation
…gins.h The quoted form resolves only under CocoaPods (header maps re-vend the bare filename via FACADE_REEXPOSED_HEADERS in rncore_facades.rb). SwiftPM exposes React headers as an include directory, so the header is only reachable as <React/RCTFabricComponentsPlugins.h> — the quoted import makes MyNativeView fail to compile when rn-tester is converted to SwiftPM. The angle form resolves under both distributions. Cherry-picked from the SPM stack (ecdd1771019). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@fabriziocucci has imported this pull request. If you are a Meta employee, you can view this in D113771766. |
cortinico
approved these changes
Jul 27, 2026
cortinico
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
|
@fabriziocucci merged this pull request in 6d0612c. |
chrfalch
added a commit
that referenced
this pull request
Jul 27, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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:
rn-tester's
MyNativeViewexample importsRCTFabricComponentsPlugins.hwith the quoted form, which only resolves under CocoaPods (header maps re-vend the bare filename viaFACADE_REEXPOSED_HEADERSinrncore_facades.rb— see alsoscripts/ios-prebuild/__docs__/headers-rules.md, which documents the quoted form as CocoaPods-only). Under SwiftPM the header is exposed as an include directory, so only<React/RCTFabricComponentsPlugins.h>resolves — the quoted import makesMyNativeViewfail to compile when rn-tester is converted to SwiftPM (surfaced by the new SPM CI lane in #57659).The angle form resolves under both distributions. One line, no behavior change under CocoaPods.
Changelog:
[INTERNAL] [FIXED] - Fix rn-tester's NativeComponentExample header import so it compiles under SwiftPM
Test Plan:
main: converting rn-tester to SwiftPM (spm add --deintegrate) and building fails atRNTMyNativeViewComponentView.mm:16(fatal error: 'RCTFabricComponentsPlugins.h' file not found) — both against CI-composed prebuilt artifacts and locally-built ones (identical failure; clang search paths verified via the compile response file: the header is reachable only asReact/RCTFabricComponentsPlugins.h).xcodebuild -configuration Debug -sdk iphonesimulator→BUILD SUCCEEDED, embeddedReact.frameworkverified Debug-flavored.test_ios_rntester) covers the unchanged CocoaPods path.