通用应用中的Icon.png文件错误 [英] Icon.png file error in universal app

查看:134
本文介绍了通用应用中的Icon.png文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在发布版本时收到此警告 -

I am getting this warning while building for Release -

iPhone / iPod Touch:icon.png:图标尺寸(72 x 72)不符合尺寸要求。图标文件必须是57x57像素,以.png格式(-19014)

iPhone/iPod Touch: icon.png: icon dimensions (72 x 72) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format (-19014)

这是一个通用应用程序,我在iPhone项目中有两个icon.png文件 - > iPad中的图像和其他 - >图像。

This is a universal app and I have two icon.png files in my project one in iPhone -> images and other in iPad -> images.

同样在info.plist文件中我将Icon文件设置为icon(没有任何扩展名)我假设它将相应地为iPhone 3,iPhone 4和iPad找到正确的文件。

Also in info.plist file I set Icon file to "icon" (without any extension) I am assuming that it will find the correct file for iPhone 3 , iPhone 4 and iPad accordingly.

如何解决此警告?

推荐答案

如果您需要2个图标(一个57乘57,一个114乘114)它是正确的iphone选择正确的。
但是对于ipad,你需要创建一个72乘72的图标,用不同的名称命名并在infoplist中设置它的名字。

It is correct for the iphone were you need 2 icons (one 57 by 57 and one 114 by 114) and it will select the right one. But for the ipad you need to create a 72 by 72 icon, name it in a different name and set its name in the infoplist.

在xcode 4中你有一个简单的用户界面来设置图标。

BTW in xcode 4 you have a simple UI for setting the icons.

你可以在这里阅读更多内容:
http://developer.apple.com/library/ios/#qa/qa1686/_index.html

you can read more here : http://developer.apple.com/library/ios/#qa/qa1686/_index.html

这篇关于通用应用中的Icon.png文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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