ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 653 forks source link

ionic cordova resources keeps using default image instead of custom images #2965

Open aubrey-fowler opened 6 years ago

aubrey-fowler commented 6 years ago

Description: I have been working on an AngularJS 1.5, Cordova cli v 8, and ionic cli v2 app for a while. I upgraded my ionic cli to version 3.

I wanted to take advantage of the new ionic cordova resources command so I can generate the new splash screens for the iPhoneX etc.

I updated my resources/icon.png file and resources/splash.png to the new specifications: 1024x1024 and 2732×2732px.

I ran the command ionic cordova resources and it did generate some new images and updated the config.xml file but it used the default logo instead of my custom one.

I am not sure what I am going wrong.

My ionic info: [WARN] Error with .\www\lib\ionic\version.json file: FILE_NOT_FOUND, trying .\bower.json.

cli packages: (C:\Program Files\nodejs\node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0
Gulp CLI              : CLI version 3.9.1 Local version 3.5.6

local packages:

Cordova Platforms : android 6.2.3 ios 4.5.0 windows 4.4.2
Ionic Framework   : ionic1 1.3.5

System:

Node : v6.11.0
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : C:\Android\sdk

Misc:

backend : pro
imhoffd commented 6 years ago

@aubrey-fowler What do you mean it "used the default logo"? For the icon, for the splash, or for both?

Try removing the resources/* platform directories and regenerating them.