Skip to content

[0.78] Build failure when Hermes is enabled #2499

Open
@tido64

Description

@tido64

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions