上传二进制 iPhone 应用程序“签名无效"一次又一次 [英] Uploading Binary iPhone App "The signature was invalid" again again and again

查看:10
本文介绍了上传二进制 iPhone 应用程序“签名无效"一次又一次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要疯了!我正在尝试上传我的第一个应用程序的二进制文件,但我总是遇到同样的错误!您上传的二进制文件无效.签名无效,或者未使用 Apple 提交证书签名."

I'm going crazy! I'm trying to upload the binary of my first application but I have always the same error! "The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate."

我做了一切,一切!

我创建了证书请求,将它用于开发人员和分发证书,创建了配置文件(12 次!!!)总是清理我的钥匙串和我的 Xcode 删除旧的证书和配置文件..我重新启动机器,重新启动 Xcode,日志是正确的,但是......我无法上传我的应用程序!!!!检查我的 iPhone 是否已连接(我也尝试将 iPhone 断开连接).我在我的项目设置分发"配置(发布"配置的副本)和我的目标设置中检查了证书.在查找器中显示,压缩应用程序并发送 zip...我尝试使用 Application Loader 和 iTunes 在线连接..但什么都没有!没有什么!!我花了8个小时!再说一次我不能上传我的应用程序!!!我真的要疯了!

I created the request for the certificate, used it for both developer and distribution certificate, created the provisioning profile (12 times!!!) always cleaning my keychain and my Xcode deleting the old certificates and profiles.. I reboot the machine, reboot Xcode, the log is correct, but... I can't upload my app!!!! Checked if my iPhone is connected (i tried with iPhone disconneted too). I checked the certificate in both my project settings "Distribuition" Configuration (duplicate of "Release" configuration) and in my target settings. Reveal in finder, compress the app and sent the zip... I tried with Application Loader and iTunes connect online.. but nothing! NOTHING!! I've spent 8 hours! And again i can't have my app uploaded!!! I'm really going crazy!

有人可以帮我吗?谢谢!

Can anyone help me pleeease? Thx!

推荐答案

似乎有很多原因会导致收到这封神秘且几乎无用的电子邮件.即使在验证使用分销证书后,清洁和重建我的项目,并从命令行使用 codesign 检查(并按照电子邮件中的说明进行操作),没有出现错误——但我会在上传后立即收到无效签名"电子邮件.所有解决方案似乎都是轶事,显然取决于导致问题的秘密错误.上周我一直在努力解决问题,试图为我的应用找出答案——今天终于成功提交了——所以让我分享一下我的故事,看看它是否与你的情况有关.

It seems like there are a LOT of causes for receiving this cryptic and mostly unhelpful email. Even after verifying the use of distribution certificates, cleaning & rebuilding my project, and checking with codesign from the command line (and following instructions from the email), no errors showed up—-but I'd get the "invalid signature" email right after uploading. All the solutions seem anecdotal and obviously depend on what secret error is causing the problem. I've spent the last week pulling my hair out, trying to figure it out for my app—-and finally got it successfully submitted today—so let me share my story and see if it's relevant to your situation.

在我的情况下,我的 Entitlement.plist 设置了不正确的变量以及旧配置文件(来自以前的 Xcode 版本?)的保留似乎有一个复杂的原因隐藏在 project.pbxproj 组件中我的 Xcode 项目文件.

In my case, I seemed to have a complex cause of having my Entitlement.plist set with an incorrect variable along with the holdover of an old provisioning profile (from a previous Xcode version?) buried deep in the project.pbxproj component of my Xcode project file.

我的 Entitlements.plist 中的aps-environment"变量被设置为distribution"而不是production"(我发誓我在开发者文档的某个地方读到它应该是distribution"!)但是修复了仅靠自己还不足以让我的应用程序通过.(我必须提交 100 种不同的应用程序配置组合,尝试不同的变量!)从 这篇文章的有用建议 在另一个论坛上,我挖掘了分布配置文件,发现一些变量的重复条目.重复项有空引号(即没有为变量设置任何内容)或奇怪的变量或似乎导致问题的旧配置文件(不知何故).在我的情况下,清理它并删除带有错误变量的重复行.YMMV.但是仔细检查项目文件(在finder中的Xcode项目文件中显示内容")似乎是诊断的好主意.祝你好运!

The "aps-environment" variable in my Entitlements.plist was set to "distribution" instead of "production" (I swear I read somewhere in the developer docs that it was supposed to be "distribution"!) But fixing that alone wasn't enough to get my app through. (I must have submitted 100 different combinations of app configurations trying different variables!) Starting with the helpful suggestions from this post on another forum, I dug through the distribution profile and found duplicate entries for some variables. The duplicates had empty quotation marks (i.e. nothing set for the variable) or strange variables or old provisioning profiles which seemed to be causing problems (somehow). Cleaning this up and removing the duplicate lines with bad variables worked in my case. YMMV. But carefully examining the project files ("show contents" on the Xcode project file in finder) seems like a good idea for diagnostics. Good luck!

这篇关于上传二进制 iPhone 应用程序“签名无效"一次又一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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