Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined type when using Swift v5 #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants