在 Xcode 5 中为包含静态库子项目的项目创建 IPA 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19630755/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating IPA file in Xcode 5 for project containing static library sub-projects
提问by Andrew Ebling
I have a project which contains a sub-project to build a 3rd party static library the app depends on.
我有一个项目,其中包含一个子项目来构建应用程序依赖的 3rd 方静态库。
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?
有谁知道 i) 为什么会这样以及 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.
对于一个简单的测试项目(没有 3rd 方静态库),选项“Save for Enterprise or Ad Hoc Deployment”在那里并且按预期工作。
回答by Andrew Ebling
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 phaseusing 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.
执行 Product >> Clean Build Folder(按住 Alt 以获取此选项),然后 Product >> Archive,当您单击 Organizer 中的 Distribute 按钮时,您将获得“保存为企业或 Ad Hoc 分发”的选项。