title: Plugin not found, or is not a CDVPlugin. Check your plugin mapping in config.xml
body: <p>I have declared my plugin file for iOS inside plugin.xml like so:</p>
  
  <pre><code>  &lt;config-file target="config.xml" parent="/*"&gt;
        &lt;feature name="CDVOP"&gt;
            &lt;param name="ios-package" value="CDVOP"/&gt;
        &lt;/feature&gt;
    &lt;/config-file&gt;
  
    &lt;header-file src="src/ios/CDVOP.h" /&gt;
    &lt;source-file src="src/ios/CDVOP.m" /&gt;
  </code></pre>
  
  <p>In the plugin JavaScript file I have this function which I later call from the JavaScript app</p>
  
  <pre><code>showCatPictures: function(interval) {
    exec(null, null, 'CDVOP', 'showCatPictures', [interval]);   
  },
  </code></pre>
  
  <p>I am running the app that uses this plugin from xcode to see the debug output. I get this when I call the <code>showCatPictures</code> function:</p>
  
  <pre><code>OP Cordova Tests[1122:60b] ERROR: Plugin 'CDVOP' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
  2014-02-14 16:23:45.233 OP Cordova Tests[1122:60b] -[CDVCommandQueue executePending] [Line 127] FAILED pluginJSON = [
    "INVALID",
    "CDVOP",
    "showCatPictures",
    [
      30
    ]
  ]
  </code></pre>
  
  <p>I suspect this <em>may</em> have something to do with all the stuff I imported, so here is CDVOP.h</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import &lt;UIKit/UIKit.h&gt;
  #import &lt;Cordova/CDVPlugin.h&gt;
  #import &lt;Cordova/CDV.h&gt;
  #import &lt;Cordova/CDVViewController.h&gt;
  
  //OP SDK
  #import "OpenpeerSDK/HOPStack.h"
  #import "OpenpeerSDK/HOPLogger.h"
  #import "OpenpeerSDK/HOPMediaEngine.h"
  #import "OpenpeerSDK/HOPCache.h"
  #import "OpenpeerSDK/HOPAccount.h"
  #import "OpenpeerSDK/HOPIdentity.h"
  
  @interface CDVOP : CDVPlugin &lt;UIWebViewDelegate&gt; {
      NSString* callbackId;
      UIImageView* peerImageView;
      UIImageView* selfImageView;
  }
  
  @property (nonatomic, copy) NSString* callbackId;
  @property (retain, nonatomic) UIImageView *peerImageView;
  @property (retain, nonatomic) UIImageView *selfImageView;
  
  - (void) authorizeApp:(CDVInvokedUrlCommand*)command;
  - (void) configureApp:(CDVInvokedUrlCommand*)command;
  - (void) getAccountState:(CDVInvokedUrlCommand*)command;
  - (void) startLoginProcess:(CDVInvokedUrlCommand*)command;
  - (void) showCatPictures:(CDVInvokedUrlCommand*)command
  
  @end
  </code></pre>
  
  <p>and this is the top part of CDVOP.m:</p>
  
  <pre><code>#import "CDVOP.h"
  
  @implementation CDVOP
  
  @synthesize webView, selfImageView, peerImageView, callbackId;
  
  -(CDVPlugin*) initWithWebView:(UIWebView*)theWebView
  {
      self = (CDVOP*)[super initWithWebView:theWebView];
      NSLog(@"&gt;&gt;&gt; initializing with cordova webView &lt;&lt;&lt;"); // actually this does not get called!
      return self;
  }
  
  // stress test UIImageViews using a series of cat pictures
  - (void)showCatPictures:(CDVInvokedUrlCommand*)command
  {   
      //initialize and configure the image view
      CGRect selfRect = CGRectMake(0, 0, 100.0, 200.0);
      self.selfImageView = [[UIImageView alloc] initWithFrame:selfRect];
      [self.webView.superview addSubview:self.selfImageView];
  
      // load pictures and start animating
      NSLog(@"displaying cat pictures");
      selfImageView.animationImages = [NSArray arrayWithObjects:
        [UIImage imageNamed:@"1.JPG"], [UIImage imageNamed:@"2.JPG"], [UIImage imageNamed:@"3.JPG"],
        [UIImage imageNamed:@"4.JPG"], [UIImage imageNamed:@"5.JPG"], [UIImage imageNamed:@"6.JPG"],
        [UIImage imageNamed:@"7.JPG"], [UIImage imageNamed:@"8.JPG"], nil];
  
      selfImageView.animationDuration = 0.3;
      [selfImageView startAnimating];
  }
  </code></pre>
  
  <p>Any ideas why the plugin does not seem to be properly initialized and why cant I call its methods with <code>exec</code>?</p>