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

耗尽温柔 提交于 2019-12-07 17:58:26

问题


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").

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/19630755/creating-ipa-file-in-xcode-5-for-project-containing-static-library-sub-projects

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!