How to get ipa file from Xcode to run an iPhone app in real device?

Sanchit Paurush picture Sanchit Paurush · Mar 7, 2012 · Viewed 49.9k times · Source

My client asked me to get the review of the app on which I am working. So, I want to get the ipa file and mobile provision file from Xcode 4.2 to share my app to run in real device. I have a paid account of apple with me. Please tell me the procedure to get it.

Thanks in advance.

Answer

Parth Bhatt picture Parth Bhatt · Mar 7, 2012

STEP-1:

You need to refer steps for AdHoc Distribution

I think you need to login with your credentials at Developer Apple Login

Once you are logged in go through this link and read through it step by step.

I think this is the best solution you can get as this documentation guide is given by Apple

https://developer.apple.com/ios/manage/certificates/team/howto.action

This has multiple steps like:

1. Generating a Certificate Signing Request

2. Submitting a Certificate Signing Request for Approval

3. Approving Certificate Signing Requests

4. Downloading and Installing Development Certificates

5. Saving your Private Key and Transferring to other Systems

I think if you read all this steps on the apple documentation at the given link then you don't need to refer to any other guide.

STEP-2:

Then just you need to download your certificates and provisioning profile.

STEP-3:

Just set the profile into your Project and Target Settings and then put proper Entitlements using "Entitlements.plist".

STEP-4:

Once you have done that, just set up your project in AdHoc Scheme.

STEP-5:

Clean your Project.

STEP-6:

Go to Product -> Click on Build For -> "Build For Archiving"

STEP-7:

Product -> Archive

Now your Archive can be obtained in your Organizer where in you can save it to disk with an IPA extension and send it your client.

EDIT:

Here are some of the useful links you can refer to for creating provisioning profile and IPA file:

Create IPA file in Xcode 4.2, iOS 5.0 Beta

http://www.makebetterthings.com/iphone/how-to-create-ipa-file-for-your-iphone-app-xcode-build-and-archive/

http://www.wikihow.com/Create-a-Provisioning-Profile-for-iPhone

Create provisioning profile in iphone application

Hope this helps you.