Problem building App with Cordova

I was wondering what the issue is with my setup because i am unable to neither build android nor ios apps.
I have a windows 10 workstation where i can build the android fin via
ionic cordova build android
if i use the same command or ios my build request fails on my Apple Mac. It always fails

Generating ES5 bundles for differential loading…
An unhandled exception occurred: Call retries were exceeded
See “/private/tmp/ng-zvJMkB/angular-errors.log” for further details.
[ERROR] An error occurred while running subprocess ng.

    ng run app:ionic-cordova-build --platform=android exited with exit code 127.

and the log file does not provide lots of info

[error] Error: Call retries were exceeded
at ChildProcessWorker.initialize (/Users/admin/Documents/GitHub/farm-app-ionic/node_modules/jest-worker/build/workers/ChildProcessWorker.js:230:21)
at ChildProcessWorker._onExit (/Users/admin/Documents/GitHub/farm-app-ionic/node_modules/jest-worker/build/workers/ChildProcessWorker.js:307:12)
at ChildProcess.emit (events.js:182:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)

so i am wondering what the reason and how to fix

I suspect out-of-date Angular build tools. Can you post the contents of package.json?

Here is my Package.json

{
“name”: “farm-app-ionic-5”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “https://ionicframework.com/”,
“scripts”: {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”
},
“private”: true,
“dependencies”: {
@agm/core”: “^1.1.0”,
@angular/animations”: “^9.1.11”,
@angular/common”: “~9.1.6”,
@angular/core”: “~9.1.6”,
@angular/forms”: “~9.1.6”,
@angular/platform-browser”: “~9.1.6”,
@angular/platform-browser-dynamic”: “~9.1.6”,
@angular/router”: “~9.1.6”,
@ionic-native/call-number”: “^5.28.0”,
@ionic-native/core”: “^5.0.7”,
@ionic-native/geolocation”: “^5.27.0”,
@ionic-native/splash-screen”: “^5.0.0”,
@ionic-native/status-bar”: “^5.0.0”,
@ionic/angular”: “^5.0.0”,
@ionic/storage”: “^2.2.0”,
@ngx-translate/core”: “^12.1.2”,
@ngx-translate/http-loader”: “^5.0.0”,
“cordova-ios”: “6.1.0”,
“cordova-plugin-device”: “2.0.2”,
“cordova-plugin-geolocation”: “^4.0.2”,
“cordova-plugin-ionic-keyboard”: “^2.0.5”,
“cordova-plugin-ionic-webview”: “^4.0.0”,
“cordova-plugin-splashscreen”: “5.0.2”,
“cordova-plugin-statusbar”: “2.4.2”,
“cordova-plugin-whitelist”: “1.3.3”,
“cordova-sqlite-storage”: “^5.0.1”,
“hammerjs”: “^2.0.8”,
“igniteui-angular”: “^9.1.8”,
“jszip”: “^3.3.0”,
“mx.ferreyra.callnumber”: “0.0.2”,
“resize-observer-polyfill”: “^1.5.1”,
“rxjs”: “~6.5.1”,
“tslib”: “^1.10.0”,
“web-animations-js”: “^2.3.2”,
“zone.js”: “~0.10.2”
},
“devDependencies”: {
@angular-devkit/build-angular”: “~0.901.5”,
@angular/cli”: “~9.1.5”,
@angular/compiler”: “~9.1.6”,
@angular/compiler-cli”: “~9.1.6”,
@angular/language-service”: “~9.1.6”,
@igniteui/angular-schematics”: “~9.1.510”,
@ionic/angular-toolkit”: “^2.1.1”,
@types/hammerjs”: “^2.0.36”,
@types/jasmine”: “~3.5.0”,
@types/jasminewd2”: “~2.0.3”,
@types/jszip”: “^3.1.7”,
@types/node”: “^12.11.1”,
“call-number”: “^1.0.1”,
“codelyzer”: “^5.1.2”,
“cordova-android”: “7.1.1”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-ionic-keyboard”: “^2.2.0”,
“cordova-plugin-ionic-webview”: “^4.2.1”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“jasmine-core”: “~3.5.0”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “~5.0.0”,
“karma-chrome-launcher”: “~3.1.0”,
“karma-coverage-istanbul-reporter”: “~2.1.0”,
“karma-jasmine”: “~3.0.1”,
“karma-jasmine-html-reporter”: “^1.4.2”,
“protractor”: “~5.4.3”,
“ts-node”: “~8.3.0”,
“tslint”: “~6.1.0”,
“typescript”: “~3.8.3”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-sqlite-storage”: {},
“cordova-plugin-geolocation”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {
“ANDROID_SUPPORT_ANNOTATIONS_VERSION”: “27.+”
},
“cordova-plugin-ionic-keyboard”: {},
“mx.ferreyra.callnumber”: {},
“call-number”: {}
},
“platforms”: [
“android”,
“ios”
]
}
}

The good news is that I have a strong suspect. The bad news is that it’s likely a critical part of your app. Is there any way you can try eliminating all dependencies on IgniteUI?

i removed the code from app as well as removed it from the package.json but still get the sam issue that it times out on the ES5 Bundle Generation. Also i don’t get this issue with same code on a windows when i build android, cant test IOS since that has to be done on MAC

Alexs-MacBook-Pro:farm-app-ionic admin$ sudo ionic cordova build ios --prod --verbose
ionic:lib Terminal info: { ci: false, shell: ‘/bin/sh’, tty: true, windows: false } +0ms
ionic:lib CLI global options: { _: [ ‘cordova’, ‘build’, ‘ios’ ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, prod: true, project: null, ‘–’: } +4ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { configPath: ‘/Users/admin/Documents/GitHub/farm-app-ionic/ionic.config.json’, errors: , context: ‘app’, type: ‘angular’ } +1ms
ionic Context: { binPath: ‘/usr/local/lib/node_modules/@ionic/cli/bin/ionic’, libPath: ‘/usr/local/lib/node_modules/@ionic/cli’, execPath: ‘/Users/admin/Documents/GitHub/farm-app-ionic’, version: ‘6.11.0’ } +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: ‘/Users/admin/Documents/GitHub/farm-app-ionic/config.xml’, package.json: ‘/Users/admin/Documents/GitHub/farm-app-ionic/package.json’) +0ms
ionic:lib:build build options: { ‘–’: ,
ionic:lib:build engine: ‘cordova’,
ionic:lib:build platform: ‘ios’,
ionic:lib:build project: ‘app’,
ionic:lib:build verbose: false,
ionic:lib:build configuration: ‘production’,
ionic:lib:build sourcemaps: undefined,
ionic:lib:build cordovaAssets: true,
ionic:lib:build watch: undefined,
ionic:lib:build type: ‘angular’ } +0ms
ionic:lib:telemetry Sending telemetry for command: ‘ionic cordova build’ [ ‘ios’, ‘–prod’, ‘–verbose’, ‘–interactive’, ‘–color’ ] +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:build Looking for ionic:build npm script. +7ms

ng run app:ionic-cordova-build:production --platform=ios
ng:analytics getGlobalAnalytics +0ms
ng:analytics Client Analytics config found: false +85ms
ng:analytics Analytics disabled. Ignoring all analytics. +0ms
ng:analytics getSharedAnalytics +1ms
25% building 103/104 modules 1 active …b/farm-app-ionic/node_modules/sass-loader/dist/cjs.js??ref–13-3!/Users/admin/Documents/GitHub/farm-app-ionic/src/global.scss snapdragon:compiler initializing /Users/admin/Documents/GitHub/farm-app-ionic/node_modules/snapdragon/lib/compiler.js +0ms
snapdragon:parser initializing /Users/admin/Documents/GitHub/farm-app-ionic/node_modules/snapdragon/lib/parser.js +1ms
snapdragon:compiler initializing /Users/admin/Documents/GitHub/farm-app-ionic/node_modules/snapdragon/lib/compiler.js +6ms
snapdragon:parser initializing /Users/admin/Documents/GitHub/farm-app-ionic/node_modules/snapdragon/lib/parser.js +0ms
Generating ES5 bundles for differential loading…
An unhandled exception occurred: Call retries were exceeded
See “/private/tmp/ng-HjD0X7/angular-errors.log” for further details.
[ERROR] An error occurred while running subprocess ng.

    ng run app:ionic-cordova-build:production --platform=ios exited with exit code 127.
    
    Re-running this command with the --verbose flag may provide more information.

ionic:utils-process onBeforeExit handler: ‘process.exit’ received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +0ms
ionic:utils-process processExit: exiting (exit code: 127) +26ms

Hmm, well, the error message changed, which I guess is progress. You may want to check tsconfig.json and this thread.

Yes the tsconfig.json did the trick, i was able to compile with ignite and without
Thanks