Xcode中的归档项目错误地创建了多应用程序包 [英] Archiving project in Xcode incorrectly creates multi-application bundle

查看:77
本文介绍了Xcode中的归档项目错误地创建了多应用程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用Xcode归档我的项目是创建一个多应用程序捆绑包,而不是捆绑我要发布的主要目标,这正是我想要的.具体来说,当我在管理器中验证存档时,它会显示以下消息:

Archiving my project in Xcode is creating a multi-application bundle, instead of bundling my main target for release, which is what I want. Specifically, when I validate my archive in Organizer, it gives me the message:

"[[项目名称]不包含一个捆绑应用程序或包含多个产品.请选择另一个存档,或调整方案以创建一个捆绑应用程序."

"[projectname] does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application."

听起来该方案中有一些设置需要调整,但是我不知道是什么导致了其他目标的出现.

It sounds like there is some setting in the scheme that needs to be adjusted, but I can't figure out what's causing other targets to be included.

我正在使用Xcode 4.0.

I'm using Xcode 4.0 by the way.

推荐答案

好的,回答我自己的问题.事实证明,这是XCode 4中相关项目的问题.如果发生这种情况,请检查所有相关项目(例如静态库)的构建设置",并确保已设置部署"下的跳过安装"选项.为是.

OK, answering my own question. Turns out it is an issue with dependent projects in XCode 4. If this happens to you, go through the Build Settings for all your dependent projects (e.g. static libraries) and make sure that the "Skip Install" option under "Deployment" is set to YES.

此处有更多详细信息: http://flakasoft.com/developer-tips/xcode-4-bug-solution-for-archiveing-build-with-static-library/

More detail here: http://flakasoft.com/developer-tips/xcode-4-bug-solution-for-archiving-build-with-static-library/

这篇关于Xcode中的归档项目错误地创建了多应用程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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