From b2e2fd9272d7fe6440c89d6ebd2c1a2a57c3dd09 Mon Sep 17 00:00:00 2001 From: Guil Varandas Date: Wed, 2 Aug 2023 10:20:05 -0400 Subject: [PATCH] Leverage the resolved RN dir when assigning Hermes tag --- packages/react-native/scripts/cocoapods/jsengine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/cocoapods/jsengine.rb b/packages/react-native/scripts/cocoapods/jsengine.rb index e4b2dd4e315284..0590bd169cbd83 100644 --- a/packages/react-native/scripts/cocoapods/jsengine.rb +++ b/packages/react-native/scripts/cocoapods/jsengine.rb @@ -32,7 +32,7 @@ def setup_hermes!(react_native_path: "../node_modules/react-native", fabric_enab pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi" # This `:tag => hermestag` below is only to tell CocoaPods to update hermes-engine when React Native version changes. # We have custom logic to compute the source for hermes-engine. See sdks/hermes-engine/* - hermestag_file = File.join(react_native_path, "sdks", ".hermesversion") + hermestag_file = File.join(react_native_dir, "sdks", ".hermesversion") hermestag = File.exist?(hermestag_file) ? File.read(hermestag_file).strip : '' pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes-engine/hermes-engine.podspec", :tag => hermestag pod 'React-hermes', :path => "#{react_native_path}/ReactCommon/hermes"