I am trying to add the camera plugin to my cordova project through terminal, but I keep getting the same error no matter where I run cordova plugin add org.apache.cordova.camera
. The error is
'Current working directory is not a Cordova based project'
I am using Cordova version 3.4.1-0.1.0. The documentation is terrible and is giving me no help so far. I have done a similar thing with an android project and that all works fine, this is only happening in iOS.
Is there a way I can manually add the plugins without going through the command line? I found this link that allowed me to download the files for the plugin but I have no idea where they are supposed to go.
The files included in the zip are as follows:
doc (folder)
plugin.xml
src (folder containing the ios folder)
ios (folder)
CDVCamera.h
CDVCamera.m
CDVExif.h
CDVJpegHeaderWriter.h
CDVJpegHeaderWriter.m
www (folder containing js files)
I've been sitting here for a few hours trying to go through lots of terrible documentation and nothing seems to work. Any help would be much appreciated, cheers!