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

ios build issues... #19

Closed
muthukumarpsl opened this issue Mar 11, 2021 · 1 comment
Closed

ios build issues... #19

muthukumarpsl opened this issue Mar 11, 2021 · 1 comment

Comments

@muthukumarpsl
Copy link

muthukumarpsl commented Mar 11, 2021

.....Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:3:48: error: cannot find type 'CDVPlugin' in scope
@objc(HWPPreviewAnyFile) class PreviewAnyFile: CDVPlugin {
^~~~~~~~~
...../Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:7:28: error: cannot find type 'CDVInvokedUrlCommand' in scope
func preview(_command: CDVInvokedUrlCommand){
^~~~~~~~~~~~~~~~~~~~
.../Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:3:2: error: only classes that inherit from NSObject can be declared @objc
@objc(HWPPreviewAnyFile) class PreviewAnyFile: CDVPlugin {
~^~~~~~~~~~~~~~~~~~~~~~~~
.../Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:106:1: error: cannot declare conformance to 'NSObjectProtocol' in Swift; 'PreviewAnyFile' should inherit 'NSObject' instead
extension PreviewAnyFile: QLPreviewControllerDataSource, QLPreviewControllerDelegate {
^
.../Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:106:1: note: do you want to add protocol stubs?
extension PreviewAnyFile: QLPreviewControllerDataSource, QLPreviewControllerDelegate {
^
.../Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:9:28: error: cannot find 'CDVPluginResult' in scope
var pluginResult = CDVPluginResult(
^~~~~~~~~~~~~~~
/Users/psluser/Desktop/serviceon_code/serviceon_customer/ServiceOn_CustApp/platforms/ios/Serviceon/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:10:21: error: cannot find 'CDVCommandStatus_ERROR' in scope
status: CDVCommandStatus_ERROR
^~~~~~~~~~~~~~~~~~~~~~
/Users/psluser/Desktop/serviceon_code/serviceon_customer/ServiceOn_CustApp/platforms/ios/Serviceon/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:100:28: error: cannot find 'CDVPluginResult' in scope
let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: "CLOSING");
^~~~~~~~~~~~~~~
/Users/psluser/Desktop/serviceon_code/serviceon_customer/ServiceOn_CustApp/platforms/ios/Serviceon/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:100:52: error: cannot find 'CDVCommandStatus_OK' in scope
let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: "CLOSING");
^~~~~~~~~~~~~~~~~~~

warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'OneSignal' from project 'Pods')
warning: AddressBook is deprecated. Consider migrating to Contacts instead. (in target 'Serviceon' from project 'Serviceon')
** BUILD FAILED **



``
in ios folder has only .swift file but xcode required the .m file

@mostafa-mansour1
Copy link
Owner

mostafa-mansour1 commented Mar 11, 2021 via email

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

No branches or pull requests

2 participants