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

查看:25
本文介绍了“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天全站免登陆