Sqlcipher integration for cordova ios project issues


I have the licensed plugin for cordova which works for android perfectly. But when i add it to ios it throws error as

Cordova/CDVJSON.h file not found error.

and if i comment the CDVJSON.h import line or do a manual import, it again throws 2 errors as

  1. No visible @interface for CDVPlugin declares the selector initWithWebView
  2. Implicit declaration of function sqlite3_key is invalid in C99.

Please help me.