捆绑包是无效的Mac OS X [英] The Bundle is Invalid Mac OS X

查看:83
本文介绍了捆绑包是无效的Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将我的应用上传到应用商店时遇到了问题.每次将应用程序上载到苹果时,它都会显示Invaild Binary,因此我尝试在Xcode Organizer中验证存档的应用程序,但出现此错误:该捆绑包无效.Apple当前不接受使用此版本的SDK构建的应用程序.

I've been having problems uploading my app to the app store. Every time I've uploaded the app to apple it said Invaild Binary so I tried to Validate the archived app in Xcode organizer and I'm getting this error: This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK.

这是否意味着该应用程序是在太旧的xcode版本中首次创建的?我目前正在运行Xcode 4.1,但我不记得第一次创建该应用程序的版本,因为这是我之前尚未完成的较早项目之一.

Does this mean that the app is created for the first time in a too old version of xcode? I'm currently running Xcode 4.1 but I can't remember what version the app was created in for the first time because this was one of my earlier project that I haven't completed before now.

是否有必要解决此问题,而无需重新创建整个项目?

Is there anyway to fix this without me having to recreate the whole project?

先谢谢您!

推荐答案

您应检查的第一件事是要针对其构建的Base SDK.为此,请在项目浏览器"中选择您的项目,然后从左窗格中选择目标,然后选择转到构建设置"选项卡.

The first thing that you should check is the Base SDK that you're building against. To do this, select your Project in the Project Navigator and choose your target from the left pane and then choose go to the Build Settings tab.

如果您有不需要10.6的较旧项目,则会发现需要将XCode中的Base SDK升级为"Mac OS X 10.6"或"Latest Mac OS X"才能获得进入App Store.

If you have an older project that didn't require 10.6, you'll find that you will need to upgrade the Base SDK in XCode to be "Mac OS X 10.6" or "Latest Mac OS X" in order to get into the App Store.

如果您仍然希望能够在10.5以下运行,则基本上需要一个单独的二进制文件,但是您也许可以摆脱对10.6 SDK的构建,然后将"Mac OS X Deployment Target"设置为10.5,尽管我不确定.如果您只关心通过App Store进行分发,请将其设置为10.6或编译器默认值.

If you still want to be able to run under 10.5, you'll basically need a separate binary, but you might be able to get away with building against the 10.6 SDK and then setting the "Mac OS X Deployment Target" to 10.5, although I'm not certain of this. If you're only concerned with distributing via the App Store, then set this to 10.6 or the compiler default.

这篇关于捆绑包是无效的Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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