Skip to content

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

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

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

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.

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 labels Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Caution

Missing Changelog

Please add a Changelog to your PR description. See Changelog format

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 7, 2026
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. 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.

1 participant