我有一个应用程序在Xcode9上的CircleCI上运行得很好,但我们需要将Xcode版本提升到10.1.0。
但当我切换它时,Ci停止工作,即使启用了遗留系统(-UseNewBuildSystem=NO或-UseModernBuildSystem=0被传递给Fastlane的build_ios_app),我也得到了"Myapp.app/main.jsbundle不存在“的错误。
▸ + echo 'error: File /Users/distiller/project/ios/build/Build/Intermediates.noindex/ArchiveIntermediates/Myapp/BuildProductsPath/Release-iphoneos/Myapp.app/main.jsbundle does not exist. This must be a bug with'
▸ error: File /Users/distiller/project/ios/build/Build/Intermediates.noindex/ArchiveIntermediates/Myapp/BuildProductsPath/Release-iphoneos/Myapp.app/main.jsbundle does not exist. This must be a bug with
▸ + echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
▸ React Native, please report it here: https://github.com/facebook/react-native/issues发布于 2019-01-31 23:38:48
在花了几个小时来弄清楚它是怎么回事之后,我发现了问题:构建失败了,因为CircleCI上Xcode10.1.0的docker镜像缺少一些由React Native构建应用程序所需的依赖项。
错误只是说“main.jsbundle不存在”。当xcode从react-native-xcode.sh文件运行react-native-cli bundle时就会发生这种情况。而且它没有指出错误的根本原因:这个Xcode版本使用的docker镜像中缺少watchman。
为什么这些镜像没有安装相同的软件包?我不知道。我只期望在镜像之间安装相同的软件包。
添加brew install watchman会使配置项再次通过:
- run:
name: "Install React Native dependencies"
command: |
brew update
brew install watchman我希望react-native-xcode.sh可以返回根错误,而不仅仅是main.jsbundle does not exist
https://stackoverflow.com/questions/54427035
复制相似问题