项目中缺少main.jsbundle,Foundation和Security,导致错误 [英] main.jsbundle, Foundation and Security missing in the project, causing error

查看:154
本文介绍了项目中缺少main.jsbundle,Foundation和Security,导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到项目中缺少文件 main.jsbundle 文件并且不确定如何修复它,我应该删除文件/是否存在我可以执行以修复它吗?

I've noticed that file main.jsbundle file is missing from the project and am not sure of how to fix it, should I delete the file / is there a step I can perform to fix it?

以下是该项目所在位置的屏幕截图:

Here is a screenshot of where it is in the project:

更新:

类似问题也出现在以下框架中

Similar issue appears with following frameworks as well

推荐答案

问题可以解决如下


  • 使用 react native 命令行

  • $ react-native bundle --entry-file ./index.ios.js --platform ios --bundle-输出ios / main.jsbun dle 在本机项目的根中使用它

  • main.jsbundle 文件将其添加回将文件添加到项目选项

  • 只需验证该文件是否包含在构建阶段重新构建

  • By using the react native command line
  • $ react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output ios/main.jsbundle using this in the root of the react native project
  • When the main.jsbundle file is generated add it back to the Add Files to Project option
  • Just verify that the file is included in the build phase and re-build

更新
对于要设置的资产目的地,它们必须位于同一文件夹

试试这个,它会创建资产文件夹

Try this,it would create the asset folder

$ react-native bundle --entry-file ./index.ios.js --platform ios --bundle-output ios/main.jsbundle --assets-dest ./ios

这篇关于项目中缺少main.jsbundle,Foundation和Security,导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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