callstack / react-native-visionos

A framework for building native visionOS applications using React
https://callstack.github.io/react-native-visionos-docs/
MIT License
1.02k stars 30 forks source link

Error installing hermes-engine #104

Closed giovanijfc closed 9 months ago

giovanijfc commented 9 months ago

Description

Hi, I tried to update @callstack/react-native-visionos to version 0.73.4 to use the XR API, and now I'm getting this error on both versions 0.73.3 and 0.73.4 when I run bundle exec pod install:

Steps to reproduce

  1. Create npx @callstack/react-native-visionos@latest init YourApp
  2. Next, go to YourApp/visionos
  3. Run bundle install && bundle exec pod install

React Native Version

0.73.4

Affected Platforms

Other (please specify)

Output of npx react-native info

info Fetching system and libraries information...
warn Multiple Podfiles were found: ios/Podfile,visionos/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/main/docs/configuration.md
System:
  OS: macOS 13.6.1
  CPU: (8) arm64 Apple M1
  Memory: 62.38 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.19.0
    path: ~/.nvm/versions/node/v18.19.0/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v18.19.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.1
    path: /Users/giovanichiodi/.gem/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11090377
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /usr/bin/javac
  Ruby:
    version: 2.7.8
    path: /opt/homebrew/opt/ruby@2.7/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

Warning: Multiple Podfiles were found: ios/Podfile, visionos/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". Learn more at: https://github.com/react-native-community/cli/blob/main/docs/configuration.md
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/RCT-Folly.podspec`
[Codegen] Found rncore
Fetching podspec for `SocketRocket` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/SocketRocket.podspec`
Fetching podspec for `boost` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/boost.podspec`
Fetching podspec for `fmt` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/fmt.podspec`
Fetching podspec for `glog` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/@callstack/react-native-visionos/sdks/hermes-engine/hermes-engine.podspec`
[Hermes] Using commit defined by HERMES_COMMIT envvar: 4249e05bdc3897a4f00aa06de67156b39707781f
Const Defined!
Fetching podspec for `libevent` from `../node_modules/@callstack/react-native-visionos/third-party-podspecs/libevent.podspec`
/Users/admin/Projects/AppVisionOS/node_modules/@callstack/react-native-visionos/third-party-podspecs/libevent.podspec:17: warning: already initialized constant Pod::CONFIG_WITHOUT_OPENSSL
/Users/admin/Projects/AppVisionOS/node_modules/@callstack/react-native-visionos/third-party-podspecs/libevent.podspec:17: warning: previous definition of CONFIG_WITHOUT_OPENSSL was here
Downloading dependencies
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.73.3)
Installing FBReactNativeSpec (0.73.3)
Installing RCT-Folly (2022.05.16.00)
Installing RCTRequired (0.73.3)
Installing RCTTypeSafety (0.73.3)
Installing React (0.73.3)
Installing React-Codegen (0.73.3)
Installing React-Core (0.73.3)
Installing React-CoreModules (0.73.3)
Installing React-Fabric (0.73.3)
Installing React-FabricImage (0.73.3)
Installing React-ImageManager (0.73.3)
Installing React-Mapbuffer (0.73.3)
Installing React-NativeModulesApple (0.73.3)
Installing React-RCTActionSheet (0.73.3)
Installing React-RCTAnimation (0.73.3)
Installing React-RCTAppDelegate (0.73.3)
Installing React-RCTBlob (0.73.3)
Installing React-RCTFabric (0.73.3)
Installing React-RCTImage (0.73.3)
Installing React-RCTLinking (0.73.3)
Installing React-RCTNetwork (0.73.3)
Installing React-RCTSettings (0.73.3)
Installing React-RCTSwiftExtensions (0.73.3)
Installing React-RCTText (0.73.3)
Installing React-RCTVibration (0.73.3)
Installing React-callinvoker (0.73.3)
Installing React-cxxreact (0.73.3)
Installing React-debug (0.73.3)
Installing React-graphics (0.73.3)
Installing React-hermes (0.73.3)
Installing React-jserrorhandler (0.73.3)
Installing React-jsi (0.73.3)
Installing React-jsiexecutor (0.73.3)
Installing React-jsinspector (0.73.3)
Installing React-logger (0.73.3)
Installing React-nativeconfig (0.73.3)
Installing React-perflogger (0.73.3)
Installing React-rendererdebug (0.73.3)
Installing React-rncore (0.73.3)
Installing React-runtimeexecutor (0.73.3)
Installing React-runtimescheduler (0.73.3)
Installing React-utils (0.73.3)
Installing ReactCommon (0.73.3)
Installing SocketRocket (0.7.0.1)
Installing Yoga (1.14.0)
Installing boost (1.83.0)
Installing fmt (9.1.0)
Installing glog (0.3.5)
Installing hermes-engine (0.73.3)

[!] Error installing hermes-engine
[!] /usr/bin/git clone https://github.com/callstack/hermes-visionos.git /var/folders/ry/xg3s2fz93sj4w0dzy7rxwkb40000gn/T/d20240207-41919-6mcfkr --template=

Cloning into '/var/folders/ry/xg3s2fz93sj4w0dzy7rxwkb40000gn/T/d20240207-41919-6mcfkr'...
error: 5997 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Reproducer

...

Screenshots and Videos

...

giovanijfc commented 9 months ago

Hi, i tested installing the dependencies using mobile data from my phone, and it was successful! I believe the issue might be with my internet service provider. I will close the issue