You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Gary N Griswold (JIRA)" <ji...@apache.org> on 2017/05/30 17:16:04 UTC
[jira] [Updated] (CB-12864) Plugin 'xxxxx' is not found, or is not
a CDVPlugin
[ https://issues.apache.org/jira/browse/CB-12864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary N Griswold updated CB-12864:
---------------------------------
Kerri,
If it is not a bug, then the constraint should probably be mentioned in the documentation. The following fragment of plugin.xml clearly permits the CDVPlugin subclass from being given a different name than the external name of the plugin
Gary
Sent from my iPhone
On May 30, 2017, at 12:51 PM, Kerri Shotts (JIRA) <ji...@apache.org> wrote:
> Plugin 'xxxxx' is not found, or is not a CDVPlugin
> --------------------------------------------------
>
> Key: CB-12864
> URL: https://issues.apache.org/jira/browse/CB-12864
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-ios
> Affects Versions: cordova@7.0.0
> Environment: Xcode 8.3.2 and cordova iOS 4.4.0
> Reporter: Gary N Griswold
>
> I wrote a plugin in which the name of the plugin and the name of the www/XXX.js file were the same, but I named the name of the CDVPlugin subclass a different name. Doing this caused the error that the linker did not include the CDVPlugin subclass. The error was "Plugin 'xxxxx' is not found, or is not a CDVPlugin"
> The problem was fixed by changing the name of the CDVPlugin subclass to the same name as the Plugin and the www/XXX.js file.
> The following are relevant fragments from the plugin.xml file:
> <name>AWS</name>
> <js-module name="AWS" src="www/AWS.js">
> <clobbers target="AWS" />
> </js-module>
> <platform name="ios">
> <config-file target="config.xml" parent="/*">
> <feature name="AWS">
> <param name="ios-package" value="AWSPlugin" />
> </feature>
> </config-file>
> <source-file src="src/ios/AWSPlugin.swift" />
> </platform>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org