未找到签名证书“iOS 分发版”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45050902/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
No signing certificate "iOS Distribution" found
提问by user3034944
I am trying to sign an app with my client's certificates. I have received the following file from the client
我正在尝试使用我客户的证书签署应用程序。我从客户那里收到了以下文件
I tried installing the ios_distribution
certificate and the key (.p12). Also I have installed the provisioning profile. Now when I try to sign the app with the provisioning profile, it does show up in the drop down but I get the following error:-
我尝试安装ios_distribution
证书和密钥 (.p12)。我还安装了配置文件。现在,当我尝试使用配置文件对应用程序进行签名时,它确实显示在下拉列表中,但出现以下错误:-
No "iOS Distribution" signing certificate matching team ID "7S977Lxxx" with a private key was found
How can I solve this issue? Any help is appreciated.
我该如何解决这个问题?任何帮助表示赞赏。
采纳答案by Kassem Itani
You need to have the private key of the signing certificate in the keychain along with the public key. Have you created the certificate using the same Mac (keychain) ?
您需要在钥匙串中拥有签名证书的私钥和公钥。您是否使用相同的 Mac(钥匙串)创建了证书?
Solution #1:
解决方案#1:
- Revoke the signing certificate (reset) from apple developer portal
- Create the signing certificate again on the same mac (keychain). Then you will have the private key for the signing certificate!
- 从苹果开发者门户撤销签名证书(重置)
- 在同一 mac(钥匙串)上再次创建签名证书。然后您将拥有签名证书的私钥!
Solution #2:
解决方案#2:
- Export the signing identities from the origin xCode
- Import the signing on your xCode
- 从源 xCode 导出签名身份
- 在您的 xCode 上导入签名
Apple documentation: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html
苹果文档:https: //developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html
回答by Naval Hasan
I had the same issue and I have gone through all these solutions given, but none of them worked for me. But then I realised my stupid mistake. I forgot to change Code signing identity to iOS Distribution from iOS Developer, under build settings tab. Please make sure you have selected 'iOS Distribution' there.
我遇到了同样的问题,我已经完成了所有这些解决方案,但没有一个对我有用。但后来我意识到了我愚蠢的错误。我忘记在构建设置选项卡下将代码签名标识从 iOS 开发人员更改为 iOS 分发版。请确保您在那里选择了“iOS 分发”。
回答by Khalid Musa Sagar
Solution Steps:
解决步骤:
Unchecked "Automatically manage signing".
Select "Provisioning profile" in "Signing (Release)" section.
No signing certificate error will be show.
Then below the error has a "Manage Certificates" button. click the button.
取消选中“自动管理签名”。
在“签名(发布)”部分中选择“配置文件”。
不会显示签名证书错误。
然后在错误下方有一个“管理证书”按钮。单击按钮。
- This window will come. Click the + sign and click "iOS Distribution". xcode will create the private key for your distribution certificate and error will be gone.
- 这个窗口会来。单击 + 号,然后单击“iOS 分发”。xcode 将为您的分发证书创建私钥,错误将消失。
回答by Rishav Kumar
Double click and install the production certificate in your key chain. This might resolve the issue.
双击并在您的钥匙串中安装生产证书。这可能会解决问题。
回答by Greg Hilston
Our solution was to run
我们的解决方案是运行
fastlane match
fastlane match
as I forgot we setup a Matchfile.
因为我忘了我们设置了一个 Matchfile。