[ 
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) <j...@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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to