Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top