[ 
https://issues.apache.org/jira/browse/CB-12864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kerri Shotts closed CB-12864.
-----------------------------
    Resolution: Not A Bug

Curious --- what had you named the subclass initially?

I should note that you should always name the subclass the same value as 
specified in the <param name="ios-package" ...> tag -- this is what Cordova-ios 
uses to map to the native side of things, so if the subclass isn't named the 
same thing, you'd get an error.

At this poing, I'm closing as "not a bug", since, AFAICT, everything was 
working as designed. We can reopen if there is cause to think that there is an 
underlying bug.

> 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: [email protected]
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to