From 9371e201927fd105e797bf06e43943dd21e04381 Mon Sep 17 00:00:00 2001 From: Christian Falch Date: Tue, 20 May 2025 04:32:46 -0700 Subject: [PATCH] fixed build type when downloading hermes artifacts (#51283) Summary: Hermes build-type was hardcoded to 'release' in the previous version of the prebuild scripts. This commit fixes this so that we can provide a build-type for hermes when downloading prebuilt tarballs. - Cleaned up parameters in hermes.js - Updated with buildType parameter when suitable - Fixed some function names - Updated version file so that it contains build type - Removed version file when using a local tarball ## Changelog: [IOS] [FIXED] - Fixed resolving build type when downloading hermes artifacts Pull Request resolved: https://github.com/facebook/react-native/pull/51283 Test Plan: No test-plan yet Reviewed By: cortinico Differential Revision: D74882001 Pulled By: cipolleschi fbshipit-source-id: cfeed934023712e70f7d04c137e8611164120cec --- packages/react-native/scripts/ios-prebuild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/ios-prebuild.js b/packages/react-native/scripts/ios-prebuild.js index 44691d496b1..332d4d6e2a3 100644 --- a/packages/react-native/scripts/ios-prebuild.js +++ b/packages/react-native/scripts/ios-prebuild.js @@ -109,7 +109,7 @@ async function main() { }; // HERMES ARTIFACTS - await prepareHermesArtifactsAsync(currentVersion, 'release'); + await prepareHermesArtifactsAsync(currentVersion, 'debug'); // CODEGEN const codegenPath = path.join(root, '.build/codegen');