运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found

Posted honeynm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found相关的知识,希望对你有一定的参考价值。

情况:根据https://github.com/rebeccahughes/react-native-device-info添加依赖库,运行.xcworkspacea项目后报错

解决:Delete node modules, then run npm install (or better yet yarn) and after everything has finished downloading, run react-native upgrade which should give you the option to replace old files with the template ones, by doing so you re-link your native dependencies in react-native which should fix your problem. Of course don‘t forget to clean your project in Xcode

翻译:删除node modules文件夹(一般在根目录),然后运行 npm install(也是在根目录),install 结束后在运行 react-native upgrade

详细:https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m

以上是关于运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found的主要内容,如果未能解决你的问题,请参考以下文章

解决vue打包后报“er; // Unhandled 'error' event”错误

idea创建Maven 项目后,底部没有run窗口 且运行后报错No goals have been specified for this build.

在Android Studio上导入github的项目后报错提示:Unknown host ‘repo.maven.apache.org‘

Laya踩坑002_Mac编译后报错file://跨域问题

vue打包后报错TypeError: Cannot read property ‘call’ of undefined解决方法 - 2021-09-18

数据库迁移后报错提示MySQL Error:Can''t find file errno: 13 - Permission denied的解决方法