App capabilities works only in ionic view (IOS)

Hi.
When building an app in ionic pro with production/dev settings to ios the app don’t work well, it crashs.
I’m using the cordova-plugin-barcodescanner and on the click of the call function to open the camera the app fails.

The strange thing its that on ionic view the app works very well.
I’ve generated ad hoc certificate to test too and the same thing happens.

Do i’m forgetting something?

  • The branch used in the ionic view is the same of the build.

Any considerations?
Thanks in advance