Skip to content

Commit ad1ddc2

Browse files
authored
fix(ios): fix pod install --project-directory=... (#36096)
1 parent 374d874 commit ad1ddc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/react_native_pods.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
209209
flipper_post_install(installer)
210210
end
211211

212-
package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
212+
package_path = File.join(Pod::Config.instance.installation_root, react_native_path, "package.json")
213+
package = JSON.parse(File.read(package_path))
213214
version = package['version']
214215

215216
if ReactNativePodsUtils.has_pod(installer, 'hermes-engine') && is_building_hermes_from_source(version, react_native_path)

0 commit comments

Comments
 (0)