My project was realized on windows. The build for android worked very well. I then recovered my project on a MacOs to build for IOS, but I encountered an error that I can not understand.
I did not find any similar problems on the forums, and I can not understand if it’s a problem that comes from the code, the packages or the fact of the transfer of windows to MacOS
[17:06:04] ionic-app-script task: "build"
[17:06:04] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at /Users/macos/Documents/HTDOCS/graineDeZele_App-master/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
at step (/Users/macos/Documents/HTDOCS/graineDeZele_App-master/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
at Object.next (/Users/macos/Documents/HTDOCS/graineDeZele_App-master/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
at fulfilled (/Users/macos/Documents/HTDOCS/graineDeZele_App-master/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
{
"name": "graineDeZeleApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "^7.2.12",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "~4.17.0",
"@ionic-native/onesignal": "~4.0.0",
"@ionic-native/photo-library": "^4.18.0",
"@ionic-native/photo-viewer": "^4.18.0",
"@ionic-native/push": "^4.20.0",
"@ionic-native/social-sharing": "^4.18.0",
"@ionic-native/splash-screen": "~4.17.0",
"@ionic-native/status-bar": "~4.17.0",
"@ionic/storage": "2.2.0",
"com-sarriaroman-photoviewer": "1.1.18",
"cordova-android": "7.1.4",
"cordova-ios": "5.0.1",
"cordova-plugin-add-swift-support": "^1.6.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "6.0.1",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.2.5",
"cordova-plugin-photo-library": "2.2.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-socialsharing": "5.4.3",
"cordova-support-google-services": "1.1.0",
"es6-promise-plugin": "4.2.2",
"firebase": "^5.5.9",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"onesignal-cordova-plugin": "2.4.6",
"phonegap-plugin-multidex": "1.0.0",
"phonegap-plugin-push": "2.2.3",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "^3.2.3",
"typescript": "~3.1.1"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"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": {},
"com-sarriaroman-photoviewer": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
},
"cordova-plugin-photo-library": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "To choose photos"
},
"phonegap-plugin-push": {
"SENDER_ID": "87963980685",
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "11.6.2"
},
"onesignal-cordova-plugin": {}
},
"platforms": [
"android"
]
}
}
Thanks for your help