Est*_*cas 7 xcode ios circleci react-native fastlane
我有一个应用程序在Xcode 9上的CircleCI上运行React Native 0.57.7时运行良好,但是我们需要将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
Run Code Online (Sandbox Code Playgroud)
Est*_*cas 12
在花了几个小时才弄清楚它发生了什么之后,我发现了问题:构建无声地失败了,因为CircleCI上Xcode 10.1.0的docker镜像缺少React Native构建应用程序所需的一些依赖关系。
错误只是说“ main.jsbundle不存在”。当xcode react-native-cli bundle从react-native-xcode.sh文件运行时,会发生这种情况。而且它并不能告诉错误的根本原因:watchman此Xcode版本使用的docker映像中缺少该错误。
为什么这些映像没有相同的已安装软件包?我不知道。我只期望图像之间安装相同的软件包。
添加brew install watchman使CI再次通过:
- run:
name: "Install React Native dependencies"
command: |
brew update
brew install watchman
Run Code Online (Sandbox Code Playgroud)
我希望react-native-xcode.sh可以返回根本错误,而不仅仅是main.jsbundle does not exist
| 归档时间: |
|
| 查看次数: |
964 次 |
| 最近记录: |