"您上传的二进制文件无效.该文件不是有效的 zip 文件"将应用程序上传到 iTunes Connect 时出现错误消息 [英] "The binary you uploaded was invalid. the file was not a valid zip file" Error message uploading app to iTunes Connect

查看:19
本文介绍了"您上传的二进制文件无效.该文件不是有效的 zip 文件"将应用程序上传到 iTunes Connect 时出现错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 iPhone 应用二进制文件上传到 iTunesConnect 并不断收到以下错误消息您上传的二进制文件无效.该文件不是有效的 zip 文件".我最近有一个应用程序上传正常,但这个应用程序有问题.所以过了一会儿,我仔细地完成了以下步骤,试图确保一切正常.任何帮助表示赞赏.

步骤:

  1. 重命名项目(项目->重命名...输入名称到将项目重命名为:) 以发布名称确保名称中没有空格.

  2. 清理项目

  3. 确保构建设置中的引用反映新应用名称
  4. 创建新的应用 ID匹配 iPhone 中的项目名称供应门户
  5. 破旧的开发商和分销商配置文件在供应门户,在 XCode 和iPhone.
  6. 创造新发展使用新应用程序配置配置文件名字.
  7. 安装开发将配置文件配置到 XCode 8)为 iPhone OS 3.1.3 构建(发布)(我的手机将升级到的最高,我假设当前已发布版本)
  8. <块引用>

    在实际情况下构建、安装和运行iPhone:对我来说,这意味着 App 和开发者 ID 没问题.

  9. 创建分销商配置文件使用现有的分发服务器 ID.

  10. 将分发者 ID 安装到 XCode 中
  11. 干净
  12. 检查代码签名身份"和任何 iPhone 操作系统构建设置中的设备"行是设置为经销商 ID
  13. 为适用于 OS 3.1.3 的版本
  14. 检查构建结果以确保代码已签名与经销商简介
  15. 揭示.app 文件并压缩(alt 单击 >压缩appName.app")
  16. 上传到 iTunes 连接

    <块引用><块引用>

    给出您上传的二进制文件无效.该文件不是有效的 zip 文件"

解决方案

这是我尝试的一些额外步骤:在清理(或全部清理)后退出 Xcode,然后删除 Build 文件夹.我不构建和运行",只是构建".AppName.app 通常位于App Store"文件夹中(或任何您为 App Store 发布的构建配置命名的名称.我只右键单击该 AppName.app 文件并在 Finder 中选择压缩".

您也可以尝试使用 Safari 上传.

您的问题似乎不在于配置文件,而在于文件被压缩(或上传)的方式.尝试重复该部分,更改细节.

I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything was ok. Any help is appreciated.

The steps:

  1. renamed the project (Project->Rename... enter name into Rename project to:) to release name making sure the name has no spaces.

  2. Cleaned project

  3. Make sure references in build setting reflect new app name
  4. Create new app ID matching project name in iPhone Provisioning Portal
  5. Destroyed old developer and distributer provisioning profiles in Provisioning Portal, in XCode and on iPhone.
  6. Create new development provisioning profile using new app name.
  7. Install development provisioning profile into XCode 8) Build (Release) for iPhone OS 3.1.3 (highest my phone will upgrade to, I'm assuming current released version)
  8. Builds, Installs and Runs on actual iPhone: To me this implys App and developer ID's are OK.

  9. Create a distributor provisioning profile using existing Distributer ID.

  10. Install distributer ID into XCode
  11. Clean
  12. Checked that "Code Signing Identity" and "Any iPhone OS Device" lines in Build settings are set to Distributor ID
  13. Build for release for OS 3.1.3
  14. Check Build results to make sure code is signed with Distributor Profile
  15. Reveal .app file and compress (alt click > Compress "appName.app")
  16. Upload to iTunes connect

    Gives "The binary you uploaded was invalid. The file was not a valid zip file"

解决方案

Here's some additional steps I try: Quit Xcode after clean (or clean all) then delete the Build folder. I don't "Build and Go", just "Build". The AppName.app is generally in the "App Store" folder (or whatever you name your build configuration for App Store release. I right click only that AppName.app file and choose "Compress" in the Finder.

You could also try uploading it with Safari.

It seems like your problem isn't with the provisioning profiles, but with the way the file is being zipped (or maybe uploaded). Try repeating that part, changing details.

这篇关于&quot;您上传的二进制文件无效.该文件不是有效的 zip 文件"将应用程序上传到 iTunes Connect 时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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