Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 722
Andrew Ebling Avatar asked Dec 04 '25 14:12

Andrew Ebling


1 Answers

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.

like image 153
Andrew Ebling Avatar answered Dec 06 '25 03:12

Andrew Ebling



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!