diff --git a/packages/react-native/scripts/cocoapods/autolinking.rb b/packages/react-native/scripts/cocoapods/autolinking.rb index fec826c541e..0c56d8d4c5f 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