From a01218b4100485de4d9e7a0ad18c1394e5007a80 Mon Sep 17 00:00:00 2001 From: Steven Petryk Date: Mon, 29 Jul 2024 14:40:09 -0700 Subject: [PATCH] Ensure third-party-podspecs depend on react_native_pods.rb These podspecs all depend on a function defined in another Ruby file (which is kind of scary, but prooobably okay). However, they do not `require` that file, and instead (previously) were just relying on the fact that CocoaPods loads all the podspecs declared in your Podfile. This is fine for `pod install`, but doesn't apply to commands like `pod ipc spec` (which is used to convert an individual Podspec file to JSON). With that command, the PodSpecs were not evaluating successfully, as they didn't have access to this function. So we add the proper requires here and call it a day. --- .../react-native/third-party-podspecs/DoubleConversion.podspec | 2 ++ packages/react-native/third-party-podspecs/RCT-Folly.podspec | 2 ++ packages/react-native/third-party-podspecs/boost.podspec | 2 ++ packages/react-native/third-party-podspecs/fmt.podspec | 2 ++ packages/react-native/third-party-podspecs/glog.podspec | 2 ++ 5 files changed, 10 insertions(+) diff --git a/packages/react-native/third-party-podspecs/DoubleConversion.podspec b/packages/react-native/third-party-podspecs/DoubleConversion.podspec index 9d33cffed6cd9e..cd0a9a4df697a5 100644 --- a/packages/react-native/third-party-podspecs/DoubleConversion.podspec +++ b/packages/react-native/third-party-podspecs/DoubleConversion.podspec @@ -3,6 +3,8 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +require_relative "../scripts/react_native_pods" + Pod::Spec.new do |spec| spec.name = 'DoubleConversion' spec.version = '1.1.6' diff --git a/packages/react-native/third-party-podspecs/RCT-Folly.podspec b/packages/react-native/third-party-podspecs/RCT-Folly.podspec index 0fedbddc91364e..82d8f68e060899 100644 --- a/packages/react-native/third-party-podspecs/RCT-Folly.podspec +++ b/packages/react-native/third-party-podspecs/RCT-Folly.podspec @@ -3,6 +3,8 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +require_relative "../scripts/react_native_pods" + folly_config = get_folly_config() folly_compiler_flags = folly_config[:compiler_flags] folly_release_version = folly_config[:version] diff --git a/packages/react-native/third-party-podspecs/boost.podspec b/packages/react-native/third-party-podspecs/boost.podspec index 1d4e9384f7c6ad..001f3d3da1e23e 100644 --- a/packages/react-native/third-party-podspecs/boost.podspec +++ b/packages/react-native/third-party-podspecs/boost.podspec @@ -3,6 +3,8 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +require_relative "../scripts/react_native_pods" + Pod::Spec.new do |spec| spec.name = 'boost' spec.version = '1.83.0' diff --git a/packages/react-native/third-party-podspecs/fmt.podspec b/packages/react-native/third-party-podspecs/fmt.podspec index 3bd0c2007d23f3..69d684dff1030d 100644 --- a/packages/react-native/third-party-podspecs/fmt.podspec +++ b/packages/react-native/third-party-podspecs/fmt.podspec @@ -3,6 +3,8 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +require_relative "../scripts/react_native_pods" + Pod::Spec.new do |spec| spec.name = "fmt" spec.version = "9.1.0" diff --git a/packages/react-native/third-party-podspecs/glog.podspec b/packages/react-native/third-party-podspecs/glog.podspec index f921ec63cdb1d1..279e60f68902db 100644 --- a/packages/react-native/third-party-podspecs/glog.podspec +++ b/packages/react-native/third-party-podspecs/glog.podspec @@ -3,6 +3,8 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +require_relative "../scripts/react_native_pods" + Pod::Spec.new do |spec| spec.name = 'glog' spec.version = '0.3.5'