没有来自配置文件“...”的身份(在我升级到 xcode 5 后发生)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21675371/
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 identities from profile "..." (happened after I upgraded to xcode 5)
提问by Qiulang
I hit this weird problem that a profile used to work and does not expire now keeps telling me that "No identities from profile ..." and xcode prompted me that it can fix the issue by downloading a new profile. But that did NOT fix the issue and actually I found xcode did not download profile either.
我遇到了这个奇怪的问题,配置文件曾经可以工作并且不会过期,现在一直告诉我“没有来自配置文件的身份......”并且 xcode 提示我它可以通过下载新的配置文件来解决这个问题。但这并没有解决问题,实际上我发现 xcode 也没有下载配置文件。
I tried to download a certificate from that profile from developer.apple.com and re-installed it. But xcode still complained "no identities".
我尝试从 developer.apple.com 从该配置文件下载证书并重新安装。但是 xcode 仍然抱怨“没有身份”。
I let xcode refresh profile from account tab, did not work either. I even deleted that profile from developer.apple.com and let xcode refresh profile, still no avail.
我让 xcode 从帐户选项卡刷新配置文件,也不起作用。我什至从 developer.apple.com 删除了该配置文件并让 xcode 刷新配置文件,仍然无济于事。
I checked keychain and verified that the certificate was in "My certificates" (I did not doubt that actually b/c it used to work so it should be there, right?)
我检查了钥匙串并确认证书在“我的证书”中(我不怀疑它实际上是 b/c,所以它应该在那里,对吗?)
So basically I run out of thought, any suggestions ?
所以基本上我没有想法了,有什么建议吗?
BTW, I remembered this happened when I upgraded to xcode 5 and add a new device for development (Not necessarily the reason of course)
顺便说一句,我记得当我升级到 xcode 5 并添加一个新设备进行开发时发生了这种情况(当然不一定是原因)
回答by Maria Camila
i tried everything!! this was the only thing that worked for me: Simply create a new production certificate AND create a new provisioning profile with the same bundle ID. (Yes, this will work if you are updating an app that is already live). Download the cert and prov. profile and run both (double click). Now repeat step 6 and archive. This should work.
我什么都试过了!!这是唯一对我有用的方法:只需创建一个新的生产证书并创建一个具有相同捆绑 ID 的新配置文件。(是的,如果您正在更新已经上线的应用程序,这将起作用)。下载证书和证明。profile 并运行两者(双击)。现在重复步骤 6 并存档。这应该有效。
回答by Ashutosh
Please check in keychain that is there a key prepared for the certificate which you are using for the application.
请检查钥匙串中是否有为您用于应用程序的证书准备的密钥。
回答by sancho
You have to go in Xcode --> Preferences --> Select your App ID from the left window --> Click on "View details" --> Finally click on the arrow to update your certificates.
您必须进入 Xcode --> 首选项 --> 从左侧窗口中选择您的 App ID --> 单击“查看详细信息”--> 最后单击箭头以更新您的证书。
After the procedure, go in Build Settings and select your provisioning profile. Now, you can see your identities.
在该过程之后,进入构建设置并选择您的配置文件。现在,您可以看到您的身份。
Hope this help.
希望这有帮助。
回答by Eino Gourdin
I had the same problem, even though I had the right certificate, keys, and provisioning profile installed. The problem was that I hadn't added the account in XCode. I had never done it, but it seems now it's mandatory.
我遇到了同样的问题,即使我安装了正确的证书、密钥和配置文件。问题是我没有在 XCode 中添加帐户。我从来没有这样做过,但现在看来它是强制性的。
So in XCode Preferences, Accounts tab, if your Apple ID is not present, make sure you add it. For me, it resolved the problem immediately.
因此,在 XCode 首选项的帐户选项卡中,如果您的 Apple ID 不存在,请确保添加它。对我来说,它立即解决了问题。