Skip to content

Commit 9b0258f

Browse files
SaadnajmiCopilot
andcommitted
fix(hermes): embed path-independent prepare command
Embed the helper script in the podspec so CocoaPods executes it from the downloaded Hermes source root without serializing the checkout path. This preserves the quoted-script behavior from upstream react#45316 while making local podspec checksums portable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 82a2c7b commit 9b0258f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/react-native/sdks/hermes-engine/hermes-engine.podspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Pod::Spec.new do |spec|
153153
'HERMES_CLI_PATH' => "#{hermesc_path}/bin/hermesc"
154154
}
155155

156-
spec.prepare_command = ". '#{react_native_path}/sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh'"
156+
spec.prepare_command = File.read(File.join(__dir__, "utils", "create-dummy-hermes-xcframework.sh")) # [macOS] Keep local podspec checksums independent of the checkout path.
157157

158158
# This podspec is also run in CI to build Hermes without using Pod install
159159
# and sometimes CI fails because `Pod::Executable` does not exist if it is not run with Pod Install.

0 commit comments

Comments
 (0)