"RCTBundleURLProvider.h";找不到文件-AppDelegate.m [英] "RCTBundleURLProvider.h" file not found - AppDelegate.m

查看:56
本文介绍了"RCTBundleURLProvider.h";找不到文件-AppDelegate.m的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在XCode中运行我的React Native应用程序,但一直出现此错误.我不知道如何解决该问题.有什么建议吗?

I am trying to run my React Native app in XCode and I keep getting this error. I cannot figure out how to resolve the issue. Any suggestions?

XCode中的错误的屏幕截图:

Screen Shot of Error in XCode:

推荐答案

删除节点模块,然后运行npm install(或者更好的是yarn),并在完成所有下载后,运行react-native upgrade,这应该为您提供以下选择:通过这样做,用模板文件替换旧文件,这样就可以在react-native中重新链接本机依赖项,​​从而解决问题.当然,不要忘了用Xcode清理项目.

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.

这篇关于"RCTBundleURLProvider.h";找不到文件-AppDelegate.m的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆