首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CircleCI + React Native + Xcode 10

CircleCI + React Native + Xcode 10
EN

Stack Overflow用户
提问于 2019-01-30 02:00:09
回答 1查看 1.7K关注 0票数 8

我有一个应用程序在Xcode9上的CircleCI上运行得很好,但我们需要将Xcode版本提升到10.1.0。

但当我切换它时,Ci停止工作,即使启用了遗留系统(-UseNewBuildSystem=NO-UseModernBuildSystem=0被传递给Fastlane的build_ios_app),我也得到了"Myapp.app/main.jsbundle不存在“的错误。

代码语言:javascript
复制
▸ + 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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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会使配置项再次通过:

代码语言:javascript
复制
- run:
    name: "Install React Native dependencies"
    command: |
      brew update
      brew install watchman

我希望react-native-xcode.sh可以返回根错误,而不仅仅是main.jsbundle does not exist

票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54427035

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档