Updating the Cordova plugin leads to a failed plugin

I run Cordova 3.4.1 and decided to update the same plugin that I have, the console. I did it based on the plugin update of April 23, 2014 ( http://cordova.apache.org/news/2014/04/23/plugins.release.html ).

The update is performed first by removing and then adding the plugin back. In other words:

cordova plugin rm org.apache.cordova.console
cordova plugin add org.apache.cordova.console

Then i ran

cordova build

which does a lot of voodoo, after which I compiled and launched the application on iOS through Xcode. The result of this is a failure : every time my code calls console.log, I get this error in the output of the Xcode debugger

CDVPlugin class CDVLogger (pluginName: Console) does not exist.
ERROR: Plugin 'Console' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
 -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "INVALID",
  "Console",
  "logLevel",
  [
    "LOG",
    "text i want to see"
  ]
]

, . ? , ?

FWIW: , cordova platform update ios . , Xcode , ...

+4
1

, , :

Xcode Phonegap Cordova

Target -> Build Phases -> Compile Sources

, CVLogger.m, "".

. ...

+8

Source: https://habr.com/ru/post/1539189/


All Articles