From 99740ff7b8a6b6727f43bdbe6c39f83095f00ee9 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 28 Nov 2022 08:00:40 -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 Differential Revision: https://internalfb.com/D41548985 Pulled By: cipolleschi fbshipit-source-id: 38878f923bfaec1b7e83413d8ad62a65f2545922 --- 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|