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

查看:158
本文介绍了“此捆绑包无效-文件扩展名必须为.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天全站免登陆