ios - Cordova 3.1.0: Plugin not found or is not a CDVPlugin -


i'm trying build first cordova app , can't plugin work.

my app built using cordova command line interface, i've added camera plugin way:

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git 

my config.xml looks this:

<?xml version='1.0' encoding='utf-8'?> <widget id="com.dev.myapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">     <name>my app</name>     <description>         sample apache cordova application     </description>     <author email="dev@callback.apache.org" href="http://cordova.io">         apache cordova team     </author>     <content src="index.html" />     <access origin="*" />     <preference name="fullscreen" value="true" />     <preference name="webviewbounce" value="true" />     <feature name="camera">         <param name="ios-package" value="cdvcamera" />     </feature> </widget> 

i've run cordova build , went fine, when build project in xcode tells me first cdvcamera.h, cdvcamera.m files missing. isn't command line interface supposed place files correctly when run cordova plugin add in first place ?

also if copy files manually in project, project runs when call camera functions throws following error:

error: plugin 'camera' not found, or not cdvplugin 

i know i'm new this, can't figure out doing wrong ?

if still error when files in place, make sure relevant source .m files target members of project.

to so, select plugin.m file in xcode , make sure in right inspector pane under target membership checkbox project checked.

i had problem after removing , adding plugin few times.

hint: corresponding plugin.h file lacks syntax color highlighting types declared in cdvplugin classes when plugin not project member (as observed in xcode 5.0).


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -