Closed santoshbadal1111 closed 4 years ago
I didn’t get such error in same version Kindly try with new project
If still exist we can trace it
Regards,
Mostafa Mansour Software Engineer 00971 524988466 0020 1113019196
On 8 Aug 2020, at 10:11 PM, Santosh Badal notifications@github.com wrote:
While building ios app on xcode 11.6 i am getting following error
PreviewAnyFile.swift:3:48: error: use of undeclared type 'CDVPlugin' @objchttps://github.com/objc(HWPPreviewAnyFile) class PreviewAnyFile: CDVPlugin
while same plugin works for android please help.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mostafa-mansour1/previewAnyFile/issues/9, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSFOB7PDLNJHIBKRRSUMOTR7WIOLANCNFSM4PYYT5TQ.
I am trying with different solution but its always stucks on previewanyfile plugin find complete log below
CompileSwift normal x86_64 /Users/tdesai/cagaay/platforms/ios/KĀGAAY\ 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift (in target 'KĀGAAY 2020' from project 'KĀGAAY 2020')
cd /Users/tdesai/cagaay/platforms/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/tdesai/cagaay/platforms/ios/KĀGAAY\ 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift -emit-module-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile\~partial.swiftmodule -emit-module-doc-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile\~partial.swiftdoc -emit-module-source-info-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile\~partial.swiftsourceinfo -serialize-diagnostics-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile.dia -emit-dependencies-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile.d -emit-reference-dependencies-path /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile.swiftdeps -target x86_64-apple-ios11.0-simulator -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk -I /Users/tdesai/cagaay/platforms/ios/build/emulator -F /Users/tdesai/cagaay/platforms/ios/build/emulator -F /Users/tdesai/cagaay/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F /Users/tdesai/cagaay/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -F /Users/tdesai/cagaay/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F /Users/tdesai/cagaay/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -enable-testing -g -module-cache-path /Users/tdesai/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 4 -enforce-exclusivity=checked -O -serialize-debugging-options -Xcc -working-directory -Xcc /Users/tdesai/cagaay/platforms/ios -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/KĀGAAY\ 2020-generated-files.hmap -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/KĀGAAY\ 2020-own-target-headers.hmap -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/KĀGAAY\ 2020-all-target-headers.hmap -Xcc -iquote -Xcc /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/KĀGAAY\ 2020-project-headers.hmap -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Firebase -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCore -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCoreDiagnostics -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstallations -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstanceID -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseMessaging -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleDataTransport -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleUtilities -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/PromisesObjC -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Protobuf -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/XCDYouTubeKit -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/nanopb -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Firebase/CoreOnly/Sources -Xcc -I/Sources/FBLPromises/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Firebase -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCore -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCoreDiagnostics -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstallations -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstanceID -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseMessaging -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleDataTransport -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleUtilities -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/PromisesObjC -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Protobuf -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/XCDYouTubeKit -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/nanopb -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Firebase -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCore -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseCoreDiagnostics -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstallations -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseInstanceID -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/FirebaseMessaging -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleDataTransport -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/GoogleUtilities -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/PromisesObjC -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/Protobuf -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/XCDYouTubeKit -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Headers/Public/nanopb -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator/usr/local/lib/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/build/emulator -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Firebase/CoreOnly/Sources -Xcc -I/Sources/FBLPromises/include -Xcc -I/Users/tdesai/cagaay/platforms/ios/Pods/Firebase/CoreOnly/Sources -Xcc -I/Sources/FBLPromises/include -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/DerivedSources-normal/x86_64 -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/DerivedSources/x86_64 -Xcc -I/Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/DerivedSources -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -Xcc -DCOCOAPODS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -parse-as-library -module-name KĀGAAY_2020 -o /Users/tdesai/Library/Developer/Xcode/DerivedData/KĀGAAY_2020-fprcfcdnraealkgyvfwpufnjrcpj/Build/Intermediates.noindex/KĀGAAY\ 2020.build/Debug-iphonesimulator/KĀGAAY\ 2020.build/Objects-normal/x86_64/PreviewAnyFile.o
/Users/tdesai/cagaay/platforms/ios/KĀGAAY 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:3:23: error: use of undeclared type 'CDVPlugin'
class PreviewAnyFile: CDVPlugin {
^~~~~
/Users/tdesai/cagaay/platforms/ios/KĀGAAY 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:6:28: error: use of undeclared type 'CDVInvokedUrlCommand'
func preview(_command: CDVInvokedUrlCommand){
^~~~~~~~
/Users/tdesai/cagaay/platforms/ios/KĀGAAY 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:8:28: error: use of unresolved identifier 'CDVPluginResult'
var pluginResult = CDVPluginResult(
^~~~~~~
/Users/tdesai/cagaay/platforms/ios/KĀGAAY 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift:9:21: error: use of unresolved identifier 'CDVCommandStatus_ERROR'
status: CDVCommandStatus_ERROR
^~~~~~
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.6.99. (in target 'nanopb' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.6.99. (in target 'Protobuf' from project 'Pods') BUILD FAILED
The following build commands failed: CompileSwift normal x86_64 /Users/tdesai/cagaay/platforms/ios/KĀGAAY\ 2020/Plugins/cordova-plugin-preview-any-file/PreviewAnyFile.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 65.
I would be really grateful if you can help me tracing the error using above log. our ios deployment is stuck due to this. i am trying with blank new project and will update you if it works but please look into above log if you can suggest where things are going wrong.
I will check but please update me if it work with new project,
Regards,
Mostafa Mansour Software Engineer 00971 524988466 0020 1113019196
On 9 Aug 2020, at 5:53 PM, Santosh Badal notifications@github.com wrote:
I would be really grateful if you can help me tracing the error using above log. our ios deployment is stuck due to this. i am trying with blank new project and will update you if it works but please look into above log if you can suggest where things are going wrong.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/mostafa-mansour1/previewAnyFile/issues/9#issuecomment-671054728, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABSFOBZ62LMMCH3P6UGW7Z3R72S53ANCNFSM4PYYT5TQ.
clone this stand-alone project https://github.com/mostafa-mansour1/testPreviewAnyFile and check just clone then add ios platform and build
I have tried with new ionic sample conference app and added preview any file plugin in that project and build it for ios and it ran without any error so it must not be plugin's error. Is there any recommendation's from your side by looking at my error log as my project has stuck on that. I must say thank you for your quick response. I have added razorpay plugin in the same project and as soon as that plugin got added preview any file plugin again started giving same error mentioned above in this new project. When i checked in details i could see one new thing that is razorpay use cordova-plugin-cocoapod-support and when this plugin is used preview any file plugin starts throwing errors.
can you paste the package.json for your project and ionic sample conference app
can you try to add this plugin also
https://www.npmjs.com/package/cordova-plugin-add-swift-support
before adding it, kindly remove the preview-any-file plugin
then add cordova-plugin-add-swift-support
then open your Xcode project and compile and run your project
if everything is fine now add the plugin again
As you suggested i did installed swift support plugin by removing preview any file plugin and the adding it still results in same error, here is package.json file
{ "name": "ionic-conference-app", "version": "0.0.0", "description": "Ionic Conference App", "author": "Ionic Team hi@ionicframework.com", "license": "Apache-2.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "postinstall": "webdriver-manager update --standalone false --gecko false" }, "repository": { "type": "git", "url": "https://github.com/ionic-team/ionic-conference-app.git" }, "private": true, "dependencies": { "@angular/common": "^10.0.8", "@angular/core": "^10.0.8", "@angular/forms": "^10.0.8", "@angular/platform-browser": "^10.0.8", "@angular/platform-browser-dynamic": "^10.0.8", "@angular/pwa": "^0.1000.5", "@angular/router": "^10.0.8", "@angular/service-worker": "^10.0.8", "@ionic-native/core": "^5.27.0", "@ionic-native/in-app-browser": "^5.27.0", "@ionic-native/ionic-webview": "^5.27.0", "@ionic-native/preview-any-file": "^5.27.0", "@ionic-native/splash-screen": "^5.27.0", "@ionic-native/status-bar": "^5.27.0", "@ionic/angular": "^5.3.1", "@ionic/storage": "^2.1.3", "cordova-plugin-add-swift-support": "^2.0.2", "cordova-plugin-device": "^2.0.3", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-splashscreen": "^5.0.3", "cordova-plugin-statusbar": "^2.4.3", "cordova-plugin-whitelist": "^1.3.4", "core-js": "^3.6.4", "rxjs": "^6.5.4", "sw-toolbox": "3.6.0", "tslib": "^1.10.0", "zone.js": "~0.10.3" }, "devDependencies": { "@angular-devkit/architect": "^0.1000.5", "@angular-devkit/build-angular": "^0.1000.5", "@angular-devkit/core": "^10.0.5", "@angular-devkit/schematics": "^10.0.5", "@angular/cli": "^10.0.5", "@angular/compiler": "^10.0.8", "@angular/compiler-cli": "^10.0.8", "@angular/language-service": "^10.0.8", "@ionic/angular-toolkit": "^2.3.0", "@ionic/lab": "^2.0.19", "@types/jasmine": "3.4.6", "@types/jasminewd2": "2.0.8", "@types/node": "^12.12.26", "codelyzer": "^5.2.1", "cordova-ios": "^6.1.0", "cordova-plugin-inappbrowser": "^4.0.0", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-preview-any-file": "^0.1.6", "jasmine-core": "^3.5.0", "jasmine-spec-reporter": "4.2.1", "karma": "4.4.1", "karma-chrome-launcher": "^3.1.0", "karma-coverage-istanbul-reporter": "2.1.1", "karma-jasmine": "2.0.1", "karma-jasmine-html-reporter": "1.4.2", "protractor": "^5.4.3", "puppeteer": "^1.20.0", "ts-node": "8.5.0", "tslint": "^5.20.1", "typescript": "~3.9.7" }, "cordova": { "platforms": [ "ios" ], "plugins": { "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-whitelist": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-preview-any-file": {} } } }
kindly add yours also (package.json) if you can remove the platform and add it again in a new project if u can upload your project so I can debug from my side
@mostafa-mansour1 Let me know if by any chance you got some time to look into above given git repository of my conference app.
For you information below is the package.json file of my project.
{ "name": "kagaay", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve --source-map=false", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "resources": "cordova-res ios && cordova-res android && node scripts/resources.js" }, "private": true, "dependencies": { "@angular/animations": "^10.0.2", "@angular/common": "^10.0.2", "@angular/core": "^10.0.2", "@angular/fire": "^5.2.3", "@angular/forms": "^10.0.2", "@angular/platform-browser": "^10.0.2", "@angular/platform-browser-dynamic": "^10.0.2", "@angular/router": "^10.0.2", "@capacitor/android": "^2.2.1", "@capacitor/core": "2.2.0", "@capacitor/ios": "^2.2.1", "@ionic-native/app-version": "^5.27.0", "@ionic-native/call-number": "^5.27.0", "@ionic-native/camera": "^5.27.0", "@ionic-native/clipboard": "^5.27.0", "@ionic-native/core": "^5.27.0", "@ionic-native/crop": "^5.27.0", "@ionic-native/device": "^5.27.0", "@ionic-native/fcm": "^5.27.0", "@ionic-native/file": "^5.27.0", "@ionic-native/file-transfer": "^5.27.0", "@ionic-native/image-picker": "^5.27.0", "@ionic-native/in-app-browser": "^5.27.0", "@ionic-native/preview-any-file": "^5.27.0", "@ionic-native/social-sharing": "^5.27.0", "@ionic-native/splash-screen": "^5.27.0", "@ionic-native/status-bar": "^5.27.0", "@ionic-native/youtube-video-player": "^5.27.0", "@ionic/angular": "^5.2.3", "@ionic/angular-toolkit": "^2.2.0", "@logisticinfotech/ionic4-datepicker": "^1.4.3", "@ngx-translate/core": "^11.0.1", "@ngx-translate/http-loader": "^4.0.0", "@schematics/angular": "^9.1.8", "call-number": "^1.0.1", "com.razorpay.cordova": "git+https://github.com/razorpay/razorpay-cordova.git", "cordova-android": "^8.1.0", "cordova-clipboard": "^1.3.0", "cordova-plugin-androidx": "^2.0.0", "cordova-plugin-androidx-adapter": "^1.1.1", "cordova-plugin-app-version": "^0.1.9", "cordova-plugin-camera": "^4.1.0", "cordova-plugin-crop": "^0.4.0", "cordova-plugin-fcm-with-dependecy-updated": "^6.4.3", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-inappbrowser": "^4.0.0", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-preview-any-file": "^0.1.6", "cordova-plugin-telerik-imagepicker": "^2.3.3", "cordova-plugin-x-socialsharing": "^5.6.8", "cordova-plugin-youtube-video-player": "^2.4.0", "core-js": "^2.6.11", "es6-promise-plugin": "^4.2.2", "firebase": "^7.15.5", "google-libphonenumber": "^3.2.6", "hammerjs": "^2.0.8", "ionic-selectable": "^4.7.1", "jetifier": "^1.6.6", "jquery": "^3.5.1", "moment": "^2.27.0", "mx.ferreyra.callnumber": "0.0.2", "rxjs": "^6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/architect": "^0.901.10", "@angular-devkit/build-angular": "^0.1000.1", "@angular-devkit/core": "^10.0.1", "@angular-devkit/schematics": "^10.0.1", "@angular/cli": "^10.0.3", "@angular/compiler": "^10.0.2", "@angular/compiler-cli": "^10.0.2", "@angular/language-service": "^10.0.2", "@angularclass/hmr": "^2.1.3", "@angularclass/hmr-loader": "^3.0.4", "@capacitor/cli": "2.2.0", "@nativescript/schematics": "^9.0.0", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.12.47", "codelyzer": "^5.1.2", "cordova-plugin-device": "^2.0.2", "cordova-plugin-ionic": "5.4.3", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-splashscreen": "^5.0.4", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-res": "^0.15.1", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.0.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~3.3.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~7.0.0", "tslint": "~6.1.0", "typescript": "^3.9.6" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-device": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-ionic-keyboard": {}, "com.razorpay.cordova": {}, "mx.ferreyra.callnumber": {}, "cordova-plugin-youtube-video-player": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-preview-any-file": {}, "cordova-plugin-androidx-adapter": {}, "cordova-plugin-fcm-with-dependecy-updated": { "FCM_VERSION": "19.0.0", "GRADLE_TOOLS_VERSION": "3.5.3", "GOOGLE_SERVICES_VERSION": "4.3.3", "SUPPORT_LIBRARY_VERSION": "28.0.0", "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher" }, "cordova-plugin-x-socialsharing": { "ANDROID_SUPPORT_V4_VERSION": "24.1.1+", "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.", "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly." }, "cordova-plugin-telerik-imagepicker": {}, "cordova-plugin-camera": {}, "cordova-clipboard": {}, "cordova-plugin-androidx": {}, "cordova-plugin-crop": {}, "cordova-plugin-file": {}, "cordova-plugin-file-transfer": {}, "cordova-plugin-ionic-webview": {}, "cordova-plugin-app-version": {} }, "platforms": [ "android" ] }, "postinstall": "jetifier" }
Another observation is when i open platforms/ios/myproject/plugins/cordova-plugin-preview-any-file folder i can see only one file i.e PreviewAnyFile.swift while in all rest of the plugins contains .h and .m files please help.
the plugin is written in swift language so it has one file only,
all you need is to add the support swift language to your project
I installed the app https://github.com/santoshbadal1111/uniapp and I noted the issue as u explained
I added the
then I found your issue
so I cleaned the project and I repeat in this order
when you add support swift plugin it adds some headers, so it needs to be added first time
Thank you!! :) It would be great if you can push your code to git repo so that i can check. Or if possible i would love to have your platforms/ios folder for uniapp project.
this is my history
527 git clone https://github.com/santoshbadal1111/uniapp.git
528 cd uniapp
529 ionic cordova plugin rm com.razorpay.cordova cordova-plugin-cocoapod-support cordova-plugin-add-swift-support
530 ionic repair
531 ionic cordova plugin add cordova-plugin-add-swift-support --save
532 open platforms/ios
X 533 open .
534 open platforms/ios
535 ionic cordova build ios
536 ionic cordova plugin add https://github.com/razorpay/razorpay-cordova.git --save --debug --verbose
537 ionic cordova build ios
538 history
this is my ios project https://drive.google.com/file/d/10AKTY2JfgxBVciTPQZdz9-oe3KO4dxFH/view?usp=sharing
Thank you so much!! You are awesome. 👍
While building ios app on xcode 11.6 i am getting following error
PreviewAnyFile.swift:3:48: error: use of undeclared type 'CDVPlugin' @objc(HWPPreviewAnyFile) class PreviewAnyFile: CDVPlugin
while same plugin works for android please help.