Skip to content

[0.78] Build failure when Hermes is enabled #2499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tido64 opened this issue May 20, 2025 · 1 comment · Fixed by #2500
Open

[0.78] Build failure when Hermes is enabled #2499

tido64 opened this issue May 20, 2025 · 1 comment · Fixed by #2500
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@tido64
Copy link
Member

tido64 commented May 20, 2025

Environment

react-native -v: 0.78.2
npm ls react-native-macos: 0.78.3
node -v: 22.15.0
npm -v: 10.9.2
yarn --version: 4.6.0
xcodebuild -version: 16.2

Steps to reproduce the bug

  1. Enable Hermes
  2. pod install
  3. Notice during Fetching podspec for `hermes-engine` from … that it outputs [Hermes] Using the latest commit from main. instead of [Hermes] Using release tarball from URL: …

Expected Behavior

During pod install, prebuilt Hermes artifacts should be used

Actual Behavior

During pod install, Hermes is set to build from source

Reproducible Demo

https://github.com/microsoft/react-native-test-app/actions/runs/15133204265/job/42540038311

Additional context

It looks like the function for determining latest version is failing because only the four (?) latest versions are returned from Maven:

% curl -s https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/maven-metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com.facebook.react</groupId>
  <artifactId>react-native-artifacts</artifactId>
  <versioning>
    <latest>0.80.0-rc.2</latest>
    <release>0.80.0-rc.2</release>
    <versions>
      <version>0.79.2</version>
      <version>0.80.0-rc.0</version>
      <version>0.80.0-rc.1</version>
      <version>0.80.0-rc.2</version>
    </versions>
    <lastUpdated>20250519194503</lastUpdated>
  </versioning>
</metadata>
@tido64 tido64 added the bug Something isn't working label May 20, 2025
tido64 added a commit that referenced this issue May 20, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
@Saadnajmi Saadnajmi reopened this May 20, 2025
@Saadnajmi
Copy link
Collaborator

Not closed as we haven't back ported and released a new 0.78 patch version with the fix yet.

tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit to microsoft/react-native-test-app that referenced this issue May 21, 2025
tido64 added a commit to microsoft/react-native-test-app that referenced this issue May 21, 2025
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit that referenced this issue May 21, 2025
## Summary:

`findLastestVersionWithArtifact` fails to find older versions of Hermes
prebuilds because the Maven endpoint it uses does not return all
versions.

Resolves #2499

## Test Plan:

`pod install` output from RNTA with RN 0.78.2 and RNM 0.78.3

![image](https://github.com/user-attachments/assets/a6984ba0-87c0-4304-95d1-4a5b054b44fa)
tido64 added a commit to microsoft/react-native-test-app that referenced this issue May 21, 2025
tido64 added a commit to microsoft/react-native-test-app that referenced this issue May 21, 2025
tido64 added a commit to microsoft/react-native-test-app that referenced this issue May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants