【发布时间】:2020-05-08 14:34:58
【问题描述】:
我正在尝试为我的 xCode 项目构建 CI 管道。在过去的 2 天里,我一直在为此苦苦挣扎。
这些是我的管道中使用的任务:
- 安装 Apple 证书
- 安装 Apple 配置文件
- pod 安装
- Xcode 构建和清理
- 将文件复制到 $(build.artifactstagingdirectory)
- 将工件发布到放置文件夹
我在文档中看到,如果需要,我们需要选中 Create App Package 复选框和 ipa 包。但是每当我检查支票时
❌ 错误:找不到匹配“provision_name.mobileprovision”的团队“teamID”的配置文件:Xcode 找不到任何匹配“teamId/provision_name.mobileprovision”的配置文件。安装配置文件(通过将其拖放到 Xcode 的停靠项上)或在目标编辑器的 Signing & Capabilities 选项卡中选择不同的配置文件。 (在项目“project_name”的目标“project_name”中)
这里有两个关于 xCode 构建任务中签名和导出选项的 sn-ps:
所以有人知道为什么会发生这个问题吗?
【问题讨论】:
-
尝试在“签名样式”选项中自动设置,并在“团队 ID”中粘贴您可以在开发人员站点中找到的团队 ID,或者在组 ID 之前使用 Xcode。
-
删除配置文件名称。您只需要变量中的 UUID。该变量由您的安装配置文件步骤填充。如果这没有帮助,请将您的 .yml 文件添加到问题中。
-
@Andrea 您的解决方案不起作用,已引发以下错误
❌ error: RDAAPP.iOS has conflicting provisioning settings. RDAAPP.iOS is automatically signed, but provisioning profile RDAIII Services Viewer Provisioning Profile has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the Signing & Capabilities editor. (in target 'RDAAPP.iOS' from project 'RDAAPP.iOS') -
@Paulw11 如何获取填充变量??
-
如果您有一个
InstallAppleProvisioningProfile和一个InstallAppleCertificate任务,那么将为您设置变量
标签: ios xcode azure-devops continuous-integration