akofman / cordova-plugin-add-swift-support

:hammer: Swiftify your Cordova app !
MIT License
117 stars 110 forks source link

swift3 required me to explicitly expose plugin method #23

Closed mixersoft closed 7 years ago

mixersoft commented 7 years ago

I'm not sure if this is fixed here or elsewhere, but it was a problem.

I followed the howto at this link: http://moduscreate.com/writing-a-cordova-plugin-in-swift-for-ios/

I got an error that said the plugin method was not found

Then I read the comments, and it solved my problem.

http://disq.us/p/1cc487t

@objc(echo:) func echo(command: CDVInvokedUrlCommand) {
...
}
akofman commented 7 years ago

Hmm, did you tried the last version of this plugin ? I think it should be solved.