ios Xcode Organizer:未找到有效的签名身份

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

Xcode Organizer: Valid signing identity not found

iphoneiosxcodecode-signingcode-signing-certificate

提问by Alexander Farber

I have already one app published in App Store, but I have developed it using Adobe AIR on a Windows PC.

我已经在 App Store 中发布了一个应用程序,但我是在 Windows PC 上使用 Adob​​e AIR 开发的。

Now I would like to learn native programming with iOS 7, have purchased an O'Reilly book, MBA with OSX 10.8.5, Xcode 5.0 and iPhone 5c.

现在我想用 iOS 7 学习本地编程,已经购买了一本 O'Reilly 的书,MBA 与 OSX 10.8.5、Xcode 5.0 和 iPhone 5c。

I guess that to try example apps on my device, I need to create a wildcard App ID and a development profile and install the latter to my iPhone.

我想要在我的设备上尝试示例应用程序,我需要创建一个通配符应用程序 ID 和一个开发配置文件,并将后者安装到我的 iPhone 上。

I think this has worked well - I can see a profile at the bottom of Settings -> General -> Profiles:

我认为这很有效 - 我可以在“设置”->“常规”->“配置文件”底部看到一个配置文件:

enter image description hereBut the Xcode Organizer shows a warning triangle and the warning Valid signing identity not found:

在此处输入图片说明但是 Xcode Organizer 显示了一个警告三角形和警告Valid signing identity not found

enter image description here

在此处输入图片说明

What am I doing wrong? I've searched SO and verified that my Certificates use System Defaults...

我究竟做错了什么?我搜索过 SO 并验证我的证书使用系统默认值...

enter image description here

在此处输入图片说明

UPDATE: yes, I've added the certificate to Keychain Access:

更新:是的,我已将证书添加到 Keychain Access:

enter image description here

在此处输入图片说明

回答by Petro Korienev

First, delete certificate without private key from keychain - it is useless and may generate errors in future.
Open your keychain access and generate certificate signing request (In top menu go for Keychain access -> certificate assistant -> request a certificate from signing authority). You should see this window
enter image description here

首先,从钥匙串中删除没有私钥的证书 - 它没有用,将来可能会产生错误。
打开您的钥匙串访问并生成证书签名请求(在顶部菜单中转到钥匙串访问 -> 证书助手 -> 从签名机构请求证书)。你应该看到这个窗口
在此处输入图片说明

Select saved to disk, and enter your email address. CA email address leave blank.
Specify location of generated certificateSigningRequest file wherever you want. Then go to Apple developer member centre and create development certificate. Proceed usual procedure, select iOS app development, specify your created csr file, generate, download, add to keychain. Profit=)

选择保存到磁盘,然后输入您的电子邮件地址。CA 电子邮件地址留空。
在任何地方指定生成的 certificateSigningRequest 文件的位置。然后去苹果开发者会员中心创建开发证书。继续通常的程序,选择 iOS 应用程序开发,指定您创建的 csr 文件,生成、下载、添加到钥匙串。利润=)

回答by Renaud Montes

I exported the .p12 file certificate from the old/original mac through KeyChain app, then import it in the new mac again with the KeyChain app, then on apple dev site edit the provisioning profile, save it, download it and re-register it in xcode

我通过 KeyChain 应用程序从旧/原始 mac 导出了 .p12 文件证书,然后使用 KeyChain 应用程序再次将其导入到新 mac 中,然后在苹果开发站点上编辑配置文件,保存,下载并重新注册在 xcode 中