iOS 프로젝트에 hermes-engine을 설치하는 문제가 너무 느립니다.

문제 설명

iOS 프로젝트에서 "pod install"을 사용하여 종속성을 설치할 때 시간 초과로 인해 항상 오류가 보고됩니다.

$ pod install
...
Installing hermes-engine (0.71.11)

[!] Error installing hermes-engine
[!] /usr/bin/curl -f -L -o /var/folders/4c/slcchpy55s53ysmz_1_q_gzw0000gp/T/d20230918-1048-8kzufo/file.tgz https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.11/react-native-artifacts-0.71.11-hermes-ios-debug.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.12.1 cocoapods-downloader/1.6.3'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 20  459M   20 94.9M    0     0  13231      0 10:06:19  2:05:27  8:00:52 12661
curl: (18) HTTP/2 stream 1 was reset

해결책

오류 메시지에 따라 종속성 패키지를 수동으로 다운로드하고 설치합니다. 여기에서 다운로드하세요 https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.11/react-native-artifacts-0.71 .11-hermes-ios-debug.tar.gz

HERMES_ENGINE_TARBALL_PATH 환경 변수를 설정하고 다시 설치하세요.

$ export HERMES_ENGINE_TARBALL_PATH=/Volumes/mydisk/test/react-native-artifacts-0.71.11-hermes-ios-debug.tar.gz
$ pod install
...

추천

출처blog.csdn.net/kongxx/article/details/133420768