title: Ionic3 error on build ios Promise rejected with non-error: 'Error code 65
body: <p>I am trying to create an ipa file but I have this unreadable error
  when I run this command line on my Mac</p>
  
  <pre><code>ionic cordova build ios --prod --release
  </code></pre>
  
  <blockquote>
    <p>CordovaError: <strong>Promise rejected with non-error: 'Error code 65 for
    command:</strong> xcodebuild with args:
    -exportArchive,-archivePath,MyApp.xcarchive,-exportOptionsPlist,/Users/FSE/myApp04/platforms/ios/exportOptions.plist,-exportPath,/Users/FSE/myApp04/platforms/ios/build/device'
        at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
        at process.internalTickCallback (internal/process/next_tick.js:77:7)</p>
  </blockquote>
  
  <p>Ionic:</p>
  
  <pre><code>ionic (Ionic CLI)  : 4.3.0 (/usr/local/lib/node_modules/ionic)
  Ionic Framework    : ionic-angular 3.9.2
  @ionic/app-scripts : 3.2.0
  </code></pre>
  
  <p>Cordova:</p>
  
  <pre><code>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 2.2.0, (and 4 other plugins)
  </code></pre>
  
  <p>System:</p>
  
  <pre><code>ios-deploy : 1.9.4
  NodeJS     : v11.0.0 (/usr/local/bin/node)
  npm        : 6.4.1
  OS         : macOS
  Xcode      : Xcode 10.1 Build version 10B61
  </code></pre>