“此捆绑包无效 - 文件扩展名必须为 .zip"提交到 iTunes 时出错 [英] "This bundle is invalid - The file extension must be .zip" error submitting to iTunes

查看:19
本文介绍了“此捆绑包无效 - 文件扩展名必须为 .zip"提交到 iTunes 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 24 小时内,每次我提交 iOS 应用时,都会收到错误消息(成功上传/接受后)

The last 24 hours, every time I submit my iOS app, I'm getting the error (after a successful upload/acceptance)

此捆绑包无效 - 文件扩展名必须为 .zip"

"This bundle is invalid - The file extension must be .zip"

并且二进制文件被标记为无效.我已经通过 TestFlight 成功提交了很多次,并且之前的构建刚刚进入应用程序审查.我上一次成功提交是在 2 天前.我不记得对我的项目进行了任何重大更改,对 Xcode 的唯一更改是我在 Xcode 中打开了自动更新并下载了所有文档.

and binary is flagged as invalid. I've successful submitted this many times through TestFlight, and a prior build just entered app review. My last successful submission was 2 days ago. I don't remember making any significant changes to my project, only changes to Xcode are that I turned on automatic updates in Xcode and downloaded all documentation.

我已经清理了项目,删除了派生数据,重新启动了 Xcode,重新启动了 Mac.

I've cleaned project, deleted derived data, restarted Xcode, restarted Mac.

我没有使用 CocoaPods,这是我在此错误消息中发现的唯一其他问题中问题的触发因素.我正在使用 Swift,并构建了一个 iOS 键盘扩展程序,但几个月来上传都没有问题.

I am not using CocoaPods, which was the trigger for the problem in the only other question I've found with this error message. I am using Swift, and building an iOS keyboard extension, but again have had no problem uploading for months.

我什至不知道从哪里开始调试这个,CocoaPods 回答提到了构建名称中的空格,但我没有改变任何我能记住的东西,我的应用程序名称和我的项目中的任何文件都没有空格名称.关于如何调试这个有什么建议吗?

I'm not even sure where to start debugging this, the CocoaPods answer mentioned spaces in build names, but I haven't changed anything I can rememeber, and my app's name and no file in my project has a space in their names. Any suggestions for how to debug this?

推荐答案

我收到了来自 iTunes Connect 的相同错误消息.根据@RhythmicFistman 的提示,我重命名了我的应用程序中包含的一个包资源文件,我天真地将其命名为somefilename.app"以使用.appres"的扩展名.这是我自己完全自定义的文件格式,我想从中吸取的教训是,Apple 的规则实际上禁止在将文件嵌入到您的应用中时包含带有 .app 扩展名的文件.

I had the same error message from iTunes Connect. Based on a hint from @RhythmicFistman, I renamed a bundle resource file included in my app which I had naively named "somefilename.app" to use an extension of ".appres" instead. This is a totally custom file format of my own, and I guess the lesson learned is that Apple's rules effectively disallow including files with the .app extension when they are embedded inside your app.

这篇关于“此捆绑包无效 - 文件扩展名必须为 .zip"提交到 iTunes 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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