在 azure 构建管道中处理 ionic 4 ios 应用程序,尝试存档构建并遇到错误
2020-07-09 12:17:12.156 xcodebuild[5440:16936] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/myApp_2020-07-09_12-17-12.155.xcdistributionlogs'.
error: exportArchive: No 'teamID' specified and no team ID found in the archive
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}
##[error]Error: /usr/bin/xcodebuild failed with return code: 70
我检查了我的证书,它们在正确的位置,我也尝试使用 cmd 运行ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
但没有用。在运行管道时,我也收到了警告,但没有找到任何解决方案。我需要改变什么吗?
##[warning]Failed to automatically identify the export method to use from the archive file. This might cause errors during the build or produce an invalid package. If export fails, either enable signing (set `Signing Style` to `Project Defaults`), or configure export manually (set `Export options` to `Plist` or `Specify`).
最佳答案
您的 Xcode@5
任务可能缺少以下两个属性中的任何一个:
exportOptions: 'specify'
exportTeamId: "Team Id"
关于ios - 导出文件 : No 'teamID' specified and no team ID found in the archive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62815060/