Skip to content

Commit

Permalink
fix the path of the script phase (#45208)
Browse files Browse the repository at this point in the history
Summary:
Since 0.75-rc.x, I cannot run pod install because of an linking issue of react native firebase.

reactwg/react-native-releases#341 (comment)

## Changelog:

[IOS][FIXED] Auto linking script of script phase

Pull Request resolved: #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
  • Loading branch information
imWildCat authored and facebook-github-bot committed Jun 27, 2024
1 parent a557a81 commit e320ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/scripts/cocoapods/autolinking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e320ab4

Please sign in to comment.