Ionic ios build fails, error archive not found : Error code 65 for command: xcodebuild with args
If you are working on ionic app, and you are trying to create iOS build then usually we use the following command: ionic cordova build ios OR ionic cordova build ios --device --prod --release while creating build if you get following error: ✖ cordova build ios - failed! [ ERROR ] An error occurred while running cordova build ios (exit code 1): error: archive not found at path '/Users/work/MyApp/platforms/ios/MyAppp.xcarchive' ** EXPORT FAILED ** CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: Then You have to use the following command: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0" if this won't work then you can update and or create a build.json file. { "ios" : { "release" : { ..., "buildFlag" : [ ...