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: <https://github.com/imWildCat-archived/react-native-075-rc2-regression-ios-linking-script-phase>

Reviewed By: christophpurrer

Differential Revision: D59125585

Pulled By: blakef

fbshipit-source-id: be96d3b207eff67c5e0d777203e7fc0d10103fc0
This commit is contained in:
imWildCat
2024-06-27 16:14:59 -07:00
committed by Facebook GitHub Bot
parent a557a81f96
commit e320ab47cf
@@ -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