Thursday, July 19, 2012

Ad Hoc Build in XCode 4.3+ and XCode 4.5

Things have changed a little bit for ad hoc. This post is for people who may face problem while trying to create adhoc. While trying to install .ipa on device through iTunes, it gives error "iTunes sync failed to start"

Make sure your mobile provisioning for ad-hoc and distribution certificate is installed before we proceed any further. You can go through my old post, it is very detailed, just to refresh things like how to create certificate and other required things.

Note: You can read captions on the image for more clarity.

Add Ad Hoc configuration by duplicating release (You can do that by pressing + sign))

You need to add distribution signing profile for Ad Hoc as well as Release.

Now on top left corner of your XCode screen. Click on project Name like here I click on MIMChartLIb

I get popup like this.Click on Edit Scheme.

Go to Archieve(Highlighted cell on left tableview). On right side,Change Build Configuration to Ad Hoc.Click OK.

Now go to Product > Archive

It will ask you to sign with keys. Click Allow or Always Allow.

After sometime, Organiser window will open displaying Archive. If not, You can open Organiser from Xcode Menu: Window>Organiser.

Clicking on Distribute button on previous screen, opens this. Choose second option here.
Next it asks for Code Signing Identity, Choose your Ad-Hoc distribution profile.

It will ask you to sign with the key Click Allow or Always Allow.

After sometime, it will ask you where to save your .ipa file. Thats it ! You select your location and click Save.


  1. Its very interesting post, good job.

    videocon reacharge
    Videocon Telecom, the next-generation GSM mobile service network is the telecom arm of the $10 billion Videocon Group. The company has partnered with global technology leaders to create a robust infrastructure featuring future ready mobile technologies. Powered by the most advanced GSM-EDGE network, Videocon Telecom aims to redefine the Indian mobile telecommunications industry by leveraging a combination of the parent company’s strong brand recall and retail reach with a spirit of innovation and customer centricity. Videocon endeavours to transform the life of every Indian consumer by changing the very paradigm of the way he or she communicates.