macos Xcode 中的代码签名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7373199/
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
Code Signing in Xcode
提问by inFever
I was going to turn on code signing for my mac app so I'm able to submit the app to the mac app store. But when I select the 3rd party mac application cert for code signing it says that there were no profiles matching.
我打算为我的 mac 应用程序打开代码签名,以便我能够将应用程序提交到 mac 应用程序商店。但是当我选择第 3 方 mac 应用程序证书进行代码签名时,它说没有匹配的配置文件。
And when I'm trying to build the app like that I'm getting the error:
当我尝试构建这样的应用程序时,出现错误:
Code Sign error: The identity '3rd Party Mac Developer Application' doesn't match any valid certificate/private key pair in the default keychain
代码签名错误:身份“3rd Party Mac Developer Application”与默认钥匙串中的任何有效证书/私钥对都不匹配
And I can't figure out why. I've tried to revoke and reinstall my certificate but that doesn't seem to help.
我不明白为什么。我试图撤销并重新安装我的证书,但这似乎没有帮助。
Here's 2 screenshots. Of the code signing part in the build settings and one from keychain access.
这是2个屏幕截图。构建设置中的代码签名部分和钥匙串访问中的一个。
Maybe your able to see what's wrong? If you need any more info please let me know! :)
也许你能看出哪里出了问题?如果您需要更多信息,请告诉我!:)
采纳答案by James Webster
It seems you have a missing key. I'm not sure on the reason why it's missing, but creating a new certificate will likely work.
看来你丢了一把钥匙。我不确定它丢失的原因,但创建一个新证书可能会起作用。
(For other users, this solution was discussed in chat, this answer was posted here as reference.)
(对于其他用户,此解决方案已在聊天中讨论过,此答案已发布在此处作为参考。)
回答by Bhavesh Modi
Go to Build Setting --> Code Signing Identity --> Select Don't Code Sign. it will not show Build & Error. (This will work only when you don't want to sign in).
转到构建设置 --> 代码签名标识 --> 选择不要代码签名。它不会显示构建和错误。(这仅在您不想登录时才有效)。