在Xcode 5中为包含静态库子项目的项目创建IPA文件 [英] Creating IPA file in Xcode 5 for project containing static library sub-projects

查看:65
本文介绍了在Xcode 5中为包含静态库子项目的项目创建IPA文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,其中包含一个子项目,用于构建应用程序依赖的第三方静态库.

I have a project which contains a sub-project to build a 3rd party static library the app depends on.

在Xcode 5中,当我执行存档构建并单击管理器窗口中的分发"按钮后导出.ipa文件时,选项列表中缺少保存用于企业或临时部署"选项(我只看到提交到iOS App Store"或导出为Xcode存档".

In Xcode 5, when I come to export an .ipa file after doing an Archive build and clicking the Distribute button in the Organizer window, the option "Save for Enterprise or Ad Hoc Deployment" is missing from the list of options (I only see "Submit to the iOS App Store" or "Export as Xcode Archive").

有人知道i)为什么会这样,ii)如何纠正问题吗?

Does anyone know i) why this is and ii) how to rectify the problem?

对于一个简单的测试项目(没有第三方静态库),保存用于企业或临时部署"选项可以正常使用.

For a simple test project (with no 3rd party static libraries) the option "Save for Enterprise or Ad Hoc Deployment" is there and works as expected.

推荐答案

此问题的解决方案是选择包含的静态库的项目文件,选择构建阶段",然后删除复制标题"构建阶段 strong>使用右侧的[x]按钮.

The solution to this problem is to select the project file of the included static library, select Build Phases, then delete the Copy Headers build phase using the (x) button on the right hand side.

执行产品>>清理构建文件夹(按住Alt键以获取此选项),然后单击产品>>存档,然后单击分发"按钮以选择保存为企业或临时分发".组织者.

Do Product >> Clean Build Folder (hold down Alt to get this option), then Product >> Archive, you will then get the option to "Save for Enterprise or Ad Hoc Distribution" when you click the Distribute button within the Organizer.

这篇关于在Xcode 5中为包含静态库子项目的项目创建IPA文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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