From a77b02572bdd292e058c9e38d6e8d012aae31a42 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 13 Dec 2022 08:25:15 +0000 Subject: [PATCH] [LOCAL] properly support both libraries and use_frameworks --- ReactCommon/ReactCommon.podspec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ReactCommon/ReactCommon.podspec b/ReactCommon/ReactCommon.podspec index 7f3c1ac2e72d39..64d418a246e7b7 100644 --- a/ReactCommon/ReactCommon.podspec +++ b/ReactCommon/ReactCommon.podspec @@ -61,7 +61,10 @@ Pod::Spec.new do |s| ss.subspec "core" do |sss| sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}", "react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}" - sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h" + excluded_files = ENV['USE_FRAMEWORKS'] == nil ? + "react/nativemodule/core/ReactCommon/LongLivedObject.h" : + "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h" + sss.exclude_files = excluded_files end s.subspec "react_debug_core" do |sss|