From 088fcb1e5dbce75ea9514123a633703e6227c277 Mon Sep 17 00:00:00 2001 From: woxtu Date: Mon, 6 Jan 2025 00:46:51 -0800 Subject: [PATCH] Resolve run script build phase warnings (#48495) Summary: This PR updates podspecs and resolve the following Xcode warnings: ``` Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. ``` ``` Run script build phase '[CP-User] [RN]Check FBReactNativeSpec' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. ``` Enabling the `always_out_of_date` flag will uncheck "Based on dependency analysis" in a script phase. ## Changelog: [INTERNAL] [FIXED] - Resolve run script build phase warnings Pull Request resolved: https://github.com/facebook/react-native/pull/48495 Test Plan: 1. Run `bundle exec pod install` in the RNTester folder 2. Open the Xcode workspace 3. Check "Based on dependency analysis" is unchecked in the '[CP-User] [RN]Check rncore' script phase and the '[CP-User] [RN]Check FBReactNativeSpec' script phase Reviewed By: cipolleschi Differential Revision: D67835376 Pulled By: rshest fbshipit-source-id: 11eec80d8172bc0129bfdcf7c79b5edf40427fab --- packages/react-native/React/React-RCTFBReactNativeSpec.podspec | 1 + packages/react-native/ReactCommon/React-Fabric.podspec | 1 + packages/react-native/ReactCommon/React-FabricComponents.podspec | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/react-native/React/React-RCTFBReactNativeSpec.podspec b/packages/react-native/React/React-RCTFBReactNativeSpec.podspec index cb8c9f98693..77f143d4afb 100644 --- a/packages/react-native/React/React-RCTFBReactNativeSpec.podspec +++ b/packages/react-native/React/React-RCTFBReactNativeSpec.podspec @@ -73,6 +73,7 @@ Pod::Spec.new do |s| { :name => '[RN]Check FBReactNativeSpec', :execution_position => :before_compile, + :always_out_of_date => '1', :script => <<-EOS echo "Checking whether Codegen has run..." fbReactNativeSpecPath="$REACT_NATIVE_PATH/React/FBReactNativeSpec" diff --git a/packages/react-native/ReactCommon/React-Fabric.podspec b/packages/react-native/ReactCommon/React-Fabric.podspec index 42101a80528..08b5134becc 100644 --- a/packages/react-native/ReactCommon/React-Fabric.podspec +++ b/packages/react-native/ReactCommon/React-Fabric.podspec @@ -256,6 +256,7 @@ Pod::Spec.new do |s| { :name => '[RN]Check rncore', :execution_position => :before_compile, + :always_out_of_date => '1', :script => <<-EOS echo "Checking whether Codegen has run..." rncorePath="$REACT_NATIVE_PATH/ReactCommon/react/renderer/components/rncore" diff --git a/packages/react-native/ReactCommon/React-FabricComponents.podspec b/packages/react-native/ReactCommon/React-FabricComponents.podspec index c8a38c79cec..33f4dd2ff33 100644 --- a/packages/react-native/ReactCommon/React-FabricComponents.podspec +++ b/packages/react-native/ReactCommon/React-FabricComponents.podspec @@ -193,6 +193,7 @@ Pod::Spec.new do |s| { :name => '[RN]Check rncore', :execution_position => :before_compile, + :always_out_of_date => '1', :script => <<-EOS echo "Checking whether Codegen has run..." rncorePath="$REACT_NATIVE_PATH/ReactCommon/react/renderer/components/rncore"