"'Cdvplugin.H' File Not Found" in Cordova as Component (Cleaver)

Cordova/CDVPlugin.h' file not found in Phonegap

I bet that the Cordova.framework is not included in your XCode project.

Sample Image

To add it follow theses instructions:

- Under build Phases

- In the Link Binary With Libraries

- Click on the "+" button in the bottom

- Click on "Add Other..."

- Go in Macintosh HD -> Users -> Shared -> Cordova -> Frameworks

- Select Cordova.framework and click on Open

Try again to build your project.

Cleaver (PhoneGap / Cordova as component) not working in iOS

Okay, after many hours of trying to solve this issue, I finally found what was going wrong.
This is the line that messed things up:

cdvViewController.webView.delegate = self;

You can't just override the delegate of the view controllers's web view. The original delegate has instantiation code which enables PhoneGap to run. Don't override it and everything will be fine !

Missing dependency target CordovaLib (from CordovaLib.xcodeproj)

For some reasons the xcode project was corrupted. Generally, to solve this kind of problems, you can try removing and re-adding the platform ios:

ionic platform rm ios
ionic platform add ios
ionic build ios

Attention: Any changes that you applied directly from xcode will be lost and you will need to apply manually after you will have run these commands. Do a backup of platforms/ios before.

Unable to add Cordova.framework in XCode 5.1.1

With the help of Paulo's answer in this link I was able to solve my problem. Below is the solution.

The solution was to add the Cordovalib.xcodeproj to the target project, once done, click on your_project.xcodeproj - you will need to look in the Target Settings, under the Build Phases Tab, make sure that Cordovalib is added in Target Dependencies.

Once done it should allow the statement: #import to work.



Related Topics



Leave a reply



Submit