Search code examples
iphonexcodeipaarchiving

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.


Solution

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