These instructions follow the Getting Started with iOS guide at http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS. (Earlier versions of this PG pointed to the wrong file.) PhoneGap uses “PhoneGap” and “Apache Cordova” terminology on its web site. I’m going to use “PG” often in this article for shorthand.
Before you can install the app on your device, you need to sign up as a Developer with Apple and go through the business documentation, Certificate Signing, and Developer Certificate process, all of which are detailed on Apple’s web site (https://developer.apple.com/programs/ios/), under Prepare for App Submission. Nevertheless, you can skip all those steps and still see your work in the the iOS Simulator included with Xcode. Xcode is a free download you can download now, but the Developer status comes at $99 a year. If you are new to creating apps for the App Store, you’ll want to peruse the App Store Review Guidelines to make sure your app falls within acceptable limits: https://developer.apple.com/appstore/resources/approval/guidelines.html
Currently, Weinre, developed by Patrick Mueller, only works in Webkit-based browsers like Google and Safari, as used in iPhone and Android devices. Here are the steps to download and install the software tool, and get it running on an iPod touch device running an app which uses Cordova PhoneGap. These steps are extremely thorough, designed for newbies to coding. (You’re welcome.)
(Sept. 21, 2012 update: If you use a Mac, you may want to try the iWebInspector, which is more feature-rich and designed to replace Weinre on the Mac.) Continue reading
According to the Developer Guide PDF dated 2012-06-13, after the status of our application is “Waiting for Upload,” we are to use Application Loader to upload our binary. However, the Product > Archive and submit process through Organizer still works. This process through Archive is way easier and faster than the App Loader process. But here is the App Loader procedures to follow if you want to take those steps.
Here are the Application Loader instructions online: https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf
“Waiting for Upload” status
Make sure in your Developer account online that the status of your app is “Waiting for Upload.” This means that you’ve filled in all required fields, including text and images. Continue reading
What steps do you follow to get your app out to a tester’s physical iOS device? This article assumes you will have the physical device in hand to plug into your development Mac computer. Continue reading
I got the above error and after a search, found this link that saved the day:
The steps I took to resolve this were:
1. In Finder, right-click on the xcodeproj file.
2. In the options box, click on Show Package Contents.
3. Right-click on the .pbxproj file and select to open in TextEdit.
4. Do a search on that file for the long string of numbers.
5. Comment out the line and save (add /* before the line and */ after the line).
6. Restart Xcode, reopen the xcodeproj file, and do a Product > Clean. It should start up fine if there were no other problems.
Xcode 4 Transition Guide
Link: [Sign in to your iOS Developer account] > iOS Dev Center > iOS Developer Library > Resource Types > Guides
These are notes based on the Xcode 4 Transition Guide (page numbers refer to the PDF) that I found helpful to me. This guide gives you an overview of the many refinements made during the transition from Xcode 3 to 4. Well worth a look if you are not using Xcode 4 regularly and would like to know more about its features. The following notes are of particular interest to me; you’ll find much more in the document than what I’ve written.