Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating ionic resources for iOS doesn't work anymore

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?

like image 435
novas1r1 Avatar asked Oct 06 '15 15:10

novas1r1


4 Answers

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.

like image 111
Tiago A. Avatar answered Nov 01 '22 17:11

Tiago A.


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!

like image 27
Starnuto di topo Avatar answered Nov 01 '22 19:11

Starnuto di topo


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.

like image 1
bmukorera Avatar answered Nov 01 '22 17:11

bmukorera


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

like image 1
harsh zalavadiya Avatar answered Nov 01 '22 18:11

harsh zalavadiya