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

StackOverflow https://stackoverflow.com/questions/19630755

  •  01-07-2022
  •  | 
  •  

سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top