问题描述
我正在使用azure管道为iOS创建CI,我的存储库依赖于快速代码,在运行构建后,我在Xcode存档任务中遇到了此错误
Error Domain=IDEFoundationErrorDomain Code=1 "No 'teamID' specified and no team ID found in the archive" UserInfo={NSLocalizedDescription=No 'teamID' specified and no team ID found in the archive}
我在Xcode存档任务中使用arg
steps:
- task: Xcode@5
displayName: 'Xcode archive'
inputs:
actions: archive
xcWorkspacePath: '*.xcworkspace'
scheme: '$(SchemeName)'
packageApp: true
args: '-UseModernBuildSystem=0 '
解决方法
您可能需要设置exportOptions
来指定和设置Xcode任务的属性teamId
和exportMethod
。参见以下示例:
steps:
- task: Xcode@5
displayName: 'Xcode archive'
inputs:
actions: archive
xcWorkspacePath: '*.xcworkspace'
scheme: '$(SchemeName)'
packageApp: true
args: '-UseModernBuildSystem=0'
exportOptions: 'specify'
exportMethod: 'app-store'
teamId: "Team Id"
exportTeamId: "Team Id"
有关xcode任务的更多信息,请参见here。