xcode 为什么代码签名身份没有列出我的证书?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11480049/
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
Why is Code Signing Identity not listing my certificate?
提问by Bradford
I'm using Xcode 4 and am trying to sign my first Mac OS X application. When I go to Project -> Build Settings -> Code Signing Identity
, it will list "Don't Sign", "Automatic Profile Selector", and "Other". Under "Automatic Profile Selector" it lists "3rd Party Mac Developer Application". When I build it fails and says `Code Sign error:
我正在使用 Xcode 4 并且正在尝试签署我的第一个 Mac OS X 应用程序。当我转到 时Project -> Build Settings -> Code Signing Identity
,它会列出“不要签名”、“自动配置文件选择器”和“其他”。在“自动配置文件选择器”下,它列出了“3rd Party Mac Developer Application”。当我构建它失败并显示“代码签名错误”时:
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”与默认钥匙串中的任何有效证书/私钥对都不匹配
Earlier, in Organizer -> Provisiong Profiles
, I did a refresh. It setup two certificates in Device -> Developer Profile
. Nothing appears in Provisioning Profiles. The two certificates it shows in Developer Profile exist in my keychain as valid. I see no expired certificates even when I "show expired".
早些时候,在 中Organizer -> Provisiong Profiles
,我进行了刷新。它在 Device -> Developer Profile
. 配置文件中没有任何内容。它在开发人员配置文件中显示的两个证书存在于我的钥匙串中是有效的。即使我“显示已过期”,我也看不到过期的证书。
The certificates it has in Developer Profile match what's in the keychain:
它在开发人员资料中的证书与钥匙串中的内容相匹配:
3rd Party Mac Developer Installer: MyCompany, LLC
Mac Developer: My Name (SOMECODE)
第 3 方 Mac 开发人员安装程序:MyCompany, LLC
Mac 开发人员:我的名字 (SOMECODE)
I don't see these in the Code Signing Identity list, though. I even tried entering in the first one in Other, but it said it could not find it.
但是,我在代码签名身份列表中没有看到这些。我什至尝试进入其他的第一个,但它说找不到。
I have no need for entitlements, so I don't have a profile setup. And I am the company admin.
我不需要权利,所以我没有配置文件设置。我是公司管理员。
What am I doing wrong?
我究竟做错了什么?
采纳答案by Bradford
Ok, this turned out to be a lot simpler than I had imagined.
好吧,结果证明这比我想象的要简单得多。
After I refresh and download the certs:
在我刷新并下载证书后:
1) Click on My Mac under devices. And click "Add to Portal". This will download the Mac Team Provisioning Wildcard Profile
1) 单击设备下的我的 Mac。然后单击“添加到门户”。这将下载 Mac Team Provisioning Wildcard Profile
2) Create an App ID for my app (necessary for sandboxing/entitlements), through the website
2) 通过网站为我的应用程序创建一个应用程序 ID(沙盒/授权所必需的)
3) Add a new Developer Provisioning Profile for this App ID, through the website
3) 通过网站为这个 App ID 添加一个新的开发者配置文件
4) Go to Organizer and refresh.
4) 转到管理器并刷新。
Everything appears now.
现在一切都出现了。
But, I realize that for a Mac App w/ no sandboxing/entitlements, I really didn't need to do this. I could have got away with just creating the Production Provisioning Profile, since it does not require a registered device.
但是,我意识到对于没有沙盒/权利的 Mac 应用程序,我真的不需要这样做。我本可以只创建生产供应配置文件,因为它不需要注册设备。