Updating Cordova 1.9 to 2.0 "#import <Cordova / CDVPlugin.h>" File Error Not Found
Following the instructions outlined here: http://docs.phonegap.com/en/2.1.0/guide_upgrading_ios_index.md.html
I am trying to upgrade an existing iOS project from Cordova 1.9 to 2.0 .
After following the line instructions, I still get the following error when trying to start:
Lexical or Preprocessor Issue -- "#import <Cordova/CDVPlugin.h>" File Not Found The line generating this error reads:
#import <Cordova/CDVPlugin.h> I tried to solve the following:
- Make sure that I correctly imported the CordovaLib project into my parent project
- Double checked that I use the correct import syntax with brackets, instead of quotes
- Verify that the CORDOVALIB directory is correct.
- Was the project clean and the clean build folder
- I tried recursively adding my CORDOVALIB folder in the user header search path. Did not do anything
I have a project that I created through the command line to build the cordova-2.0.0.js file. This project is working fine, and I almost went along the lines using the build settings, comparing it with my existing project and I can not think of anything else.
(Note: Phonegap 2.9.1 (November 2013))
I ran into the same problem trying to make a plugin with a plugin for an open source phone. The solution was to add Cordovalib.xcodeproj to the target project, after its completion, click on your_project.xcodeproj - you will need to find in the target settings under the tab "Build Phases", make sure that Cordovalib is added to the "Target Dependencies".
After this action is completed, the #import statement must be allowed.