微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 CI 机器上安装乘法时,Fastlane 发现错误的证书

如何解决在 CI 机器上安装乘法时,Fastlane 发现错误的证书

我在 AppFile 中有 2 个通道:

for_lane :app_dev do
  apple_id "email@email1.com"
  team_id "KLMnopGRST"
end

for_lane :app_prod do
  apple_id "email@email2.com"
  team_id "ABCDEFGHIJ"
end

team_id ABCDEFGHIJ 有证书 BCERT,team_id KLMnopGRSTACERT 证书。它们都安装在 CI 机器上......但是对于第一个通道 app_test CI 发现证书 BCERT 而不是 ACERT。为什么?


+-------------------------+---------------------------------------------------+
|                          Summary for cert 2.180.1                           |
+-------------------------+---------------------------------------------------+
| api_key                 | ********                                          |
| development             | false                                             |
| force                   | false                                             |
| generate_apple_certs    | true                                              |
| username                | email@email1.com                              |
| team_id                 | KLMnopGRST                                        |
| keychain_path           | /Users/me/Library/Keychains/login.keychain-db |
| skip_set_partition_list | false                                             |
| platform                | ios                                               |
+-------------------------+---------------------------------------------------+

[11:29:00]: Creating authorization token for App Store Connect API
[11:29:01]: Found the certificate 56JF6H2Y6G (BCERT) which is installed on the local machine. Using this one.
[11:29:01]: Verifying the certificate is properly installed locally...
[11:29:01]: Successfully installed certificate 56JF6H2Y6G
[11:29:01]: Use signing certificate '56JF6H2Y6G' from Now on!
[11:29:01]: ------------------
[11:29:01]: --- Step: sigh ---
[11:29:01]: ------------------

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。