为iOS构建时如何解决错误?

时间:2019-05-24 15:44:20

标签: ionic-framework

我的项目在Windows上实现。 android的构建效果很好。然后,我在MacOS上恢复了要为IOS构建的项目,但是遇到了我无法理解的错误。

我在论坛上没有发现任何类似的问题,并且我无法理解这是源于代码,软件包还是将Windows转移到MacOS的事实

我使用Ionic 3

[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"
    ]
  }
}

感谢您的帮助

0 个答案:

没有答案
相关问题