Creating ionic resources for iOS doesn't work anymore

╄→尐↘猪︶ㄣ 提交于 2019-12-30 09:02:08

问题


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?


回答1:


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.




回答2:


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!




回答3:


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.




回答4:


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




回答5:


I had similar problems. For fixed:

  • create new project "ionic start projectX sidemenu"
  • Copie and paste folder www for new project fodler
  • Add plugins use in older project
  • Compile new project
  • make resources and done!


来源:https://stackoverflow.com/questions/32973261/creating-ionic-resources-for-ios-doesnt-work-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!