Xcode Cloud Build - 无法加载文件内容

问题描述 投票:0回答:2

我无法让 Xcode Cloud 克服这些

"Unable to load contents of file list: '/Target Support Files/Pods-MyApp/Pods-MyApp-frameworks-Release-output-files.xcfilelist'"
错误。我试过:

  • pod 分解/安装
  • 清理并重新启动 Xcode (14.3)
  • 验证我的机器上存在 xcfilelist 路径
  • 从我的运行脚本构建阶段删除了输入文件

我可以手动创建档案并将其上传到Apple。

xcode build-error xcode-cloud xcode14.3
2个回答
0
投票

我们遇到了一个非常相似的错误。然而,它很不稳定,如果我们重新运行构建,它在大多数情况下都可以工作。有时甚至从第一次开始。

build errors


0
投票

环境信息:

Xcode15.0

Cocoapods
管理依赖关系。

.gitignore
如下:

*.xcworkspace
#CocoaPods
Pods
Podfile.lock

发生了什么:

第一次使用

Xcode Cloud
时,会出现找不到
xcworkspace
的错误。当然是找不到的。根据本地步骤,我需要
pod install
在 glone 宕机后生成
xcworkspace

在这里我了解到我可以创建一个脚本来实现

pod install
。脚本的路径和命名都有严格的限制:
$(SRCROOT)/ci_scripts /ci_post_clone.sh
,代码如下:

#!/bin/sh
brew install cocoapods
pod setup
cd ../
pod install

<:添加脚本后,当前路径为

$(SRCROOT)/ci_scripts

这会导致

pod install
失败并出现以下错误。

Unable to load contents of file list: '/Target Support Files/Pods-xxxxx/Pods-xxxxx-frameworks-Release-input-files.xcfilelist'

>>解决方案1

cd ../
之前
pod install


<:我使用了不受支持的 cocoapod 源

出现以下错误:

[!] Couldn't determine repo type for URL: `https://mirrors.xxxxxx/git/CocoaPods/Specs.git`: Connection reset by peer - SSL_connect

>>解决方案2:删除Podfile中的源集

© www.soinside.com 2019 - 2024. All rights reserved.