Click here to Skip to main content
13,147,044 members (61,033 online)
Click here to Skip to main content
Add your own
alternative version


3 bookmarked
Posted 4 Dec 2013

Testing an Application on an iPhone

, 5 Dec 2013
Rate this:
Please Sign up or sign in to vote.
Two methods for testing applications on an iPhone.


There are many different ways to test an iPhone app. This document explains mostly used two different ways to Dev/test an iPhone Application, Ad Hoc sharing and using the full source code.

The easiest way is Ad Hoc sharing.

Ad Hoc Sharing

Ad Hoc testing is done using an iPhone application file, i.e., file with extension “.ipa. You need an iPhone and computer with iTunes to sync iPhone.

Below are the steps to install application on your iPhone:

  1. Share your iPhone’s Unique Identifier (UDID) with a developer, since the developer needs this to setup a provisioning profile to allow you to install the application on your iPhone. If you don’t know the UDID of your Phone, then scroll down at the end of the tip to see instructions to retrieve the UDID.
  2. Using the UDID developer will create an app and provisioning profile.
  3. Get the app and provisioning profile from the developer, if it is shared on the shared drive you should see files with extension “.mobileprovisioning” file and “.ipa”. If developer sends it as a .zip file in email, unzip it, go to unzipped folder; on Windows you will see _MACOSX and "Test_App" folder. Ignore the _MACOSX folder; go to "Test_App" folder, you should see files with extensions “.mobileprovisioning” and “.ipa” .
  4. Go to the iTunes with your iPhone connected.
  5. First drag and drop the provisioning file, i.e., file with extension “.mobileprovisioning in your iTunes library.
  6. Then drag and drop your application file, i.e., file with extension “.ipa”. Now you should see your app in your library in iTunes on your PC.
  7. To install the app on your mobile, go to the Devices in iTunes and click on your iPhone.
  8. Find your app and make sure it is checked to be synced.
  9. Apply changes.
  10. Once it is synced, you should see your app on iPhone.

Using Full Source Code

  1. To test an application using this method, you need a Mac OS machine and source code to the app:
  2. Login to the Mac and get the code (e.g. download from CodeProject or GitHub)
  3. Sync/clone the code on local if downloading from a Git repository.
  4. Connect the iPhone to your computer.
  5. Open project file, i.e., the file with extension “.xcodeproj” file for your app using XCode.
  6. Select the app from the left pane.
  7. Click the app under Targets (from the pane beside left pane).
  8. Go to the “Build Settings” tab at the top of the right pane.
  9. We need to change the code signing identity to Developer certificate.
  10. To change the Code Signing identity, click anywhere on “Code Signing Identity” row in build settings tab.
  11. Select your developer certificate; when you select certificate for top identity, it should change certificate for all the sub items. Please make sure it has changed the identity for all the sub items
  12. Change XCode's scheme to build your app by selecting scheme button at top left.
  13. Select debug version and select device.
  14. Click on Run button to build and run the App . The App should be installed on your iPhone.
  15. When you receive updated version of your app, delete the app from your device.
  16. Go to Product->Clean to start with clean installation.

Instructions for Retrieving iPhone’s UDID

  1. Start iTunes and connect your iPhone.
  2. On the Summary page for your iPhone, click on the word “Serial Number:” text.
  3. The serial number should change to the word “Identifier”, followed by a long string of numbers and digits.
  4. Press CTRL+C (Windows) or Command/AppleKey + C (Mac) and the UDID will be copied to the clipboard. Alternately, you can go to Menu -> Edit -> Copy Identifier (UDID).


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Gurunath Navale
Technical Lead TCS
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralMy vote of 3 Pin
Cindy Meister5-Dec-13 7:39
memberCindy Meister5-Dec-13 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170915.1 | Last Updated 6 Dec 2013
Article Copyright 2013 by Gurunath Navale
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid