xcode 我无法对我的 iOS 应用程序进行代码签名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10331426/
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
I can't code sign my iOS application
提问by
I've purchased the developer program earlier and I've installed the certificate into my keychain (both iPhone developer and iPhone distribution). When I'm going to deploy apps to real devices, Xcode gives me this error:
Code Sign error: There are no valid certificate/private key pairs in the default keychain.
When I go to Organizer>Teams, there is an error and here is the message:
Unable to code sign using identities in this team: no private keys available.
And when I go to Provisioning Profiles, there is this error: Valid signing identity not found.
I've tried downloading the certificates from the portal and move them to my keychain again, but I've seen that no keys are coming with these certificates. Where can I get the keys? And also, I didn't see the Software Signing certificate in my keychain either. How can I solve this problem?
我之前已经购买了开发人员程序,并将证书安装到我的钥匙串中(iPhone 开发人员和 iPhone 发行版)。当我要将应用程序部署到真实设备时,Xcode 给我这个错误:
代码签名错误:默认钥匙串中没有有效的证书/私钥对。
当我转到 Organizer>Teams 时,出现错误并显示以下消息:
无法使用此团队中的身份进行编码签名:没有可用的私钥。
当我转到配置文件时,会出现此错误:未找到有效的签名身份。
我已经尝试从门户下载证书并将它们再次移动到我的钥匙串中,但是我发现这些证书没有附带任何密钥。我在哪里可以拿到钥匙?而且,我也没有在我的钥匙串中看到软件签名证书。我怎么解决这个问题?
采纳答案by Manuel
I've resolved this problem by deleting everything related to signing of apps (so in Xcode, Keychain Access, and on developer.apple.com) and make new profiles following the wizard (called launch assistant) on the homepage of the provisioning portal.
我通过删除与应用程序签名相关的所有内容(因此在 Xcode、Keychain Access 和 developer.apple.com 上)解决了这个问题,并按照配置门户主页上的向导(称为启动助手)创建新配置文件。