From dd0bf834818bcd330b0837b6ada9b848a595e4fe Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 29 Nov 2022 08:53:50 -0800 Subject: [PATCH] Do not add LongLivedObject wrapper in OSS (#35491) Summary: This change excludes the `LongLivedObject.h` file from the pod in the ReactCommon library. The file creates a problem when the `use_frameworks!` option is used in an app because there can't be two files with the same name, despite being in different paths, within the same framework. Specifically, this `LongLivedObject` is just a redirect to the other one, so it should be safe to exclude this. ## Changelog [iOS][Fixed] - Exclude redirector to `LongLivedObject.h` from ReactCommon podspec Pull Request resolved: https://github.com/facebook/react-native/pull/35491 Test Plan: 1. Manually tested in an app from RC2 Reviewed By: cortinico Differential Revision: D41548985 Pulled By: cipolleschi fbshipit-source-id: acc57fccdedb344a3aa105f2968645a049392e07 --- ReactCommon/ReactCommon.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/ReactCommon.podspec b/ReactCommon/ReactCommon.podspec index 79a77e1f7849a7..8c7d24bc267fee 100644 --- a/ReactCommon/ReactCommon.podspec +++ b/ReactCommon/ReactCommon.podspec @@ -62,6 +62,7 @@ Pod::Spec.new do |s| sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}", "react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}" sss.dependency "React-jsidynamic", version + sss.exclude_files = "react/nativemodule/core/ReactCommon/LongLivedObject.h" end ss.subspec "samples" do |sss|