在 Xcode 4.2 中验证期间应用程序未通过协同设计验证
我在使用分发配置文件时遇到问题。
我已多次尝试使用以下指令创建分发配置文件: http:// /developer.apple.com/ios/manage/distribution/index.action
但是,当我验证程序时,出现错误:
应用程序未能通过协同设计验证。签名无效,或者不是使用 iPhone 分发证书签名。
我已执行以下步骤: 1.我已经在钥匙链访问中创建了证书。 2.我已在 iOS 配置门户中创建了配置配置文件 3.我已经创建了一个应用程序ID 4.我已经在 Xcode 的代码签名部分设置了配置文件
此外,我还检查了钥匙链访问中没有重复或过时的证书。
我翻遍了stackoverflow,没有找到解决方案。
可能是什么问题?
I am experiencing trouble with the distribution provisioning profile.
I have tried for many times to create a distribution provisioning profile using the instruction: http://developer.apple.com/ios/manage/distribution/index.action
But when I verificate the program I get an error:
Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate.
I have done the steps as follows:
1.I have created certificates in key chain access.
2.I have created provisioning profiles in iOS Provisioning Portal
3.I have created an application ID
4.I have set provisioning profiles in the Code Signing section in Xcode
Besides, I have checked that there are no duplicate or out dated certificates in key chain access.
I have looked through stackoverflow and have not found a solution.
What can be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请检查您是否已执行此操作:
1) iOS 配置门户中的一个开发证书
2) 将开发证书下载到您的 Mac 上并将其安装在您的 Mac 上(下载后打开它,这样钥匙串就会打开,您会看到开发证书
3) 检查 iOS 配置门户中是否存在配置开发证书,该证书使用您在步骤 2(上面)中添加到钥匙串中的证书进行签名。
4) 您是否使用了 AppId 通配符,或者添加了字符串?在“配置文件”下的“应用程序 ID”行下,有一个如下所示的字符串:
*********.text
。如果您有类似CD8V98ZN8M.*
的内容(. 之前的第一个字符不同,但点后的星号很重要,那么您可以在每个应用程序中使用此配置文件进行签名。如果有类似的内容这个:CD8V98ZN8M.appname
,那么你在xcode中的Target中设置的Bundlename必须是appname
5)你下载了这个吗?配置文件并通过将配置文件移动到图标上将其安装在 Xcode 中?
6) 进行 Clean 后尝试重建,如果仍然失败,请检查 xcode 中应用程序目标的 Bild 设置下的
代码签名身份
,然后选择您的开发配置文件,然后进行 Clean 并尝试重建。但也要看看这个问题:如何解决上传到 iTunes Connect 时出现“应用程序未通过协同设计验证”?
Please check if you have done this:
1) one Development Certificate in the iOS Provisioning Portal
2) downloaded the Development Certificate onto your Mac and installed it in on your Mac (open it, after download it, so the keychain will open and you see the Development Certificate
3) Check if in the iOS Provisioning Portal exists a Provisioning Development Provile, signed with the Certificate you added in step 2(above) in the Keychain).
4) Have you used a wilcard for the AppId, or added you a String? Under Provisioning Profiles under the row App Id there is a String like this:
**********.text
. If you have something like thisCD8V98ZN8M.*
(first characters bevore the . are different, but the star after the point is important, then you can sign with this Provisioning profile every app. If there is something like this:CD8V98ZN8M.appname
, then your Bundlename set up in your Target in xcode must be exacrlyappname
.5) did you download the Provisioning Profile and installed it in Xcode by moving the provisioning Profile onto the Icon?
6) Try to rebuild after made a Clean, if it still fails check the
Code signing Identity
under Bild Settings in your Application Target in xcode, what and select your Development provisioning Profile and then make a Clean and try to rebuild.But also check out this Question: How to solve "Application failed codesign verification" when uploading to iTunes Connect?
我解决了我自己的问题。 XCode 4.2 的一个旧版本在协同设计验证方面存在错误,因此我刚刚将 XCode 4.2 更新到最新版本,并且我的应用程序成功验证。就是这样!经常检查更新! =)
I solved my own problem. One old version of XCode 4.2 has a bug with codesign verification, so i've just updated XCode 4.2 to newest version and my app succeeded verification. Thats it! Always check for updates! =)