Skip to content

Conversation

@Ciel1412
Copy link

@Ciel1412 Ciel1412 commented Aug 4, 2020

Added type "[String: Any]" to variable "result".

Added type "[String: Any]" to variable "result".
@hvaughan3
Copy link

This fixed all of the build errors we started getting after switching to Swift 5 and updating to the latest Cordova versions:

.../Plugins/cordova-plugin-chooser/Chooser.swift:11:17: error: use of undeclared type 'CDVPlugin'

.../Plugins/cordova-plugin-chooser/Chooser.swift:89:25: error: use of undeclared type 'CDVInvokedUrlCommand'

.../Plugins/cordova-plugin-chooser/Chooser.swift:132:42: error: use of undeclared type 'CDVCommandStatus'

.../Plugins/cordova-plugin-chooser/Chooser.swift:10:2: error: only classes that inherit from NSObject can be declared @objc

.../Plugins/cordova-plugin-chooser/Chooser.swift:153:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'Chooser' should inherit 'NSObject' instead

.../Plugins/cordova-plugin-chooser/Chooser.swift:153:1: note: do you want to add protocol stubs?

.../Plugins/cordova-plugin-chooser/Chooser.swift:18:8: error: value of type 'Chooser' has no member 'viewController'

.../Plugins/cordova-plugin-chooser/Chooser.swift:136:23: error: use of unresolved identifier 'CDVPluginResult'

.../Plugins/cordova-plugin-chooser/Chooser.swift:149:22: error: use of unresolved identifier 'CDVCommandStatus_ERROR'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants