TF签多次上传失败被驳回

img

img


多次上传TF签名应用,个人感觉步骤没有任何问题,用的是PC开发助手软件去上传的,图1有苹果官网的反馈图片,求有经验的给解答一下,万分感谢。求指导

首先在安装方面,上架App Store成功通过的应用,在App Store应用商店就可以直接搜索到自己的APP应用,而通过TF签名的APP应用,则需要在App Store下载一个TestFlight的APP,然后使用苹果手机扫码签名商提供的APP下载码,即可安装下载此款APP,其实总来说也就比App Store多了一个下载TestFlight的步骤,其他差不多没什么两样。要知道TF签名和App Store虽然都是提交给苹果官方审核,但是审核的机制严格程度完全不一样,TF签名会更容易通过

以下答案由GPT-3.5大模型与博主波罗歌共同编写:
一般来说,TF签名应用上传失败可能存在以下原因:

  1. 所上传的ipa包与所提交的证书不匹配。

  2. 所上传的ipa包格式有误。

  3. 所上传的证书未被有效授权。

  4. 所提交的应用信息与itunes connect上的应用信息不一致。

以下是一些常见的解决方法:

  1. 确认证书是否正确:检查证书的名称,ID等信息是否正确,可以重新下载/刷新证书并重新上传。

  2. 确认ipa包的格式是否正确:可以用Xcode重新打包一次,或者使用在线工具进行检测。

  3. 确认证书是否授权:确认证书是否被开发者授权,是否已经过期。

  4. 确认应用信息是否一致:检查应用名称、Bundle ID等信息是否与itunes connect上的应用信息匹配,也可以重新创建一个应用并重新上传。

以下是python实现TF签名应用的代码:

#导入所需库
import os
import subprocess
import time

#设置相关参数
provision_file = "xxx.mobileprovision" #证书文件名
cert_name = "iPhone Distribution: xxx" #证书名
keychain_path = "/Users/xxx/Library/Keychains/login.keychain-db" #keychain路径,可以使用命令security list-keychains查看
ipa_file = "xxx.ipa" #ipa文件名
output_file = "xxx_output.ipa" #输出文件名

#安装证书
subprocess.call(["security", "unlock-keychain", "-p", "xxx", keychain_path])
subprocess.call(["security", "import", provision_file, "-k", keychain_path, "-T", "/usr/bin/codesign"])
subprocess.call(["security", "find-identity", "-p", "codesigning", "-v"])

#签名
sign_command = "codesign -f -s '{}' --resource-rules={}/Payload/{}/ResourceRules.plist {} --entitlements entitlements.plist".format(cert_name,ipa_file,ipa_file,output_file)
subprocess.call(sign_command, shell=True)

#重签名
re_sign_command = "codesign -f -s '{}' --resource-rules={}/Payload/{}/ResourceRules.plist {} --entitlements entitlements.plist".format(cert_name,output_file,output_file,output_file)
subprocess.call(re_sign_command, shell=True)

#重新打包
re_pack_command = "xcrun -sdk iphoneos PackageApplication -v {} -o {}".format(output_file,output_file[:-4])
subprocess.call(re_pack_command, shell=True)

#清理中间文件
os.remove("entitlements.plist")
os.remove(output_file)

print("Done!")

以上代码仅供参考,实际使用中需要根据自身情况作出适当的调整。
如果我的回答解决了您的问题,请采纳!