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

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

问题描述

在 Xcode 中归档我的项目是创建一个多应用程序包,而不是捆绑我的主要发布目标,这正是我想要的.具体来说,当我在 Organizer 中验证我的档案时,它给了我以下信息:

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] 不包含单捆绑应用程序或包含多个产品.请选择另一个存档,或调整您的方案以创建单捆绑应用程序."

"[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-archiving-build-with-static-library/

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

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