无法让 Xcode 看到我的分发认证?代码签名错误:标识“iPhone Distribution”与任何配置文件中的任何标识都不匹配?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8101258/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:23:36  来源:igfitidea点击:

Can't get Xcode to see my distribution certification? Code sign error: The identify 'iPhone Distribution' doesn't match any identity in any profile?

iphonexcodecode-signingios-provisioningprovisioning-profile

提问by Greg

I can't seem to get Xcode to see my distribution certification? Code sign error: The identify 'iPhone Distribution' doesn't match any identity in any profile?

我似乎无法让 Xcode 看到我的发行版认证?代码签名错误:标识“iPhone Distribution”与任何配置文件中的任何标识都不匹配?

So:

所以:

  • In IOS Provisioning Portal
    • have a distribution certificate that is NOT expired
    • have a Team Provisioning Profile (not really sure of how this is used)
  • Have downloaded the distribution cert and double clicked on it and imported it to keychain
  • Goto Xcode - created a distribution profile
  • Under Product / BuildSettings / Distribution line item => If I click on "iPhone Distribution" there is no matches that occur....
  • 在 IOS 配置门户中
    • 拥有未过期的分发证书
    • 有一个团队供应配置文件(不太确定如何使用)
  • 已下载分发证书并双击它并将其导入钥匙串
  • 转到 Xcode - 创建一个分发配置文件
  • 在 Product / BuildSettings / Distribution 行项下 => 如果我单击“iPhone Distribution”,则不会发生匹配项....

If I can see the distribution certificate in KeyLink shouldn't this be the trigger for Xcode to be able to see this?

如果我可以在 KeyLink 中看到分发证书,这不应该是 Xcode 能够看到这一点的触发器吗?

Am I missing something / how could I fix so I can press ahead with uploading app...

我是否遗漏了什么/我该如何解决,以便我可以继续上传应用程序...

thanks

谢谢

采纳答案by Louie

I ran into this problem. I have created a list of step by step instructions on how to fix it. Hope it helps.

我遇到了这个问题。我已经创建了一个关于如何修复它的分步说明列表。希望能帮助到你。

iPhone app signing: A valid signing identity matching this profile could not be found in your keychain

iPhone 应用签名:在您的钥匙串中找不到与此配置文件匹配的有效签名身份

回答by Kripa Jayakumar

Just having the certificate on its own wont help. You need to check if you also have the private key associated with it.

仅凭自己的证书无济于事。您需要检查是否还有与之关联的私钥。

Click on Keychain access on your Mac, and go to the Certificates part and check if your certificate comes with your private key. If it doesnt, then you might have to get your private key.

单击 Mac 上的钥匙串访问,然后转到证书部分并检查您的证书是否与您的私钥一起提供。如果没有,那么您可能需要获取您的私钥。

You can have a look at this tutorial:

你可以看看这个教程:

http://seventhsoulmountain.blogspot.com/2013/09/ios-code-sign-in-complete-walkthrough.html

http://seventhsoulmountain.blogspot.com/2013/09/ios-code-sign-in-complete-walkthrough.html