ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Ionic 2 : CLI "ionic resources" doesn't generate icon and splashscreen

Open brandyscarney opened this issue 10 years ago • 89 comments

From @pom421 on July 11, 2016 15:12

Short description of the problem:

When i use the CLI and the command :

$ ionic resources

this is the answer :

(node:8537) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Ionic icon and splash screen resources generator
 uploading icon.png...
 uploading splash.png...

When i inspect the generated code, well, it seems that nothing is generated :

  • config.xml is not modified
  • resources/android/icon (for example) is not updated with the new icons
  • platforms/android/res/drawable-hdpi (for example) is not updated too

Same thing for iOS for icon and splash.

Which Ionic Version? 1.x or 2.x

I use ionic 2.0.0-beta.32 on OS X 10.11.4 (El Capitan). I have generated a tutorial project with the CLI like that :

$ ionic start biblio tutorial --v2

Copied from original issue: driftyco/ionic#7269

brandyscarney avatar Jul 11 '16 19:07 brandyscarney

@0x1ad2 Works perfectly.

michaelmafort avatar Jan 19 '17 16:01 michaelmafort

@0x1ad2 +1

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: 5.0.13 
OS: OS X Yosemite
Node Version: v4.4.5
Xcode version: Xcode 7.2.1 Build version 7C1002

aristofanio avatar Jan 31 '17 15:01 aristofanio

I found an answer i have defined for work only in portrait so ionic resources dont make the landscape icons and splash. Thats it. Thanks

eddiehoneyhoney avatar Mar 15 '17 05:03 eddiehoneyhoney

@mhartington can't we bump the Cordova android to 6.1.0 (or higher) by default? Cause this still occurs when starting a new Ionic project (using CLI $ionic start).

0x1ad2 avatar Mar 16 '17 15:03 0x1ad2

It's not something we actually set. The cordova team pins a specific version of plugins/platforms to npm for version compatibility. If you want the latest/great stuff, you need to use @latest version flag.

mhartington avatar Mar 16 '17 17:03 mhartington

Resolve issuse:

npm install -g cordova

It's fix in cordova 6.5.0

Brieg avatar Apr 10 '17 12:04 Brieg

@Brieg it was already solved in 6.1.0 as I mentioned. Any chance you could close this issue @mhartington?

0x1ad2 avatar Apr 19 '17 09:04 0x1ad2

I agree. is solved, so can be closed.

pcrombach avatar Apr 19 '17 09:04 pcrombach

what are you saying guys? This issue was closed last October 2016

geocine avatar Apr 20 '17 06:04 geocine