ios “找不到有效的代码签名身份”错误

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

'No valid code signing identity found' error

ioscertificatedistributionprofilexcode4.3

提问by mrEmpty

I know this is flogging a very dead horse, trust me I've gone through every question on here and tried everything that's been advised. No beans. I'm missing something my brain is not capable of seeing.

我知道这是在鞭打一匹死马,相信我,我已经解决了这里的每个问题,并尝试了所有建议的方法。没有豆子。我错过了我的大脑无法看到的东西。

So, my app is ready for release version 1 (thanks for all the help btw) and I'm going through the pain of uploading it for Apple to reject ;) I started the app on another machine, so I exported my private key and imported it to my new system. I then created a distribution profile and installed that, only to get the message of hate from Xcode. After 8 hours of shouting I decided to revoke my certificate, delete all my profiles and go to bed. This morning I created a new developer certificate on my new system, created a new provision profile, and installed everything. I can run my app on my device, all good (in fact, better than good, some warnings vanished).

所以,我的应用程序已准备好发布版本 1(顺便说一句,感谢所有帮助),我正在经历上传它以供 Apple 拒绝的痛苦;)我在另一台机器上启动了该应用程序,所以我导出了我的私钥和将它导入到我的新系统中。然后我创建了一个分发配置文件并安装了它,只是为了从 Xcode 获得仇恨信息。经过8个小时的大喊大叫,我决定撤销我的证书,删除我所有的个人资料并上床睡觉。今天早上我在我的新系统上创建了一个新的开发人员证书,创建了一个新的配置文件,并安装了所有东西。我可以在我的设备上运行我的应用程序,一切都很好(实际上,总比好的好,一些警告消失了)。

But, here it comes, I still get the 'no valid code signing' error when I create a distribution profile.

但是,它来了,当我创建分发配置文件时,我仍然收到“无有效代码签名”错误。

I've watched several Youtube vids, I do nothing wrong according to them. I read Apple's documentation (which let's be honest is a mess) and I did everything it told me, but it's so vague I probably missed something. And I read through everything I found here, to no avail.

我看过几个 Youtube 视频,根据它们我没有做错。我阅读了 Apple 的文档(老实说这是一团糟)并且我做了它告诉我的所有事情,但是它太模糊了我可能错过了一些东西。我通读了我在这里找到的所有内容,但无济于事。

Is there, somewhere, anywhere (please) a step by step walk through which is up to date? Every one I found was Xcode 3 or the screen caps from the dev centre don't match.

是否有,某处,任何地方(请)一步一步地完成它是最新的?我发现的每一个都是 Xcode 3 或者来自开发中心的屏幕截图不匹配。

I'm going to be heading to the pub if anyone in London wants to join me and shout at Apple for making this such a mess.

如果伦敦有人想和我一起大喊苹果公司把这件事弄得一团糟,我就要去酒吧。

Screen caps if it helps?

屏幕上限是否有帮助?

Keychain Access is happy

钥匙串访问很高兴

XCode is grumpy

XCode 脾气暴躁

采纳答案by borrrden

I find that this Ray tutorialis very well made.

我发现这个 Ray 教程制作得非常好。

回答by mrEmpty

OK, I'm leaving this here for other people who stumble across this nightmare and, like me, are a bit dumb/tired/lack caffeine.

好吧,我把这个留给其他那些偶然发现这个噩梦的人,就像我一样,有点愚蠢/疲倦/缺乏咖啡因。

After revoking and re-creating my developer certificate, I had not revoked and re-created my distributor certificate. I thought I had, the dates matched (today) but in fact I hadn't. I re-created that, and all was good. This may have been a bug, or it may have been me, or a bit of both. But re-creating the distributor cert AFTER re-creating the developer cert fixed it.

撤销并重新创建我的开发人员证书后,我没有撤销并重新创建我的经销商证书。我以为我有,日期匹配(今天)但实际上我没有。我重新创建了那个,一切都很好。这可能是一个错误,或者可能是我,或者两者兼而有之。但是在重新创建开发者证书之后重新创建分发者证书修复了它。

回答by Darkin

If you are getting this error after upgrading to iOS8 / xcode6, you will need to manually sign in with your appleID to the member center and downloaded the certificates directly. Then add them to your keychain and you are off to the races again.

如果升级到iOS8/xcode6后出现此错误,则需要使用appleID手动登录会员中心,直接下载证书。然后将它们添加到您的钥匙串中,您就可以再次参加比赛了。