Ionic 2 : CLI "ionic resources" doesn't generate icon and splashscreen
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
@0x1ad2 Works perfectly.
@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
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
@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).
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.
Resolve issuse:
npm install -g cordova
It's fix in cordova 6.5.0
@Brieg it was already solved in 6.1.0 as I mentioned.
Any chance you could close this issue @mhartington?
I agree. is solved, so can be closed.
what are you saying guys? This issue was closed last October 2016