在 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 (将#修改为@)