[
https://issues.apache.org/jira/browse/CB-13824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336560#comment-16336560
]
ASF GitHub Bot commented on CB-13824:
-------------------------------------
albertolalama opened a new pull request #353: CB-13824: (ios) Swift 4 support
URL: https://github.com/apache/cordova-ios/pull/353
### Platforms affected
iOS
### What does this PR do?
Fixes a bug that prevents (Swift) plugins from being instantiated when
running in Xcode 9/Swift 4.
### What testing has been done on this change?
Local verification with Xcode 9.2.
### Checklist
- [X] [Reported an issue](http://cordova.apache.org/contribute/issues.html)
in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [ ] Added automated test coverage as appropriate for this change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> (Swift 4) Plugin class not found
> ---------------------------------
>
> Key: CB-13824
> URL: https://issues.apache.org/jira/browse/CB-13824
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-ios, cordova-osx
> Reporter: Alberto Lalama
> Assignee: Tobias Bocanegra
> Priority: Minor
>
> After upgrading to Xcode 9.2 (Swift 4), some plugins were not found. Plugin
> method execution fails with the following message: "CDVPlugin class X
> (pluginName: Y) does not exist".
> Closer inspection reveals that NSClassFromString returns nil for plugins
> implemented in Swift. Prefixing the class with the module name fixes the
> issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]