无效签名错误!
我正在尝试更新我的应用程序,但上传二进制文件后,Itunes connect 向我发送了以下电子邮件:
尊敬的开发者,感谢您的 最近提交的“我的应用程序”的二进制文件 到应用商店。不幸的是我们 发现您的二进制文件存在问题 您需要按顺序更正 以便您的申请继续进行 审查阶段。具体问题是 概述如下:无效签名 - 确保您已签署 具有分布的应用程序 证书,而不是临时证书 或开发证书。核实 中的代码签名设置 Xcode 在目标级别是正确的 (这会覆盖任何值 项目级别)。另外,使 确保您上传的捆绑包是 使用 Xcode 中的 Release 目标构建, 不是模拟器目标。如果你是 确定您的代码签名设置是 正确,在 Xcode 中选择“Clean All”, 删除“build”目录 Finder,并重建您的版本 目标。一旦你纠正了 问题,请返回 应用程序的版本详细信息页面 iTunes Connect 管理您的 应用程序模块并单击 准备提交二进制按钮。这 将带您完成二进制文件 提交流程并返回您的 应用程序版本状态为等待 用于上传。然后您可以使用 应用程序加载器上传您的新应用程序 二进制。如果发现其他问题 通过您的提交,您将成为 联系过。谢谢,iTunes 连接团队
我确信我的二进制签名应用程序带有分发证书,而不是临时的!
你有什么建议来解决这个问题!我从来没有遇到过这个问题!!!!
我再次下载应用程序分发 CER,但没有任何变化!我在应用商店里有 6 个应用,但从未遇到过这个问题
I am trying to update my application , but after uploading the binary , Itunes connect sends me this email :
Dear Developer, Thank you for your
recent binary submission for "MY APP"
to the App Store. Unfortunately we
discovered an issue with your binary
that you will need to correct in order
for your application to proceed to the
review stage. The specific issue is
outlined below: Invalid Signature -
Make sure you have signed your
application with a distribution
certificate, not an ad hoc certificate
or a development certificate. Verify
that the code signing settings in
Xcode are correct at the target level
(which override any values at the
project level). Additionally, make
sure the bundle you are uploading was
built using a Release target in Xcode,
not a Simulator target. If you are
certain your code signing settings are
correct, choose "Clean All" in Xcode,
delete the "build" directory in the
Finder, and rebuild your release
target. Once you have corrected the
issue, please return to the
application's version details page in
the iTunes Connect Manage Your
Applications module and click on the
Ready to Submit Binary button. This
will take you through the binary
submission flow and return your
application version status to Waiting
for Upload. You can then use
Application Loader to upload your new
binary. If any other issues are found
with your submission you will be
contacted. Thanks, The iTunes
Connect Team
I am sure that my binary signed application with a distribution certificate NOT AD HOC !!!
what is your suggestion to solve this problem ! I NEVER HAD THIS PROBLEM !!!!!
I download the app distribution CER again but nothing change ! I have 6 apps on app store and never faced with this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
请注意,这个 QA 非常古老。苹果在很大程度上改善了这个问题。享受。
100 次中有 99 次,问题在于:
选择“TARGETS”,而不是“PROJECT”
单击 XCode6 主窗口左上角的项目名称。 (即,就在可能写着“类”的地方。)
查看打开的大区域。仔细观察左侧的白柱。
选择“TARGETS”...而不是“PROJECT”
然后,将您的证书正确设置为第 3 方 Mac 开发人员证书。
Note that this QA is incredibly old. Apple have largely ameliorated this problem. Enjoy.
99 times out of 100, here is the problem:
Select "TARGETS", not "PROJECT"
Click on the name of your project at the Top Left of the main XCode6 window. (ie, just above where it probably says "Classes".)
Look at the large area which opens. Carefully look at the WHITE COLUMN ONTHE LEFT.
Choose "TARGETS" ... rather than "PROJECT"
Then, correctly set your certificate to the 3rd party Mac Developer cert.
我从苹果那里看到了同样的消息,并且在设置代码签名身份时选择“目标”而不是“项目”并没有解决我的问题。
事实证明,作为将应用程序提交到商店的最后一步(通过 XCode4 的管理器面板 - 存档选项卡),我看到了一个对话框表,其中显示了将要提交的分发证书,该证书默认为不同的证书我的钥匙串中有分发证书 - 而不是我签署应用程序所用的有效证书!
一旦我在应用程序提交的最后一步中手动选择了正确的分发证书,一切就顺利进行了。 (我还打开了我的钥匙串访问应用程序并删除了有问题的分发配置文件,我不再使用它了)。
I had the same message appear from Apple, and selecting "targets" not "projects" when setting code signing identity did NOT resolve my issue.
Turns out, as the last step of submitting the app to the store (via XCode4's Organizer panel - Archives tab), I was presented with a dialog sheet that showed the distribution certificate it was going to be submitted with, which was DEFAULTING TO A DIFFERENT DISTRIBUTION CERTIFICATE I had in my keychain - and NOT the valid certificate that I'd signed the app with!
Once I manually selected the correct distribution certificate in this last step of app submission, it went through fine. (I also opened up my Keychain Access app and deleted the offending distribution profile, that I didn't have any use for anymore).
我想提供的一个要点是,存档验证(或通过应用程序加载器提交)应该在将应用程序发送到 iTunes Connect 之前识别签名问题。这是该问题与开发人员工具错误相关的第一个迹象。
多个开发人员目睹了这个问题,强化了这种预感。根据我的经验,由于旧版本 Xcode 中的错误,在客户端验证期间未捕获“无效签名”诊断。开发人员只需将 OS X 更新到 10.7.x,加上 Xcode 4.2.1,无需更改项目或代码,应用程序即可毫无问题地引入 iTunes Connect。
对于遇到此问题的其他人请记住这一点...它在使用 Xcode 4.0.2、3.2.6 或更低版本的 Snow Leopard 上尤其常见。
Apple 的新出版物触及了这一点,请参阅 iTunes Connect Store - 二进制拒绝电子邮件 - 签名无效。
A main point I'd like to offer is that Archive Validation (or submission thru App Loader) is supposed to identify the signature problem before sending the application to iTunes Connect. This is a first indication that the problem is related to a developer tools error.
Having witnessed this problem with multiple developers strengthens that hunch. In my experience the "Invalid Signature" diagnosis is not caught during client side validation as a result of a bug in older versions of Xcode. Devs simply update their OS X to 10.7.x, plus Xcode 4.2.1 and with no change to the project or code the app is ingested into iTunes Connect without issue.
Keep it in mind for others experiencing this problem...it's especially common on Snow Leopard with Xcode 4.0.2, 3.2.6 or less.
Apple's new publication touches on this point, see iTunes Connect Store - Binary Rejection emails - Invalid Signature.
我遇到了完全相同的问题,检查了所有内容,但找不到任何问题。
问题最终是因为我的项目存储在 FAT32 USB 记忆棒上!将其复制到我的 Mac 上,之后一切正常。
希望这有帮助!
I had exactly the same problem, checked everything but couldn't find any issues.
Problem ended up being because my project was stored on a FAT32 USB stick! Copied it to my Mac and everything worked perfectly after that.
Hope this helps!
我遇到了同样的问题,花了很多晚上才解决!
对于我的应用程序,问题是可执行文件名称中的问号。在苹果开发人员文档中指出,您不能在可执行文件名称中使用特殊字符,但不允许使用哪些字符。
我在构建设置中更改了可执行文件名称并且上传有效!
I got the same problem and spent many evenings solving it!
For my app the problem was a question mark in the executable name. In the apple developer docs is noted you can't use special character in executable name but not which ones are allowed.
I changed the executable name in build settings and the upload works!
我已经和这个问题斗争了将近一周了!对我来说,事实证明,苹果发出的错误电子邮件是完全错误和误导的。 (我知道我的所有证书和代码签名设置实际上都是正确的。)事实证明,我的应用程序被拒绝,因为名称中有感叹号 (!)。显然,产品名称仅允许使用字母数字字符(AZ、0-9)和破折号。 (不允许使用像 ?#$% 这样的字符。)
修复:
1.) 单击 Xcode 左侧面板上的蓝色项目图标。
2.) 单击构建设置选项卡。
3.) 从菜单中选择当前目标。 (它就在蓝色项目图标旁边。
4.)向下滚动,直到看到“Packaging”类别。
5.) 找到“产品名称”的位置,并将其更改为不包含任何特殊字符的名称。
我希望这会有所帮助!抱歉,我不得不修改我的公司信息!
I have been battling this issue for almost a week! For me, it turned out that the Error email from Apple was completely wrong and misleading. (I knew that all of my certificates and code signing settings were in fact correct.) It turned out, that my app was getting rejected because there was an exclamation point (!) in the name. Apparently, only alphanumeric characters (A-Z, 0-9) and dashes are allowed for the product name. (Characters like ?#$% are not allowed.)
The Fix:
1.) Click on the blue project icon on the left panel in Xcode.
2.) Click on the build settings tab.
3.) Select the current target from the menu. (It's right next to the blue project icon.
4.) Scroll down until you see the "Packaging" Category.
5.) Find where it says "Product Name" and change it to a name that does not contain any special characters.
I hope this helps! Sorry I had to red-out my company info!