美文网首页
[bug]“RCTBundleURLProvider.h” fi

[bug]“RCTBundleURLProvider.h” fi

作者: codeTao | 来源:发表于2018-09-22 02:36 被阅读107次

bug : Xcode中运行React Native应用程序, AppDelegate.m文件中报错 “RCTBundleURLProvider.h” file not found

1.jpg

解决:

  • 删除React Native应用程序根目录下node modules文件
2.png
  • 然后运行npm install(或者使用yarn)重新下载,
  • 在完成所有内容下载后,运行react-native upgrade,它可以让你选择用模板替换旧文件,这样做你可以在react-native中重新链接你的本机依赖,最后不要忘记在Xcode中清理你的项目。

相关文章

网友评论

      本文标题:[bug]“RCTBundleURLProvider.h” fi

      本文链接:https://www.haomeiwen.com/subject/ylstoftx.html