Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Icon.png file error in universal app

I am getting this warning while building for Release -

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)

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

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.

How can I resolve this warning?

like image 285
Saurabh Avatar asked Nov 29 '22 10:11

Saurabh


2 Answers

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.

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

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

like image 34
shannoga Avatar answered Dec 07 '22 00:12

shannoga


i had the same problem, just go to Edit Project Settings -> Build -> uncheck Compress PNG Files,and everything be OK.

like image 74
Armin Nehzat Avatar answered Dec 07 '22 01:12

Armin Nehzat