Error code 65 for command: xcodebuild building Ionic3 app for iOs

building an Ionic3 app on iOS I’ve this error:


The following build commands failed:
	CompileC /var/root/Library/Developer/Xcode/DerivedData/LibApp_Assistant-elxtqmfxxzicbsgyrbocrztpflkc/Build/Intermediates/LibApp\\ LibApp\ Assistant/Plugins/phonegap-plugin-barcodescanner/ normal x86_64 objective-c++
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/users/claudio/Workspace/Ionic3/LibAppassistant/ionic/platforms/ios/cordova/build-debug.xcconfig,-workspace,LibApp Assistant.xcworkspace,-scheme,LibApp Assistant,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/users/claudio/Workspace/Ionic3/LibAppassistant/ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/users/claudio/Workspace/Ionic3/LibAppassistant/ionic/platforms/ios/build/sharedpch'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
[ERROR] An error occurred while running subprocess cordova.
        cordova build ios exited with exit code 1
        Re-running this command with the --verbose flag may provide more information.

This is the output of the ionic info command:

sh-3.2# ionic info

   ionic (Ionic CLI)  : 4.10.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.2

   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 7 other plugins)

   ios-sim : 5.0.4
   NodeJS  : v11.8.0 (/usr/local/bin/node)
   npm     : 6.7.0
   OS      : OS X El Capitan
   Xcode   : Xcode 8.1 Build version 8B62

These are the cordova plugin installed:

cordova plugin ls
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-document-viewer 0.9.10 "SitewaertsDocumentViewer"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-barcodescanner 8.0.1 "BarcodeScanner"

What could be the problem?

I’ve already tried to remove and add again the ios platform,

Thank you very much


Update, removing the cordova plugin phonegap-plugin-barcodescanner the build succedeed.
But I need this plugin, so I’m looking for the reason why this plugin doesn’t let me to build the app on iOS.