I'm preparing my ionic app for an update in the iOS app store but I'm really stuck at the moment because generating resources using ionic resources
doesn't work anymore.
After running the command in the terminal it starts uploading the resources I put into the folder, then tells me uploading was sucessfully completed and then freezes completely. Android and iOS folders get created, also the icon and splash folder, but then nothing more happens.
What I tried so far:
- replacing the icon.psd and splash.psd within the resources folder
- resetting the ionic state using ionic state reset
(which completely removes the platforms and adds them again) + adding the official icon and splash templates from the ionic website
Versions used:
- Cordova CLI: 5.1.1
- Ionic Version: 1.1.0
- Ionic CLI Version: 1.6.5
- ios-deploy: 5.0.1
- ios-sim: 5.0.1
- Mac OS X Yosemite
- node: 0.12.7
Everything works quite fine on windows for generating android resources.
Can anybody help?
I had similar problems. It has something to do with the way the .png is saved.
Try passing the file through https://tinypng.com/. It has worked for me several times.
I had the same problem and setting the PROXY environment variable solved the issue:
set PROXY=http://<proxyUrl>:<proxyPort>
ionic resources android --icon --force
Hope this helps!
When I had the same challenge with $ ionic resources
, I had saved my icon.png
and splash.png
using the png24 format, when I changed to png8 the command worked and generated the icons and splash screen files, you can give it a try and it could work for you.
you can use offline alternative binary that does the same job without internet plus it supports cross platform
https://github.com/harshzalavadiya/ionic-resource-generator
p.s. i am author of this tiny app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With