Test a PhoneGap application on a real device - ios

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.

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.

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

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)

Okay this is a bit of a shortcut/cheat. But what i've done was do phonegap serve and then open the IP address that it provides you on my Iphone...It's pretty much the same as having it run on your device as an APK!
Step One:
cd to your directory and run phonegap serve
Step two:
On your Iphone/Android/Device open your web-browser (e.g safari) and type in the IP phonegap has given you.
Step three:
Have fun seeing your app work :)
However if you're using some of phonegaps features (gps, etc...) then these won't work. This solution is a quick and easy way of viewing your app that doesn't use any hardware controls (e.g a jquery mobile app)

Related

How to run iOS app in iPhone without USB connection to Mac

I have developed my first apple app and i wish to run it in iphone (its working well in XCode). By running in iphone i don't mean to connect it with mac and run with USB connection.
I mean something like there will be uuid of iphone and i upload my app some where and it can be run by Iphone user without any wire-connection to my MAC where i have app in xcode.
Is it possible to achieve by anyway? Is that way to achieve is free of cost ?
What I understand from you question is you want to distribute your application to others,
If you have apple developers account , you can use TestFlight ITunes Connect, where you can distribute upto 1000 users
Or you could use other free providers like,
Fabric
Hockey
I personally recommend Fabric , it's free, has lot of features
In your project set your distribution profiles in code signing options
Then click on product-->Build wait for a moment until it opens an Organizer window .
After opening organizer window select save for AdHoC deployment --> choose your organization--> select for all devices compatibility(if you are running with latest Xcode 7.3 version otherwise devices compatibility window won't appear) click next next.
Finally you can get an api file in the Organizer window. In that select the first api file which has recently you built -> click on export to your any finder location.
Then open your api file location in your Finder.
Then open your browser and open https://www.diawi.com and drag and drop your api in the specified field and wait until it reaches 100% to upload and click on send so that you can get a link. Now you can share your link.
Note: In iOS device he can install the api by using safari browser with the link we have shared

Access to document folder of each app

in the past, i used to connect my iPhone or my iPad on my iMac.
In Xcode Organiser tool i was able to see all installed application and i was able to download document files for each app.
Since Xcode 6, i am not able to do this. I think i have to work with "Device" menu instead of "Organiser" menu. I can see my iPhone or my iPad but i cannot see apps.
I do not see "Use for Developpement" button.
Can anyone explain me how i should do in order to download all application document folders ?
Thanks
You will need to add your devices to the developer portal (https://developer.apple.com/account/ios/device/deviceList.action) and update your provisioning profiles accordingly (which is what the "Use for development" button actually did).
After that things are quite straightforward. By going into the devices window in Xcode and selecting your device, you will get the list of your installed apps. Tapping on the cog icon will give you the options to see and download the app's container (as shown in the screenshot)

Xcode is treating my iOS app as a Mac app

I have been working on an app for a while. I recently saved it to a flash drive and worked on it using another computer. When I returned to using my original computer, the options to run in the simulators have changed to "my Mac." How can I change this back so I can test my app in the iPhone simulators? Thanks in advance.
Go to Manage schemes (by clicking to your app name):
Delete all the schemes, then click Autocreate schemes now button, and tell if it works.

ios Application - Manually Installation for a Custom Application

I am currently developing an iOS application for iPhone and iPad and i need to manually install the application without the need for xcode.
Is any way to install the custom application manually like the way i do with android. For example to copy the package to the phone and install it?
The idea is to update the application after every bug fix without the need of xcode because the client does not have a mac.
Thanks!
If I understand your question, then my answer will help you.
As your client doesn't having mac and assuming that you have created a build of app u want to install with valid distribution certificate.
Just upload your build here - http://www.diawi.com (You can upload provisioning profile too)
It will give you a link. just send that link to your client and let hih/her open that link in iDevice's safari browser. Then simply hit install button to install app.
Use TestFlight.
EDIT: If you want to client to know update about app, then I will suggest to go for TestFlight as you can mention the version and also can add comment about each build updated there and client can read it by logging in that app from it's device.
Easy way, Make its .ipa file upload it on here - http://www.diawi.com, it will give yoy url, this url give yor client and open it on safari, your application will install in client iphone without Xcode.
They can do it via iTunes or iPhone Configuration Utility. Refer the link

What files to send to my iOS dev to receive a testable app back?

I hired a developer. He made app. I want to test it.
What I have:
Apple developer account - single - I never could figure out that
company international ID thingy.
Only I can access the account (am willing to give access if that is
only way)
I have OsX 10.6.2 snow lep running on Virtual Box all good
XCode 3.2.something (its older, updating requires new kernel and has
been problematic)
(I can utilize the apple dev provisioning wizard on dev.app.com to
obtain certs and files)
I have an apple certificate file downloaded to my computer that I
made under the provisioning thingy on dev.app.com
iPod Touch 4g (Jailbroken) if needed. (unknown if I can access it
via virtual box)
What I want to do...
Send whatever files to my ios developer so he can create a single file to email back to me. I take said file and install it on my iPod Touch, on my windows computer.
What do I need to send him so the developer can make this happen? Further what do I need to tell him to do. This part may seem odd as why would "I" not knowing how to build an iOS app be telling the dev how to do it. I have requested him to make this all happen before and there is a language barrier.
What I do not want to have to do:
Use the mac anymore (please tell me this is possible.)
(said in another way) I would like to Test apps by putting them on my ipod Touch (using itunes or safari and dev account is ok) BUT I want to be using windows.
Can this be done? I code Android. I do not know Xcode and dealing with builds from Xcode 4.6 then trying to open project in Xcode 3.X not knowing if there are project errors etc. and well...learning xcode jsut doesn't make sense...I mean then why hire a dev? yeah yeah cause he knows C++ I got that part.
Anyway, sorry for the 'flavor' parts of this message I just want to make a message that will sum up the "world of it all" for any future travelers trying to do the same thing.
Summary - I want to test apps on Ipod Touch (or whatever iOS device) using windows to install them to the device. Able and willing to use Mac to create needed files (certs. keychain files etc.) can use Mac for all building aspects.
Please advise and thank you very much programming gawds in advance.
Use the mac anymore (please tell me this is possible.)
2 .(said in
another way) I would like to Test apps by putting them on my ipod
Touch (using itunes or safari and dev account is ok) BUT I want to be
using windows.
It is possible. However, you may not understand the following steps because those should be done by iOS developer.
Step1. Your developer should archive it (In xcode, press Product, then Archive).
Step2. Open Organizer in xcode (top right corner), click the "Archives" page
Step3. Select the app you just built. Then click "Distribute" button and select "Save for enterprise or Ad-Hoc Deployment"
Step4. You will get xxx.ipa. You can drag this file in WINDOWS iTune and sync to your iPod.
Note: Your iPod should mark for "use for development" with valid provision.

Resources