[iOS] Walkthrough - Testing On Device

A guide for testing your Corona applications on your iPhone, iPad or iPod Touch.

NOTE: If this is the first time you've built an app you will need to create your certificates first.

Step 1
Login to the iOS Provisioning Portal and select "Devices" from the left side bar, then click the "Add Devices" button in the upper right.

Step 2a
If you do not have your Device ID, connect your iPhone or iPad to your Mac via USB then click on the  in menu bar and choose "About this Mac", then select "More Info…" (NOTE: If you are running Lion you will now need to click "System Report".)

Step 2b
Find "USB" in the left side bar, then locate your device in the list to the right. Copy the serial number carefully.

Step 3
In the iOS Provisioning Profile continue adding your device by pasting the number from step 2 into the "Device ID" box, giving your device a name and then clicking "Submit".

Step 4
Click "App IDs" in the left side bar, then choose "New App ID" in the upper right.

Step 5
For the description enter your app's name, for the bundle seed ID select "Use Team ID" and for the bundle identifier enter com.yourname.appname and choose "submit".

Step 6
Click "Provisioning" in the left side bar, then click the "Distribution" tab and choose "New Profile"

Step 7
Fill in your information as follows;

Distribution Method: Ad Hoc

Profile Name: App Name

App ID: *select App ID we just created*

Devices: *tick device we just added*

Then click "Submit".

Step 8
ou will be taken back to the Distribution tab and your profile will show as "pending". Wait a moment and then refresh your browser and a download button will appear. Click it now.

Step 9
Once your provisioning profile has downloaded double click on it and Xcode will open. It has now been added to Xcode.

Step 10
Open Corona (if Corona is already running you MUST quit and reopen it before being able to proceed) then open your app and press CMD+B to build.

Step 11
Enter your information, choosing to build for device with the code signing identity we just created. (iPhone Distribution: Your Name [App Name])

Step 12
Connect your device to your Mac again via USB, then Open Xcode and press CMD+Shift+2 to switch to the Organizer window.

Step 13
Select your device on the left and then choose "Use For Development". (You will have to enter your Apple developer login details and then wait a minute while Xcode sets everything up, then proceed.)

Step 814
Find the app you just built using Corona and drag it to your device in the left side bar of the Xcode window. Although a moment to sync.

Step 15
Your app is now on your device!

That concludes this walk-through.

If you require one-on-one assistance Ansca provide that through a program called Corona 102, which you can find out more about here.

views:1850 update:2012/1/13 9:04:04
corona forums © 2003-2011