Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic3 error on build ios Promise rejected with non-error: 'Error code 65

I am trying to create an ipa file but I have this unreadable error when I run this command line on my Mac

ionic cordova build ios --prod --release

CordovaError: Promise rejected with non-error: 'Error code 65 for command: 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)

Ionic:

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

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
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)

System:

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
like image 236
Gelso77 Avatar asked Nov 04 '18 16:11

Gelso77


1 Answers

I've solved it like this

ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
like image 115
Gelso77 Avatar answered Nov 15 '22 06:11

Gelso77