首页 > 解决方案 > 选择 fastlane 匹配配置文件时缺少用于签署证书的私钥

问题描述

当我在 Xcode 12.5.1 中选择匹配配置文件时,显示此错误:

Missing private key for signing certificate.
Failed to locate the private key matching certificate "Apple Distribution: Xiaoqiang Jiang (6JP4P88ZJB)" in the keychain. To sign with this signing certificate, install its private key in your keychain. If you don't have the private key, select a different signing certificate for CODE_SIGN_IDENTITY in the build settings editor.

它告诉我钥匙串上的证书不包含私钥,然后我打开钥匙串发现它包含私钥。

在此处输入图像描述

为什么会发生这种情况,我应该怎么做才能解决它?即使在钥匙串中导入了私钥,为什么仍然告诉我不包含私钥?

标签: ios

解决方案


推荐阅读