From e320ab47cf855f2e5de74ea448ec292cf0bbb29a Mon Sep 17 00:00:00 2001 From: imWildCat Date: Thu, 27 Jun 2024 16:14:59 -0700 Subject: [PATCH] fix the path of the script phase (#45208) Summary: Since 0.75-rc.x, I cannot run pod install because of an linking issue of react native firebase. https://github.com/reactwg/react-native-releases/issues/341#issuecomment-2194568204 ## Changelog: [IOS][FIXED] Auto linking script of script phase Pull Request resolved: https://github.com/facebook/react-native/pull/45208 Test Plan: Full demo of this fix: Reviewed By: christophpurrer Differential Revision: D59125585 Pulled By: blakef fbshipit-source-id: be96d3b207eff67c5e0d777203e7fc0d10103fc0 --- packages/react-native/scripts/cocoapods/autolinking.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/cocoapods/autolinking.rb b/packages/react-native/scripts/cocoapods/autolinking.rb index fec826c541ee17..0c56d8d4c5fa26 100644 --- a/packages/react-native/scripts/cocoapods/autolinking.rb +++ b/packages/react-native/scripts/cocoapods/autolinking.rb @@ -168,7 +168,7 @@ def link_native_modules!(config) # Support passing in a path relative to the root of the package if phase["path"] - phase["script"] = File.read(File.expand_path(phase["path"], package["root"])) + phase["script"] = File.read(File.expand_path(phase["path"], package[:path])) phase.delete("path") end