gpt4 book ai didi

ios - 应用提交 : Invalid Binary - Invalid Signature

转载 作者:可可西里 更新时间:2023-11-01 17:07:40 29 4
gpt4 key购买 nike

我正在尝试向 iOS 应用商店提交更新。我要从 Buzztouch 应用程序转到 Sprite Kit 应用程序。我能够存档 Xcode 项目并提交它。该应用程序的状态为“上传已收到”,但大约一分钟后,它变为“无效的二进制文件”,我收到一封电子邮件说:

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 these issues have been corrected, go to the Version Details page and click "Ready to Upload Binary." Continue through the submission process until the app status is "Waiting for Upload." You can then deliver the corrected binary.

我已经清理了构建目录,重建了我的发布目标,并多次制作了新的配置文件。所有代码签名身份都设置为 iOS 开发人员。代码签名和供应配置文件一直让我有点困惑,我可能会犯一些明显的错误。

我已尝试提交 50 多次!我发现这非常令人沮丧,因为我已经给 Apple 发了电子邮件,他们回复了我,但这只是一个带有代码签名信息的开发中心链接。我也花了很多时间在互联网上搜索以找到解决这个问题的方法,但没有一个好的解决方案可以真正解决这个问题。

我唯一能想到的是因为我正在从 Buzztouch 改变应用程序或 Sprite Kit。

这是我的代码签名的截图:

screenshot of code signing

最佳答案

在 Apple 开发人员支持中,Invalid Signature 二进制拒绝原因还有两个常见原因,

  1. 包含特殊字符(即非数字和非字母)的可执行文件。要解决此问题,请将 Xcode 目标的产品名称build设置从“${TARGET_NAME}”更改为仅包含字母/数字字符的字符串。让我知道这是否是问题(和有问题的字符)的原因,因为我提交了错误报告来修复我在这里找到的每个实例。

  2. Apple 双文件(“双文件”)是将未压缩的 Xcode 项目复制到/从非 HFS+ 格式的硬盘驱动器生成的。要检查这是否导致您被拒绝:

一个。在此处运行应用程序诊断:How do I check if my application's signature has been corrupted?

B.然后检查命令行输出:List of Signature Verification Failure Root Causes .双文件被诊断为如下消息:

resource missing: my.app/._.*

C.来自文档:

The file prefixed with "._" is considered an AppleDouble file and it can result from copying the uncompressed Xcode project folder onto a non-HFS+ formatted disk. The AppleDouble files must be removed using the 'dot_clean' command. The Xcode project folder is the argument to dot_clean as illustrated below. Note: You can drag your Xcode project folder from Finder into the Terminal window to automatically fill its path into the command.

        dot_clean /path/to/My_Xcode_Project

(如果终端找不到 dot_clean 实用程序,请通过 Xcode > 首选项 > 下载下载可选的命令行工具)

D.在您的 Xcode 项目上运行 dot_clean 后,创建一个新的应用存档(通过 Xcode > Product > Archive),重新尝试提交。

为防止双重文件,请务必在将 Xcode 项目文件夹传输到非 HFS+ 格式的硬盘驱动器或从非 HFS+ 格式的硬盘驱动器传输之前使用 Finder 将其压缩为 .zip。

关于ios - 应用提交 : Invalid Binary - Invalid Signature,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21420041/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com