Creating ionic resources for iOS no longer works

I am preparing my ionic update app in the iOS app store, but I am really stuck at the moment because generating resources using ionic resources no longer works.

After running the command in the terminal, it starts to load the resources that I put into the folder, and then says that the download was completed successfully, and then it completely freezes. Android and iOS folders are created, as well as an icon and a pop-up folder, but nothing else happens.

What I have tried so far:
- replacing the icon.psd and splash.psd icon in the resource folder
- reset the ionic state using ionic state reset (which completely removes the platforms and adds them again) + add the official icon and burst patterns from the ionic website

Used Versions:
- Cordoba 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 fine on Windows to create Android resources.

Does anyone help?

+5
source share
5 answers

I had similar problems. This has something to do with the way .png is saved.

Try transferring the file through https://tinypng.com/ . He worked for me several times.

+2
source

I had the same problem and setting the PROXY environment variable solved the problem:

 set PROXY=http://<proxyUrl>:<proxyPort> ionic resources android --icon --force 

Hope this helps!

+1
source

When I had the same problem with $ ionic resources , I saved my icon.png and splash.png using png24 format, when I changed to png8, the command worked and generated icons and splash files, you can give this a try, and this may work for you.

+1
source

I had similar problems. When fixed:

  • create a new project "ion project launch X sidemenu"
  • Copy and paste the www folder for the new fodler project
  • Add plugins to an older project
  • Compile a new project
  • make resources and do!
0
source

you can use a standalone alternative binary that does the same job without the internet, plus supports cross platform

https://github.com/harshzalavadiya/ionic-resource-generator

ps I am the author of this tiny application

0
source

Source: https://habr.com/ru/post/1233061/


All Articles