Ionic cordova resources --force not working

#1

On add android/iOS platform or run ionic cordova resources --force this not is completed, always continue stopped in Generating platform resources step.

I verify that and in same times this generate 503 error on api call (https://res.ionic.io/api/v1/transform).

I check the ionic status (https://status.ionicframework.com/) but in there, all system is normal operational.

EDIT

My ionic info:

Ionic:

   ionic (Ionic CLI)  : 4.0.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0

System:

   NodeJS : v10.6.0 (/usr/local/bin/node)
   npm    : 6.1.0
   OS     : macOS High Sierra
   Xcode  : Xcode 9.2 Build version 9C40b

My package.json:

"dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@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.10.1",
    "@ionic-native/header-color": "^4.10.1",
    "@ionic-native/local-notifications": "^4.10.1",
    "@ionic-native/qr-scanner": "^4.10.1",
    "@ionic-native/social-sharing": "^4.10.1",
    "@ionic-native/splash-screen": "^4.10.1",
    "@ionic-native/status-bar": "^4.10.1",
    "@ionic/cli-utils": "^2.0.1",
    "@ionic/storage": "2.1.3",
    "cordova-android": "^7.1.1",
    "cordova-ios": "^4.5.5",
    "cordova-plugin-add-swift-support": "^1.7.2",
    "cordova-plugin-badge": "^0.8.7",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-headercolor": "^1.0.0",
    "cordova-plugin-ionic-webview": "^2.0.1",
    "cordova-plugin-local-notification": "^0.9.0-beta.2",
    "cordova-plugin-qrscanner": "^2.6.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.1",
    "es6-promise-plugin": "^4.2.2",
    "ionic-angular": "^3.9.2",
    "ionic-img-viewer": "^2.9.0",
    "ionicons": "^4.2.5",
    "ng-svg-icon-sprite": "^0.8.0",
    "rxjs": "^5.5.11",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26"
},
"devDependencies": {
    "@ionic/app-scripts": "^3.1.11",
    "typescript": "2.6.2"
}

My ionic -v is CLI PRO 4.0.1

Anyone with this problem? Suggestions?

#2

I’m having the same issue and it seemed to start when I upgraded the CLI from 3.20.0 to 4.0.1, before it worked fine. I’ve tried using the --force command, doesn’t help. The ionic resources process still gets stuck or stalls on “Generating platform resources:

Retreat! Retreat!
I ran npm i -g ionic@3.20.0 then ionic resources <platform> --force and it’s generating icons and splash now… nice and fast, I might add.

For what it’s worth, my splash.png file is about 9mb at 2732x2732 and icon.png is 100k at 1024x1024. And ionic info:

cli packages: (/Users/zachlyon/.nvm/versions/node/v6.10.3/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 7.0.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.2 
Node       : v6.10.3
npm        : 5.5.1 
OS         : macOS High Sierra
Xcode      : Xcode 9.4.1 Build version 9F2000 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro
#3

Check this topic: https://github.com/ionic-team/ionic-cli/issues/3385#issuecomment-408508772