cordova-plugin-mediaPicker icon indicating copy to clipboard operation
cordova-plugin-mediaPicker copied to clipboard

XCode 10.3 Error: Property 'modalInPresentation' not found

Open ehdez82 opened this issue 5 years ago • 2 comments

Hi, I am using the latest version of the plugin and I have a build error in IOS.

The XCode error is as follows: cordova-plugin-mediapicker-dmcsdk/MediaPicker.m:40:13: Property 'modalInPresentation' not found on object of type 'DmcPickerViewController *'.

Please your help with this error. Thank you

Ionic:

Ionic CLI : 5.4.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.9.1 @angular-devkit/build-angular : 0.801.3 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.1.3 @ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 9.0.0 ([email protected]) Cordova Platforms : ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 24 other plugins)

Utility:

cordova-res : 0.6.0 (update available: 0.8.1) native-run : not installed

System:

ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v12.10.0 (/usr/local/Cellar/node/12.10.0/bin/node) npm : 6.11.3 OS : macOS Mojave Xcode : Xcode 10.3 Build version 10G8

ehdez82 avatar Jan 23 '20 15:01 ehdez82

Please any help with this error?

ehdez82 avatar Jan 27 '20 15:01 ehdez82

I think this error might be due to this commit: https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/ae542426dd8ffeb1c633a3d9d2abdfe5c253d5bd#diff-b6864d7a2fd6a1ac61b1148f96850f58

I recently had a lot of errors on iOS when I used the latest version. I reverted back to an older commit from October 11 and it seems to work for me. If it helps, you can read this to see how to revert to older commit until someone fixes the latest version of this plugin which is causing different problems in iOS. More info: https://github.com/DmcSDK/cordova-plugin-mediaPicker/issues/107#issuecomment-590331579

Mr-Anonymous avatar Feb 26 '20 15:02 Mr-Anonymous