我无法让 Xcode Cloud 克服这些
"Unable to load contents of file list: '/Target Support Files/Pods-MyApp/Pods-MyApp-frameworks-Release-output-files.xcfilelist'"
错误。我试过:
我可以手动创建档案并将其上传到Apple。
环境信息:
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
<
出现以下错误:
[!] Couldn't determine repo type for URL: `https://mirrors.xxxxxx/git/CocoaPods/Specs.git`: Connection reset by peer - SSL_connect
>>解决方案2:删除Podfile中的源集