Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save for Enterprise or ad-hoc deployment not present

I am trying to build an IPA file for my app in view of some ad-hoc enterprise distribution. I have been looking at how to do this with Xcode 4.3.2, the version I am using at present, and I reached the point where in the organiser I should select the 'Save for Enterprise or ad-hoc deployment' option. The problem is that this option does not actually appear in the first place. In fact, I only have the 'Save Built Products' and 'export as Xcode archive' options.

I would imagine the issue lies in some configuration settings for my app, but have been unable to find any help over the web. Hence my question here :-) Would appreciate some help in understanding what is wrong with my code.

Thanks in advance to anyone helping here.

Cheers.

like image 534
Diferdin Avatar asked May 08 '12 08:05

Diferdin


2 Answers

I finally got around this. It turned out the issue was that I was using third-party libs by including their (source) Xcode project rather than as pre-compiled libs. For some reason Xcode sees them as distinct apps, and won't let me wrap all of them under one single IPA. I removed the project, dropped the actual static libs and headers, produced the archive and...tadaaah: here I could sy my most wanted export option.

Thanks everyone for the help, a special thanks to The Saad who helped me finding out this.

like image 27
Diferdin Avatar answered Oct 25 '22 05:10

Diferdin


If your project uses a third-party lib as a sub-project, there are a couple of settings that you may need to change so that xcode will recognize your app as a single–bundle rather than multiple products. Only single-bundle apps can be saved for enterprise or ad-hoc deployment, or submitted to the app store.

First, in the Build Settings tab of the third-party lib target, set the Skip Install setting to Yes.

Second, in the Build Phases tab of the third-party lib target, look in the Copy Headers phase and ensure that there are no headers in the Public or Private section (they should all be in the Project section).

like image 59
sglist Avatar answered Oct 25 '22 04:10

sglist