问题描述
我正在使用 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
但是我做了一个 main.jsbundle 并将它添加到项目中。
我使用 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
。
我认为这是 Watheman 的问题。我知道与 Big Sum m1 react-native 相关的问题,我正在使用 rosseta 构建它。 如果我遗漏了什么,你能给我一个解决问题的方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)