Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a "Hello World" iPhone App with cordova 1.5 and xcode 4.2?

Tags:

xcode

ios

cordova

I want to create an Hello World iPhone app using Cordova1.5 and xcode 4.2 I have installed latest version of phonegap(cordova1.5) in Xcode 4.2. How can I create a Helloworld app. Can anyone send me useful links for creating apps with cordova1.5 and xcode 4.2 ?

like image 418
Balaji Kandasamy Avatar asked Mar 14 '12 10:03

Balaji Kandasamy


1 Answers

PhoneGap has a lot of tutorial already available which you can check from here:

http://wiki.phonegap.com/w/page/35501397/Tutorials

For simple helloworld though you can follow these steps:

  • Open XCode and create a new project with "Cordova-based Application" template
  • Give project name and Un-select the "Use Automatic Reference Counting"
  • XCode will create a template project
  • Run the application first time and it will generate the additional /www folder in the project directory
  • Select the project and go to File -> Add Files to "your project" -> Select /www folder from project directory and add as a reference in project
  • Re-run again and you should see the alert dialog saying "Cordova is working"

You can check the same tutorial with screenshot at here

like image 84
dhaval Avatar answered Nov 15 '22 07:11

dhaval