xcode 代码签名标识 <name> 与任何有效的、未过期的代码签名证书不匹配

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

code signing identity <name> does not match any valid, non-expired code-signing certificate

xcodemacoscertificate

提问by worker1138

I'm hoping someone can help me resolve this maddening issue. My friend and I are developing a mac store app, hosted on github. We published the app a month ago from his machine, with his dev center account. I recently pull the source from github onto my machine, to work on an update, but when I try to build it in xcode, I get the error:

我希望有人能帮我解决这个令人抓狂的问题。我和我的朋友正在开发一个 mac 商店应用程序,托管在 github 上。一个月前,我们使用他的开发中心帐户从他的机器上发布了该应用程序。我最近将 github 中的源代码拉到我的机器上,以进行更新,但是当我尝试在 xcode 中构建它时,出现错误:

"code signing identity does not match any valid, non-expired code-signing certificate in your keychain"

“代码签名身份与您钥匙串中的任何有效、未过期的代码签名证书不匹配”

I downloaded the 2 certificates from my friend's account on the dev center and put them in my keychain, along with the general apple certificate, but I still get the same error. Is there a private key issue here? I am not sure why I even have to sign the code? All I am doing is trying to build it and run it in xcode. Any help would be much appreciated.

我从我朋友在开发中心的帐户下载了 2 个证书,并将它们与一般的苹果证书一起放入我的钥匙串中,但我仍然遇到相同的错误。这里有私钥问题吗?我不知道为什么我什至必须签署代码?我所做的就是尝试构建它并在 xcode 中运行它。任何帮助将非常感激。

采纳答案by aqua

Change your build to Debug or Release.

将您的构建更改为调试或发布。