Kiran
Kiran

Reputation: 1289

I have installed phoneGap lib but am unable to run the app

I have installed phonegaplib for ios, I created one test project using phoneGap based on application template, but in that, phoneGap.framework is in the red color. I think it is missing. So where can I get this frame work, can any one help me?

Upvotes: 1

Views: 1454

Answers (2)

Tony Lukasavage
Tony Lukasavage

Reputation: 1937

Sounds like you are using XCode 4, which is not fully compatible with PhoneGap's default settings. Use this link to have PhoneGap generate a compatible project for you:

https://build.phonegap.com/generate

Upvotes: 0

Ahmad Kayyali
Ahmad Kayyali

Reputation: 8243

Are you sure you're following the official guide?

Create a PhoneGap project (Xcode 4)

  • Launch Xcode, then under the File menu, select "New Project...".
  • Navigate to the "iOS" section, under "Applications" - then in the right pane, select "PhoneGap-based Application"
  • Select the "Next" button, name your project and company idenfifier, then select the "Next" button again.
  • Choose the location where you want the new project to be.
  • Run the project at least once to create the "www" folder in your project folder.
  • Drag and drop this "www" folder into your project in Xcode, and add it as a folder reference.
  • Modify the contents of the "www" directory to add your HTML, CSS and Javascript.

Reference 1: PhoneGap iPhone - Build and install the Installer Package

Reference 2: Video: PhoneGap Installer - Xcode 4 Template [HD]

Upvotes: 1

Related Questions