Ionic cordova resources --splash and --icon error
Splash-Screen have to be 2732×2732px (look here: https://ionicframework.com/docs/cli/cordova/resources/)
I was getting the exact same error. I noticed my icon.png (the one I created) was 1024x916 and it didn't like it. I resized it to be exactly 1024x1024 and now it works!!!
It looks like my image was incorrectly sized. I created a new image with larger sizes and it worked. Strange that there was no message about it.
Just resize
- icon as 1024x1024
- splash as 2732x2732
Then run:-
- ionic cordova resources.
- ios ionic cordova resources android.
As per the docs The source image for icons should ideally be at least 1024×1024px and located at resources/icon.png. The source image for splash screens should ideally be at least 2732×2732px and located at resources/splash.png.