ios “未发现包含任何钥匙串签名证书的未过期配置文件”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10091590/
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
"No unexpired provisioning profiles found that contain any of the keychain's signing certificates" Horror
提问by Greg Price
I have seen a few other questions that addressed this topic but none like mine. Yesterday I innocently added a device to the list of devices.
我已经看到其他一些问题涉及这个主题,但没有一个像我的。昨天我无意中在设备列表中添加了一个设备。
Question:
题:
I am under the impression that once you add a device, it will now be linked to the provisioning profile. However, I believe it was not linked to one of my distribution profiles. So I went into edit the profile, clicked the checkmark next to the device, and hit submit. This is where the problems began.
我的印象是,一旦您添加了设备,它现在将链接到配置文件。但是,我相信它与我的一个分发配置文件没有关联。所以我开始编辑配置文件,点击设备旁边的复选标记,然后点击提交。这就是问题开始的地方。
I notice two things: I recently renewed my certificate/provisioning profiles about a week ago. Now, it thinks I renewed my provisioning profile yesterday ( or at least it says so in the organiser ).
我注意到两件事:大约一周前,我最近更新了我的证书/配置文件。现在,它认为我昨天更新了我的配置文件(或者至少它在组织者中是这样说的)。
Also, when I try to build any project I get the awful "No unexpired provisioning profiles found that contain any of the keychain's signing certificates". In the build settings my signing identity shows up under Identities without provisioning profiles. I have read horror stories of people having to tear everything down and rebuild and I hope I don't have to do that here..
此外,当我尝试构建任何项目时,我会收到糟糕的“未找到包含任何钥匙串签名证书的未过期配置文件”。在构建设置中,我的签名身份显示在没有配置配置文件的身份下。我读过人们不得不拆除一切并重建的恐怖故事,我希望我不必在这里这样做..
Related question:
Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates
回答by j7nn7k
iOS distribution is such a pain in the ass! This worked for me (follow the steps in this order):
iOS 发行版真是太麻烦了!这对我有用(按照此顺序执行步骤):
1) in the xcode organizer:
1)在xcode组织者中:
- delete all provisioning profiles
- 删除所有配置文件
2) in the mac os x keychain:
2) 在 mac os x 钥匙串中:
- delete all iOS dev certificates
- 删除所有 iOS 开发证书
3) go to developer.apple.com
3) 去 developer.apple.com
- log in to the member center
- revoke all certificates (edit:some redditors pointed out that this isn't a good idea if you're working in a bigger team. If that's the case try just deleting expired ones.)
- 登录会员中心
- 撤销所有证书(编辑:一些 redditor 指出,如果您在更大的团队中工作,这不是一个好主意。如果是这种情况,请尝试删除过期的证书。)
4) go back to the xcode organizer:
4)回到xcode组织者:
- click refresh (bottom right) under the provisioning profiles tab and login
- List item
- 单击配置文件选项卡下的刷新(右下角)并登录
- 项目清单
on the popups click the positive button
在弹出窗口中单击肯定按钮
5) in your xcode project go to the "build settings" tab
5) 在您的 xcode 项目中,转到“构建设置”选项卡
- under code signing pick the dev. and distr. identities
- if they are not there or not valid go to developer.apple.com and navigate to "provisioning" if they are invalid just click modify and save them again
- 在代码签名下选择开发人员。和发行版。身份
- 如果它们不存在或无效,请转到 developer.apple.com 并导航到“配置”,如果它们无效,只需单击修改并再次保存它们
6) go back to the xcode organizer:
6)回到xcode组织者:
- hit refresh again (bottom right)
- 再次点击刷新(右下角)
回答by Petko
Today I've installed Xcode 4.3.2
, and immediately had the same problem! First trying to archive distribution, and after that In a clean new project, trying to run on a device.
I fixed both problems.
今天我已经安装了Xcode 4.3.2
,并立即遇到了同样的问题!首先尝试存档分发,然后在一个干净的新项目中,尝试在设备上运行。我解决了这两个问题。
1.For successful distribution I've downloaded and installed my distribution certificate from iOS provisioning portal, after that in Xcode I've setup Code Signing Identity
correctly. This solved my problem with archiving.
1.为了成功分发,我已经从 iOS 配置门户下载并安装了我的分发证书,之后在 Xcode 中我已经Code Signing Identity
正确设置。这解决了我的存档问题。
2.I had the same problem creating new project and trying to run on device. Again in provisioning portal in certificates
I've deleted my development cert. Also I deleted all development provision profiles. Also deleted them from organiser. Then I added the device again.
Hope this helps!
2.我在创建新项目并尝试在设备上运行时遇到了同样的问题。再次在配置门户中,certificates
我删除了我的开发证书。我还删除了所有开发配置文件。也从组织者中删除了它们。然后我再次添加了设备。希望这可以帮助!
回答by Thibaut
For me just hit the "Refresh Button" at the bottom right was the answer !
对我来说,只要点击右下角的“刷新按钮”就是答案!
Hope I can help someone.
希望我能帮助某人。
回答by iforce2d
I got this error when I the bundle identifier for my app did not match the provisioning profile I was trying to use with it.
当我的应用程序的包标识符与我尝试使用的配置文件不匹配时,我收到此错误。
回答by Krys Neurofluid Wallbank
I came across this today. It turns out that after I cleaned up my devices list (removed a few I'm no longer doing development for) it made some of my development certificates invalid. I deleted those from the provisioning profiles and regenerated them.
我今天遇到了这个。事实证明,在我清理了我的设备列表(删除了一些我不再为其进行开发)之后,它使我的一些开发证书无效。我从配置文件中删除了它们并重新生成了它们。
回答by Ibrahim Yildirim
I have Xcode 5.1 and i fixed the issue like this
我有 Xcode 5.1,我解决了这样的问题
Xcode -> Preferences -> Accounts -> View details -> Refresh button (Bottom Left)
Xcode -> Preferences -> Accounts -> View details -> Refresh 按钮(左下角)
After it was refreshed i clicked done, and the error was gone :)
刷新后我点击完成,错误消失了:)