Error generating platform resources

#1

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 (Ionic CLI)  : 4.0.1
   Ionic Framework    : ionic-angular 3.5.3
   @ionic/app-scripts : 3.1.11

Cordova:

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

System:

   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

Environment:

   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 https://res.ionic.io/api/v1/transform
        Response: 400
#2

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
#3

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

#4

See this Topic on github

#5

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

#6

Solution here: https://github.com/ionic-team/ionic-cli/issues/3385#issuecomment-408508772

#7

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

1 Like