cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xingchen Yu (JIRA)" <>
Subject [jira] [Commented] (CB-5454) Plugin Mapping Issue
Date Fri, 17 Apr 2015 01:15:59 GMT


Xingchen Yu commented on CB-5454:

I'd like to offer a work around for this issue and a bit of insight. What happened here is
that when a source file is added by node-xcode, it adds entries to YourProject.xcodeproj/project.pbxproj.
However when the same project file is updated by Xcode itself (for whatever reason), it rewrites
files entries in a slightly different way that node-xcode did not anticipate. Then upon plugin
uninstall, node-xcode fails to properly remove file entries from project.pbxproj. At this
point, if you open it in Xcode, you should see that plugin source files are still registered
in project structure, but appear in red, because the files they reference to are deleted.
Then upon plugin install, it fails to properly add the file entries due to the prior improper
removal. Now if you open your project in Xcode, you can see that plugin source files are listed
in project structure, however if you navigate to YourProject -> Build Phases -> Compiled
Sources, you should notice that plugin source files are not added there, which means they
are not actually compiled by Xcode.

So the work around is to manually add plugin's *.m source files to Compiled Sources.

> Plugin Mapping Issue
> --------------------
>                 Key: CB-5454
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS, Plugins
>    Affects Versions: 3.1.0
>         Environment: iOS
>            Reporter: Mike Hartington
>            Assignee: Braden Shepherdson
>              Labels: cli, config.xml,, cordova, cordova-cli
>             Fix For: 3.2.0
> Once I've removed a plugin, I'm unable to add any plugins back again. So from the command
> cordova plugin rm org.apache.cordova.device
> cordova plugin add org.apache.cordova.device
> Everything installs properly but once I go into Xcode and run the project, my console
puts out 
> 2013-11-20 14:59:28.301 ProductDemo[65497:a0b] CDVPlugin class CDVStatusBar (pluginName:
StatusBar) does not exist.
> 2013-11-20 14:59:28.302 ProductDemo[65497:a0b] ERROR: Plugin 'StatusBar' not found, or
is not a CDVPlugin. Check your plugin mapping in config.xml.
> 2013-11-20 14:59:28.303 ProductDemo[65497:a0b] -[CDVCommandQueue executePending] [Line
117] FAILED pluginJSON = [
>   "INVALID",
>   "StatusBar",
>   "overlaysWebView",
>   [
>     true
>   ]
> ]
> I've run thought the debugging option and no errors come up so I'm not sure what the
issue is,  but my config.xml is correct and everything is copied over as far as files go.
Anyone have this issue too?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message