Error generating platform resources

I am trying generate resources in macbook. But i am getting an error for two days. How can i solve this problem?

**ionic --v**

CLI PRO 4.0.1
**ionic info**


   ionic (Ionic CLI)  : 4.0.1
   Ionic Framework    : ionic-angular 3.5.3
   @ionic/app-scripts : 3.1.11


   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.5


   ios-deploy : 1.9.2
   NodeJS     : v8.9.3 (/usr/local/bin/node)
   npm        : 6.2.0
   OS         : macOS High Sierra
   Xcode      : Xcode 9.4.1 Build version 9F2000


   ANDROID_HOME : not set
**ionic cordova resources**

✔ Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
✔ Uploading source images to prepare for transformations: 2 / 2 complete - done!
✖ Generating platform resources: 1 / 32 complete - failed!
[ERROR] Resource server responded with an error.
        This could mean the server is experiencing difficulties right now--please try again later.
        Request: POST
        Response: 400

I solved this problem.

Documentation: ionic cordova resources

The problem is the size of the splash screen.

The source image for splash screens should ideally be at least 2732×2732px and located at resources/splash.png.

Thanks for documentation! :sunglasses:

1 Like

I have this error but, sizes of icon and splash is correct.

See this Topic on github

Are there transparent places for your icon and splash?
Make sure there are no transparent places in your pictures.

Solution here:

That’s right. the size was the reason and what a shame that ionic doesn’t show proper error!

1 Like