Phonegap 2.1.0 Cordova/CDVViewController.h file not found

I have installed Xcode 4.5 (no previous phonegap version installed). I have downloaded,extracted and created project by Phonegap tutorial :

After the terminal command : ./create myproject ~/Desktop/myproject com.test.myproject I have successfly created structure.

  • Pod file not being initialized?
  • iPhone Storyboard Editing a table view
  • How do I get a background location update every n minutes in my iOS application?
  • how to display UIActivityIndicatorView BEFORE rotation begins
  • How to run the application in the background?
  • Custom Selector For NSSortDescriptor and NSFetchedResultsController
  • Than i launch xcode and wanna Play this example project. Xcode build Fails and says:

    Lexical or proccessor issue ‘Cordova/CDVViewController.h’ file not found

    I tried to add this missing header in to classes folder, repaired the import syntax, but still same problem.

    Does anybody solved this problem?/HOW?

    Solutions Collect From Internet About “Phonegap 2.1.0 Cordova/CDVViewController.h file not found”

    After many attempts I decided to read and solve the problem using ./update_cordova_subproject!

    Create project using:

    ./create ~/Desktop/project com.example.project project

    Update cordova subproject reference:

    ./update_cordova_subproject ~/Desktop/project/project.xcodeproj

    Build successfull now!