正在上传二进制iPhone应用程序“签名无效”又一次又一次

编程入门 行业动态 更新时间:2024-10-10 16:23:20
本文介绍了正在上传二进制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."

我做了一切,一切都好! !

I did everything, EVERYTHING!!

我创建了证书请求,用于开发人员和分发证书,创建配置文件(12次!!!)总是清理我的钥匙串和我的Xcode删除旧证书和配置文件.. 我重启机器,重新启动Xcode,日志是正确的,但是......我无法上传我的应用程序!!!! 检查我的iPhone是否已连接(我尝试将iPhone断开连接)。 我在项目设置Distribution配置(Release配置的副本)和我的目标设置中检查了证书。 在发现者中显示,压缩应用程序并发送拉链... 我尝试使用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!

任何人都可以帮助我吗? Thx!

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版本?)埋藏深入我的Xcode项目文件的project.pbxproj组件。

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 (我发誓我在开发人员文档的某个地方读到它应该是发行版!)但仅仅修复它并不足以让我的应用程序通过。 (我必须提交尝试不同变量的100种不同的应用配置组合!)从开始这个帖子的有用建议在另一个论坛上,我挖掘了分发配置文件,发现了一些变量的重复条目。重复项有空引号(即没有为变量设置)或奇怪的变量或旧的配置文件,这似乎导致问题(某种程度上)。在我的情况下,清理它并删除带有错误变量的重复行。因人而异。但仔细检查项目文件(在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应用程序“签名无效”又一次又一次

本文发布于:2023-11-27 23:57:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640129.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   上传   iPhone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!