Closed SimonBrazell closed 5 years ago
Getting the following runtime error when attempting to use this plugin on iOS:
2019-02-10 20:40:15.528046+1100 MyApp[14744:3605329] -[NSConcreteMutableData base64EncodedString]: unrecognized selector sent to instance 0x28329b810 2019-02-10 20:40:15.529459+1100 MyApp[14744:3605329] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData base64EncodedString]: unrecognized selector sent to instance 0x28329b810' *** First throw call stack: (0x1dd71ff50 0x1dc91c284 0x1dd6350e0 0x1dd7259bc 0x1dd727730 0x102935244 0x1029345f0 0x102935e6c 0x20ae022d0 0x20ad0d6ec 0x20ad16b68 0x20ad117ec 0x20ae163c8 0x20b862570 0x20b862200 0x20b864338 0x20b86ca68 0x20b86d074 0x20b86d114 0x1e1dd732c 0x103df01c0 0x103dfd9a8 0x1dd6ae2a4 0x1dd6a8f48 0x1dd6a84b8 0x1df95bbe8 0x20b3dc1b8 0x10292d18c 0x1dd15d050) libc++abi.dylib: terminating with uncaught exception of type NSException
The app loads the file chooser or camera to get a picture as expected, but when a picture is selected the app crashes.
Xcode output:
Here is my environment:
$ ionic info Ionic: ionic (Ionic CLI) : 4.10.2 (/.../.nvm/versions/node/v8.14.0/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.3 @ionic/app-scripts : 3.2.2 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : ios 4.5.5 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 12 other plugins) System: Android SDK Tools : 26.1.1 (/.../Library/Android/sdk/) ios-deploy : 1.9.4 NodeJS : v8.14.0 (/.../.nvm/versions/node/v8.14.0/bin/node) npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 10.1 Build version 10B61
I can confirm that the crash is indeed caused by this plugin as if I sub in the standard Cordova camera plugin the app runs as expected (minus the EXIF data I need of course :-) ).
Just discovered that this was my fault, was using camera.DestinationType.DATA_URI instead of camera.DestinationType.FILE_URI.
camera.DestinationType.DATA_URI
camera.DestinationType.FILE_URI
Cheers!
is it confirmed not to work with DATA_URL ?
DATA_URL
Getting the following runtime error when attempting to use this plugin on iOS:
The app loads the file chooser or camera to get a picture as expected, but when a picture is selected the app crashes.
Xcode output:
Here is my environment:
I can confirm that the crash is indeed caused by this plugin as if I sub in the standard Cordova camera plugin the app runs as expected (minus the EXIF data I need of course :-) ).