#RN项目中Js代码编译有误, 无法运行
1 | ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. |
1 M1系统运行报错
Showing All Errors Only
Undefined symbol: OBJC_CLASS$_xxx
原因: 必须要(Xcode14.3)模拟器开启 Rosetta 才行
Xcode14之前, 应用程序里面 选择模拟器, 查看简介并勾选 使用Rosetta打开.
Xcode14之后, 打开Xcode->Product-> Destination-> Destination Architecturesk-> Show Rosetta Destinations,然后选择有(Rosetta)的模拟器运行
2 Android模拟器编译运行报错:
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
解决方案: 虚拟内存不够, 把Android模拟器容量改大点后, 重启再试
- 本文作者: 醉疏狂
- 本文链接: https://hubin97.github.io/2023/10/08/RN报错总结/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!