react-naitve xcode build main.jsbundle 在 watchman 丢失连接日志后没有这样的文件错误

问题描述

我正在使用 Xcode 12.4(12D4e) React-native(0.64) macOS BigSur 并希望从 Xcode 发布构建版本。 但是失败了。。 它说 xcode...

Release-iphoneos/main.jsbundle: No such file or directory
Command PhaseScriptExecution Failed with a nonzero exit code

enter image description here

找不到。

但是我做了一个 main.jsbundle 并将它添加到项目中。

enter image description here

我使用 script

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

这里我不明白。在开发过程中,它无需添加脚本即可工作。但是,release 构建会输出错误

搜索了各种文档并尝试了。然后我发现了。当构建通过 Xcode 运行时,metro server 被打开,并且输出日志并且没有找到 mainjsbundle

enter image description here

我认为这是 Watheman 的问题。我知道与 Big Sum m1 react-native 相关的问题,我正在使用 rosseta 构建它。 如果我遗漏了什么,你能给我一个解决问题的方法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...