Ace
Ace

Reputation: 664

"Get up and running" problems (Phonegap April 2012)

After building some mobile web sites, I really wanted to take the plunge and start working with Phonegap. I'm on a MacBook Pro with OS X 10.7.3 installed. Got the latest versions of Xcode, git, ant and make.

Downloaded the latest phonegap version (which is the Cordova.dmg) from the phonegap web site and installed it, although I'm not sure where that went and whether I need to do anything else with it. I reckon that since I can see Single Page View as an iOS application option in Xcode, that should be proof enough that it installed properly. Right?

At any rate, I've looked for and Google-d basic phonegap tutorials, and the one that I really liked, because it speaks to me as a phonegapp newbie, with step-by-step instructions, was PhoneGap Beginner's Guide.

However, there are some issues that keep me from moving on. I get to the point of:

 $ git clone git://github.com/phonegap/phonegap-iphone.git

And that's when the trouble begins. I get the following message:

Cloning into 'phonegap-iphone'...
  fatal: remote error: 
Could not find repository phonegap/phonegap-iphone

OK, so maybe the repository was down, and I started looking for other repositories. And I've git-downloaded a few available repositories . . . but neither one of them had a phonegap-iphone.git folder/branch or whatever it should be properly called. (Yes, I'm a git beginner as well.)

So I never get to:

$ cd phonegap-iphone
$ make $ open PhoneGapLibInstaller.pkg

Is it because something is outdated? Am I not getting access to the correct github repository?

Any pointers and/or links to up-to-date phonegap tutorials would be immensely appreciated.

Upvotes: 0

Views: 737

Answers (1)

Drew Dahlman
Drew Dahlman

Reputation: 4972

okay a couple of things...

  1. Welcome to Phonegap / Cordova!

  2. Install that DMG, you will need all of the phonegap / cordova frameworks

  3. Once installed I HIGHLY recommend you start following the Google Group ( lots of really great, smart people working to make the platform better ) LINK

  4. Now that you're installed launch xCode and you will see a Cordova project, select that and follow along with the getting started steps on the phonegap website.

GETTING STARTED

  1. Install the Cordova.DMG

  2. Open xCode and select Cordova Project

  3. Give it your project name, and company should be com.yourName

  4. Now run the app in the simulator, it will give you an error that says something like "No www folder or Index.html found.

  5. Now go to finder and find the project's folder, you will see a new folder there called...'WWW' drag that into your xCode project. ( drop it into your Project Folder in xCode ) BE SURE when you do this that you check the "Create Groups for Any Folder" radio button as well as Copy items into destination

  6. Now save and run the application again... BAM you'll get a notification that says something like Cordova is Running!

  7. Thats it! Think of your www folder as a root folder on a server, you can nest things and have other folders.

Upvotes: 2

Related Questions