Test a PhoneGap application on a real device

20,304

Solution 1

If you have an Apple ID and the ipad is properly provisioned, then you simply need to change where you are building to in xcode. Click on the button next to the "run" and "stop" buttons in xcode. The button will be the name of your project followed by "nameOfProject>iPad 4.3 Simulator" or something similar. Change this to be "iOS device name of ipad", the ipad you have plugged into the computer. Now rebuild and run.

Solution 2

A way to distribute application without asking user to copy provisioning profile and application file to iTunes and then sync iPhone with it. Now, only thing that they need to do is to click on the link in e-mail, which will open website on device and there they can click to install application and profile on the iPhone.

http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web

Other reference :

http://support.twixlmedia.com/kb/epublisher-builder-application/how-do-i-create-the-distribution-provisioning-profile-for-my-ad-hoc-build

Solution 3

use "run" instead of "emulate".

I've only used cordova but cordova run <osname> will install it on your device if it's plugged in. ie:

cordova run ios (I refuse to pay 99$ so not tested but it should)

cordova run android (works beautifully)

Share:
20,304
Santana6.35
Author by

Santana6.35

Updated on July 09, 2022

Comments

  • Santana6.35
    Santana6.35 almost 2 years

    I built an application using Phonegap and I tested it on the iPhone Simulator. Now I want to "send" it to the iPad, can somebody explain me how to handle that ?

    Of course I've got an apple id and all others stuff... I made the "provisioning profile" for the iPad, but I don't understood how I can run it on the device. If somebody can explain me or redirect me to a good tutorial for this kind of "testing development". Thanks in advance.