facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.57k stars 24.37k forks source link

Installing hermes-engine (0.74.1) #44761

Closed eldirb21 closed 6 months ago

eldirb21 commented 6 months ago

Description

In IOS with RN 0..74.1 "dependencies": { "react": "18.2.0", "react-native": "0.74.1" },

pod install stuck when installing Installing hermes-engine (0.74.1)

Steps to reproduce

  1. delete Pods and Podfile.lock
  2. npm install
  3. cd ios
  4. pod install

React Native Version

0.74.1

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1
  Memory: 103.38 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.3
    path: ~/.nvm/versions/node/v18.20.3/bin/node
  Yarn: Not Found
  npm:
    version: 10.7.0
    path: ~/.nvm/versions/node/v18.20.3/bin/npm
  Watchman:
    version: 2024.05.06.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/sqm/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.3 AI-233.14808.21.2331.11709847
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /opt/homebrew/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home/bin/javac
  Ruby:
    version: 3.3.1
    path: /Users/sqm/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.1
    wanted: 0.74.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

Installing hermes-engine (0.74.1)

stuck and after long time return this error

Installing hermes-engine (0.74.1)

[!] Error installing hermes-engine
[!] /usr/bin/curl -f -L -o /var/folders/z2/f8mrsctd57q92xqwcqw7r5cw0000gn/T/d20240603-46119-zr28sb/file.tgz https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.74.1/react-native-artifacts-0.74.1-hermes-ios-debug.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.15.2 cocoapods-downloader/2.1'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 16 16.5M   16 2718k    0     0   3955      0  1:13:05  0:11:43  1:01:22     0
curl: (56) Recv failure: Connection reset by peer

[!] [Codegen] warn: using experimental new codegen integration

Reproducer

https://github.com/eldirb21/issue-hermes.git

Screenshots and Videos

Screenshot 2024-06-03 at 21 30 56
cortinico commented 6 months ago

You need to wait some time as you'll be downloading the hermes-engine tarball which takes some time. After the first run, things should generally be faster.