React Native - Xcode 12.1 & iOS 14.0.1 Invariant Violation:Module AppRegistry 不是注册的可调用模块(调用 runA
Posted
技术标签:
【中文标题】React Native - Xcode 12.1 & iOS 14.0.1 Invariant Violation:Module AppRegistry 不是注册的可调用模块(调用 runApplication)【英文标题】:React Native - Xcode 12.1 & iOS 14.0.1 Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication) 【发布时间】:2020-12-07 12:15:07 【问题描述】:以下是从终端捆绑 ios 时的错误 -
版本 - Xcode 12.1 & iOS 14.0.1
Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Mon Dec 07 2020 17:31:28.708] LOG BASE_URL https://xxx.xxx.com/xxx/
[Mon Dec 07 2020 17:31:28.815] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Mon Dec 07 2020 17:31:28.832] ERROR Invariant Violation: Native module cannot be null.
[Mon Dec 07 2020 17:31:29.907] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
【问题讨论】:
【参考方案1】:在毫无疑问会出现的更明显的答案中,当您有一些无法在文件中编译的流氓代码时,有时会发生这种情况。也许是一些您忘记删除的临时复制面食?
【讨论】:
以上是关于React Native - Xcode 12.1 & iOS 14.0.1 Invariant Violation:Module AppRegistry 不是注册的可调用模块(调用 runA的主要内容,如果未能解决你的问题,请参考以下文章
XCode 构建中 react-native-config 的 PhaseScriptExecution 失败
Xcode 10 - 无法构建 React Native 应用程序