Solve the problem of cocoapods downloading hermes too slowly

Recently, when executing the pod install command to install iOS dependency packages, it got stuck when the installation hermes engine was reached. When executing pod install --verbose, I see that the size of the download package is 478M, but the download speed is as high as 20kb/s.
Insert image description here
Regarding this problem, I consulted some information on the Internet and the following is a feasible solution.

step 1

Open the node_modules/react-native/sdks/hermes-engine/hermes-utils.rb file to view the download path or execute pod install --verbose to view the output download address.

def release_tarball_url(version, build_type)
    return "https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/#{version}/react-native-artifacts-#{version}-hermes-ios-#{build_type.to_s}.tar.gz"
end

Then, click on the download address to download it manually. Hanging a VPN is much faster than pod downloading.

Guess you like

Origin blog.csdn.net/xiangzhihong8/article/details/133277281