You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native 0.70.15执行pod install时hermes-engine安装遇curl 404错误求助

React Native 0.70.15 pod install 404错误的解决办法

遇到的问题是官方发布React Native 0.70.15后,对应的hermes-runtime-darwin-v0.70.15.tar.gz包暂未上线,导致pod install时报404错误。以下是几个可行的解决办法:

  • 临时指定Hermes为0.70.14版本
    打开ios目录下的Podfile,找到hermes-engine相关配置,将版本锁定为0.70.14(该版本的包已正常发布),修改后重新执行pod install即可完成安装。

  • 临时禁用Hermes
    在ios/Podfile的use_react_native!配置块中,添加:hermes_enabled => false参数,示例如下:

    use_react_native!(
      :path => config[:reactNativePath],
      :hermes_enabled => false
    )
    

    执行pod install就能绕过Hermes的安装流程,等官方补上0.70.15版本的Hermes包后,再把这个参数改回true重新安装即可。

  • 本地构建Hermes引擎
    克隆React Native v0.70.15的源码,进入packages/react-native/scripts/hermes目录,执行本地构建脚本生成hermes-engine的包文件,之后在Podfile中指定本地构建好的hermes-engine路径,再执行pod install即可。

内容的提问来源于stack exchange,提问作者friederbluemle

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 19:38:27