gpt4 book ai didi

ios - Azure Pipelines 工作陷入构建 iOS 版本的 React Native 应用程序的困境

转载 作者:行者123 更新时间:2023-11-29 13:54:43 28 4
gpt4 key购买 nike

我正在尝试使用 Azure Pipelines 构建 iOS 版本的 React Native 应用程序。我正在使用 faSTLane 的操作 build_ios_app 运行构建。

它在我的本地计算机上运行得很好,但它在 Azure 上卡住了,输出如下:

[08:32:21]: ‌▸‌ ‌Compiling‌ LaunchScreen.xib‌
[08:32:25]: ‌▸‌ ‌Processing‌ Info.plist‌
[08:32:25]: ‌▸‌ ‌Running script‌: Bundle React Native code and images
‌[08:32:32]: ▸ ‌the transform cache was reset.‌

这通常是在新终端窗口中打开打包器的步骤。

在我的本地计算机上,此步骤的输出看起来有点不同:

[11:38:15]: ▸ Processing Info.plist
[11:38:15]: ▸ Running script 'Bundle React Native code and images'
[11:38:15]: ▸ Touching Demo.app (in target: Demo)
[11:38:16]: ▸ Archive Succeeded

没有‌变换缓存已重置。‌这表明节点在某个时刻在Azure上耗尽了内存?

  • 手动捆绑应用程序(通过 react-native bundle ...)效果很好。

更新:增加可用于 Nodejs 任务的内存(在 NODE_OPTIONS 环境中设置 --max-old-space-size=8096变量)使作业失败(至少)并出现以下错误消息:

2019-07-29T09:58:04.6108820Z error: File /Users/vsts/Library/Developer/Xcode/DerivedData/Demo-algdypqdcfcqirejrjxxgvqsmfdv/Build/Intermediates.noindex/ArchiveIntermediates/Demo/BuildProductsPath/Release-iphoneos/Demo.app/main.jsbundle does not exist. This must be a bug with[0m

2019-07-29T09:58:04.6109130Z
2019-07-29T09:58:04.6109180Z
2019-07-29T09:58:04.6109640Z [33m▸[0m [39;1mGenerating 'Demo.app.dSYM'[0m
2019-07-29T09:58:04.6109740Z ** ARCHIVE FAILED **
2019-07-29T09:58:04.6109810Z
2019-07-29T09:58:04.6109850Z
2019-07-29T09:58:04.6109930Z The following build commands failed:
2019-07-29T09:58:04.6111020Z PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/vsts/Library/Developer/Xcode/DerivedData/Demo-algdypqdcfcqirejrjxxgvqsmfdv/Build/Intermediates.noindex/ArchiveIntermediates/Demo/IntermediateBuildFilesPath/Demo.build/Release-iphoneos/Demo.build/Script-00DD1BFF1BD5951E006B06BC.sh
2019-07-29T09:58:04.6111240Z (1 failure)

有什么想法可以解决这个问题吗?

最佳答案

我在本地计算机上遇到了同样的问题,解决方案是更新到最新版本的 Node js

我猜你的 CI 环境应该是独立的,所以版本冲突应该不是问题。但您可能在没有意识到的情况下将 faSTLane 更新到与 Azure 服务器上的节点不兼容的版本。

关于ios - Azure Pipelines 工作陷入构建 iOS 版本的 React Native 应用程序的困境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57250175/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com