为 iOS 创建离子资源不再起作用 [英] Creating ionic resources for iOS doesn't work anymore

查看:41
本文介绍了为 iOS 创建离子资源不再起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在准备我的 ionic 应用程序以在 iOS 应用程序商店中进行更新,但目前我真的陷入困境,因为使用 ionic resources 生成资源不再有效.

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.

在终端中运行命令后,它开始上传我放入文件夹中的资源,然后告诉我上传成功完成,然后完全冻结.Android 和 iOS 文件夹被创建,还有图标和飞溅文件夹,但随后什么也没有发生.

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.

到目前为止我尝试过的:
- 替换资源文件夹中的 icon.psd 和 splash.psd
- 使用 ionic state reset 重置 ionic 状态(完全移除平台并重新添加)+ 从 ionic 网站添加官方图标和飞溅模板

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

使用的版本:
- Cordova CLI:5.1.1
- 离子版本:1.1.0
- 离子 CLI 版本:1.6.5
- ios 部署:5.0.1
- ios-sim:5.0.1
- Mac OS X 优胜美地
- 节点:0.12.7

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

在 windows 上生成安卓资源一切正常.

Everything works quite fine on windows for generating android resources.

有人可以帮忙吗?

推荐答案

我遇到了类似的问题.它与 .png 的保存方式有关.

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

尝试通过 https://tinypng.com/ 传递文件.它对我有用过几次.

Try passing the file through https://tinypng.com/. It has worked for me several times.

这篇关于为 iOS 创建离子资源不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆