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

React Native iOS运行报错求助:TypeError与AppRegistry异常

React Native iOS应用运行报错求助

环境信息

  • 设备架构:Apple Silicon M1 Max
  • Xcode版本:v14.3.1
  • React Native版本:0.63.2

报错内容

运行iOS应用时出现以下错误:

TypeError: this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListener(eventType)', 'this._nativeModule.addListener' is undefined)
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

已尝试的操作

  • 卸载并重新安装node_modules
  • 卸载并重新安装pods

以上操作后问题仍未解决,恳请各位提供可行的解决方法。

错误日志截图

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.17 16:43:06