Ionic 4 ZBar crashing in ios

I’m using Ionic4 zbar to scan barcode. Every time I try to open the camera my application is crashing.I tried all different iphone devices. My codes works fine on android devices. I’m not sure how to debug this issue.

Ionic:

Ionic CLI : 5.0.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.4.0 @angular-devkit/build-angular : 0.12.4 @angular-devkit/schematics : 7.2.4 @angular/cli : 7.2.4 @ionic/angular-toolkit : 1.4.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 7.1.4, ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 10 other plugins)

Utility:

cordova-res : 0.3.0 native-run : 0.2.2

System:

Android SDK Tools : 26.1.1 (/Users/conagrabrands/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v10.16.0 (/usr/local/bin/node) npm : 6.9.0 OS : macOS Mojave Xcode : Xcode 10.2.1 Build version 10E1001

Expected result is camera should open to scan the barcode.