CordovaError: Promise rejected with non-error: 'Error code 65 for command:

Hi

I’m working on the build with ionic and I’m faced with this error, but I do not know the solution?

I typed the following command

 ionic cordova build ios -- -- buildFlag="UseModernSystem=0

But I get the following error

CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -workspace,app.xcworkspace,-scheme,app,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone Xʀ,build,CONFIGURATION_BUILD_DIR=/Users/user/DIR/app-name/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/user/DIR/app-name/platforms/ios/build/sharedpch'

thanks

try this:
ionic cordova build ios – --buildFlag="-UseModernBuildSystem=0"

Thanks

I tried already that command but happned error

 Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args:

Hi

  1. Create /[AppNameFolder]/build.json file

  2. Enter the contents of the file as shown below.

{
“ios”: {
“debug”: {
“buildFlag”: [
“-UseModernBuildSystem = 0”
]
},
“release”: {
“buildFlag”: [
“-UseModernBuildSystem = 0”
]
}
}
}

  1. Run the ionic cordova build ios command.

Thank you.

Oh!!!

I don’t make that file, let’s try your advice!!!

thank you!

HI

your adviceto try now, but that err happned,
So any other solutions do you know?

Thank you so much ,this worked.