Skip to content

fix(podspec): remove duplicate scrollview subspec in React-FabricComponents#57452

Closed
Saadnajmi wants to merge 1 commit into
react:mainfrom
Saadnajmi:fix-duplicate-scrollview-subspec
Closed

fix(podspec): remove duplicate scrollview subspec in React-FabricComponents#57452
Saadnajmi wants to merge 1 commit into
react:mainfrom
Saadnajmi:fix-duplicate-scrollview-subspec

Conversation

@Saadnajmi

@Saadnajmi Saadnajmi commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Upstream version of our react-native-macos fix (microsoft#2969).

The scrollview subspec is declared in both React-Fabric.podspec (recursive
scrollview/**/* glob) and React-FabricComponents.podspec (scrollview/* +
platform/cxx + platform/ios). The globs overlap, so after pod install the
same sources (ScrollViewShadowNode.cpp, BaseScrollViewProps.cpp,
ScrollEvent.cpp, etc.) land in both the React-Fabric and
React-FabricComponents Pods targets, and consumers that link both (e.g. via
-all_load) hit duplicate symbol errors.

React-Fabric.podspec's recursive glob already covers everything
FabricComponents listed, so this removes the duplicate subspec.

Note on SPM: the SPM manifest (Package.swift) handles scrollview differently —
it's assigned solely to the React-Fabric target, with no FabricComponents
scrollview target. This is an existing divergence between the CocoaPods and SPM
setups; this PR only touches CocoaPods, so SPM is unaffected.

Changelog:

[IOS] [FIXED] - emove duplicate scrollview subspec in React-FabricComponents

Test Plan

CI should pass.

…onents

The `scrollview` subspec is declared in both `React-Fabric.podspec`
(recursive `scrollview/**/*` glob) and `React-FabricComponents.podspec`,
so the same source files land in both Pods targets and produce duplicate
symbol errors when both libraries are linked (e.g. via `-all_load`).
`React-Fabric.podspec`'s recursive glob already covers everything
FabricComponents listed (top-level + `platform/cxx` + `platform/ios`), so
remove the duplicate subspec from `React-FabricComponents.podspec`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 Jul 7, 2026
@facebook-github-tools facebook-github-tools Bot added p: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 7, 2026

@cipolleschi cipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing it!

@meta-codesync

meta-codesync Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in b67b7ba Jul 7, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 7, 2026
@meta-codesync

meta-codesync Bot commented Jul 7, 2026

Copy link
Copy Markdown

@cipolleschi merged this pull request in b67b7ba.

@Saadnajmi Saadnajmi deleted the fix-duplicate-scrollview-subspec branch July 7, 2026 20:58
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: Microsoft Partner: Microsoft Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants