From 44b04b6d42620c032d0bfa451c8c18c8443d7ede Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Mon, 2 Dec 2024 03:23:45 -0800 Subject: [PATCH] fix: add mising subpsec to React-Fabric podspec (#48023) Summary: Running app with static linking fails to compile. Probably during https://github.com/facebook/react-native/pull/43581 adding that code was overlooked since the analogous thing seems to be added: https://github.com/facebook/react-native/pull/43581/files#diff-6680f6849631e3dcc5897ee3961a9d6d2bc57aff3eccb79a9d9c634183276202R566. cc rubennorte since you made the linked PR. ## Changelog: [IOS] [FIXED] - Add missing subpsec to React-Fabric podspec. Pull Request resolved: https://github.com/facebook/react-native/pull/48023 Test Plan: Run https://github.com/WoLewicki/reproducer-react-native/tree/%40wolewicki/static-linking-with-live-markdown and see that it won't compile without this change. Reviewed By: cipolleschi Differential Revision: D66600486 Pulled By: cortinico fbshipit-source-id: 9de64541e49d27cdf00f37942adab6620476f15a --- packages/react-native/ReactCommon/React-Fabric.podspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/react-native/ReactCommon/React-Fabric.podspec b/packages/react-native/ReactCommon/React-Fabric.podspec index bd71203db10..42101a80528 100644 --- a/packages/react-native/ReactCommon/React-Fabric.podspec +++ b/packages/react-native/ReactCommon/React-Fabric.podspec @@ -221,6 +221,13 @@ Pod::Spec.new do |s| end + s.subspec "consistency" do |ss| + ss.dependency folly_dep_name, folly_version + ss.compiler_flags = folly_compiler_flags + ss.source_files = "react/renderer/consistency/**/*.{m,mm,cpp,h}" + ss.header_dir = "react/renderer/consistency" + end + s.subspec "uimanager" do |ss| ss.subspec "consistency" do |sss| sss.dependency folly_dep_name, folly_version