运行.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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM