Azure Devops Pipeline 中的 Xcode 构建失败

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

我正在使用 Azure Devops Build pipeline CI 来构建我的 Xcode 工作区。它在本地运行良好,并且在物理设备上运行良好。但我想使用管道来自动化构建过程,这给了我错误:

##[error]Error: /usr/bin/xcodebuild failed with return code: 65

详细的错误是,它无法加载文件的内容,但在 xcode 上运行时却不是这样

❌  error: Unable to load contents of file list: '/Target Support Files/Pods-ProjectName/Pods-ProjectName-frameworks-Release-input-files.xcfilelist' (in target 'ProjectName' from project 'ProjectName')


❌  error: Unable to load contents of file list: '/Target Support Files/Pods-ProjectName/Pods-ProjectName-frameworks-Release-output-files.xcfilelist' (in target 'ProjectName' from project 'ProjectName')

这是管道中的yaml文件内容:

trigger:
- A/B_testing

pool:
  vmImage: 'macos-latest'

steps:
- task: Xcode@5
  inputs:
    actions: 'build'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'ProjectName.xcworkspace'
    scheme: 'ProjectName'
    xcodeVersion: '13'
    packageApp: false
    signingOption: 'default'

我尝试从 Xcode 项目的构建阶段删除输入和输出文件,卸载/安装 pod,在 Podfile 中添加 lines,以及其他解决方案,但找不到与我的错误相关的任何内容。如果有人对此有想法或以前遇到过此问题,请分享。 使用 Xcode 13.4 构建应用程序。

xcode azure-devops azure-pipelines cocoapods cicd
1个回答
0
投票

您可能需要在 Xcode 构建任务之前添加“CocoaPods@0”任务才能在管道中执行“pod install”,您可以尝试一下吗?

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