在 React-Native 0.29 和 0.30 版本中,当我在 iOS 设备上使用离线 bundle 运行时,总是会收到以下错误信息:
有人遇到过同样的问题吗?我该如何修复呢?谢谢。
未处理的 JS 异常:模块 RCTLog 不是已注册的可调用模块。
RCTFatal + 124
-[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 584
+ 144
+ 296
+ 68
-[RCTModuleMethod invokeWithBridge:module:arguments:] + 1684
-[RCTBatchedBridge _handleRequestNumber:moduleID:methodID:params:] + 712
__33-[RCTBatchedBridge handleBuffer:]_block_invoke.452 + 1144
...
使用如下 bundle:
react-native bundle --entry-file ./index.ios.js --platform ios --dev false --bundle-output ./Example/index.ios.jsbundle --assets-dest ./Example/ --verbose
有人遇到过同样的问题吗?我该如何修复呢?谢谢。