From 7a89bbc1a1132750d34bceec2bc5263d3474486d Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Mon, 6 Jul 2026 23:27:55 -0700 Subject: [PATCH] fix(podspec): remove duplicate scrollview subspec in React-FabricComponents 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> --- .../ReactCommon/React-FabricComponents.podspec | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/react-native/ReactCommon/React-FabricComponents.podspec b/packages/react-native/ReactCommon/React-FabricComponents.podspec index 500dd3d8e31b..b6a28b32d05a 100644 --- a/packages/react-native/ReactCommon/React-FabricComponents.podspec +++ b/packages/react-native/ReactCommon/React-FabricComponents.podspec @@ -101,17 +101,6 @@ Pod::Spec.new do |s| sss.header_dir = "react/renderer/components/safeareaview" end - ss.subspec "scrollview" do |sss| - sss.source_files = podspec_sources(["react/renderer/components/scrollview/*.{m,mm,cpp,h}", - "react/renderer/components/scrollview/platform/cxx/**/*.{m,mm,cpp,h}", - "react/renderer/components/scrollview/platform/ios/**/*.{m,mm,cpp,h}"], - ["react/renderer/components/scrollview/*.h", - "react/renderer/components/scrollview/platform/cxx/**/*.h", - "react/renderer/components/scrollview/platform/ios/**/*.h"]) - sss.exclude_files = "react/renderer/components/scrollview/tests" - sss.header_dir = "react/renderer/components/scrollview" - end - ss.subspec "text" do |sss| sss.source_files = podspec_sources(["react/renderer/components/text/*.{m,mm,cpp,h}", "react/renderer/components/text/platform/cxx/**/*.{m,mm,cpp,h}"],