简体   繁体   English

iPhone应用程序代码签名错误-“ ...签名无效...”

[英]iPhone app code-signing error - “…the signature was invalid…”

I am trying to upload my first iOS app to iTunes Connect, but I am unable to do this because every time I try to upload it, I receive the following error from Application Loader: 我正在尝试将我的第一个iOS应用程序上载到iTunes Connect,但我无法执行此操作,因为每次尝试上载它时,都会从Application Loader收到以下错误消息:

The binary you uploaded was invalid. 您上传的二进制文件无效。 The signature was invalid, or it was not signed with an Apple submission certificate 签名无效,或者未使用Apple提交证书签名

I have followed the instructions on the Apple website to the best of my ability. 我已尽我所能按照Apple网站上的指示进行操作。 I have noticed that the .mobileprovision file that should be in my built .app file is missing - does anyone know what would cause this particular part of the problem to happen? 我注意到应该在我的内置.app文件中的.mobileprovision文件丢失了 -有人知道会导致问题的这一特定部分发生的原因吗? I suspect it could be the root cause. 我怀疑这可能是根本原因。

Moreover, does anyone have any other suggestions as to how I might correct this issue? 此外,有人对我如何更正此问题有其他建议吗?

on the agent account in developer.apple.com 在developer.apple.com上的代理帐户上

You must create a distribution certificate 您必须创建发行证书

You must also create a Distribution Provisioning Profile. 您还必须创建分发配置概要文件。

Download both of these and drag them onto xcode. 下载这两个并将它们拖到xcode上。

In the target info for your project you need to go to the code signing section and make sure you have selected your distribution profile. 在项目的目标信息中,您需要转到代码签名部分,并确保已选择分发配置文件。

Another thing you may need to do is create an entitlements file, declare this under 'code signing entitlements' as described on the apple page here 您可能需要做的另一件事是创建权利文件,如此处苹果页面所述在“代码签名权利”下声明此文件

http://developer.apple.com/iphone/manage/distribution/index.action http://developer.apple.com/iphone/manage/distribution/index.action

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM