我可以使用开发者证书进行存档,然后在提交时使用分发证书重新签名吗? [英] Can I archive with a Developer certificate, then re-sign it during submission with a Distribution certificate?

查看:126
本文介绍了我可以使用开发者证书进行存档,然后在提交时使用分发证书重新签名吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,Xcode可以在App Store提交过程中从存档重新签名.ipa,这使您可以使用Developer Provisioning Profile创建存档,然后在以后使用Distribution配置文件对其进行签名。这是一篇说明我在说什么的帖子: http://oleb.net/blog/2011/06/code-signing-changes-in-xcode-4/

From what I understand, Xcode can re-sign an .ipa from an archive during the App store submission process, making it possible for you to create an archive with a Developer Provisioning Profile, and then sign it with a Distribution profile later. Here is a post that explains what I am talking about: http://oleb.net/blog/2011/06/code-signing-changes-in-xcode-4/

不幸的是,我可以不能正常工作。当我使用开发人员配置文件创建存档,然后尝试使用分发配置文件提交存档时,出现以下错误:应用程序代码签名验证失败。签名无效,包含无效的权利或未使用iPhone分发证书签名

Unfortunately, I can't get it to work. When I create an archive using a Developer profile, then try to submit it with a Distribution profile, I get the following error: "Application failed codesign verification. The signature was invalid, contains disallowed entitlements or it was not signed with an iPhone Distribution Certificate"

该应用程序不使用任何权利,也没有权利文件。该错误是正确的,因为它没有使用iPhone分发证书签名,因为它最初是使用开发者证书签名的,而我正尝试使用分发证书将其签名。我认为这是一件有效的事情...

The application does not use any entitlements and has no entitlements file. The error is correct that "it was not signed with an iPhone Distribution Certificate", because it was originally signed with a developer certificate, and I am attempting to resign it with a Distribution certificate. I thought this was a valid thing to do...

推荐答案

这里的问题是,当您最初存档时,它会设置与开发人员配置文件兼容的权利,例如 get-task-allow 设置为 true ,但是您正在使用 distribution 配置文件重新签名,该配置文件要求 get-task-allow 错误。不幸的是,它不能去更改权利,所以您遇到了这个问题。

The problem here is that when you originally archived it would have set the entitlements to be compatible with a developer profile, such as the get-task-allow set to true but you're re-signing using a distribution profile which requires get-task-allow to be false. Unfortunately it can't go and change the entitlements and so you get this problem.

我不确定苹果为什么不能做到这一点,以便它可以运行并更改权利并在那里做所有的魔术。毕竟,代码,资源等都是相同的。

I'm not entirely sure why Apple can't make it so that it can go and change the entitlements and do all the magic there. The code, resources, etc will all be the same after all.

这篇关于我可以使用开发者证书进行存档,然后在提交时使用分发证书重新签名吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆