简体   繁体   English

在Xcode 5中为包含静态库子项目的项目创建IPA文件

[英]Creating IPA file in Xcode 5 for project containing static library sub-projects

I have a project which contains a sub-project to build a 3rd party static library the app depends on. 我有一个项目,其中包含一个子项目,用于构建应用所依赖的第三方静态库。

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"). 在Xcode 5中,当我在执行归档构建并单击“管理器”窗口中的“分发”按钮后导出.ipa文件时,选项列表中缺少“保存为企业或特别部署”选项(我只看到“提交到iOS App Store”或“导出为Xcode存档”)。

Does anyone know i) why this is and ii) how to rectify the problem? 有谁知道我为什么这是和ii)如何纠正这个问题?

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. 对于一个简单的测试项目(没有第三方静态库),“Save for Enterprise或Ad Hoc Deployment”选项在那里并按预期工作。

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. 此问题的解决方案是选择包含的静态库的项目文件,选择Build Phases,然后使用右侧的(x)按钮删除Copy Headers构建阶段

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. 做产品>>清洁构建文件夹(按住Alt以获得此选项),然后按产品>>存档,当您单击管理器中的分发按钮时,您将获得“保存为企业或特别分发”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM