Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 498
Sanchit Paurush Avatar asked Mar 07 '12 04:03

Sanchit Paurush


People also ask

How do I transfer an IPA file from my iPhone to my computer?

Copy files from an iOS or iPadOS app to your computerIn iTunes, select the app from the list in the File Sharing section. Drag and drop files from the Documents list to a folder or window on your computer to copy them to your computer.


2 Answers

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.

like image 168
Parth Bhatt Avatar answered Sep 20 '22 09:09

Parth Bhatt


If you want to test application on device, then you need to create debug profile for it. You need to get it for your device from the provisioning section of developer portal. If you are creating the distribution profile, then you need to put the generated ipa file from build folder to itunes to install it on device.

Then you can install the application on device. But in that case you will not be able to see the logs.

So if you want to see the logs in Xcode console, Create a developer provisioning profile for the device & install it on XCode & then run the code on device using Xcode.

Maybe I think this is the entitlements.plist problem please follow the steps

In XCode, go to "new file" and select "code signing" in left box. Select the "Entitlements" file type. And change the name to "Entitlements.plist". Give the name in project getinfo entitlements plist please check the image below

enter image description here

like image 28
Srikar Appalaraju Avatar answered Sep 19 '22 09:09

Srikar Appalaraju