4

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?

Saurabh
  • 22,743
  • 12
  • 84
  • 133

3 Answers3

15

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

Armin Nehzat
  • 418
  • 6
  • 13
  • Is this an Xcode bug? Glad I found this post before spending too much time trying to fix it... – atonyc Feb 09 '12 at 08:52
7

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

shannoga
  • 19,649
  • 20
  • 104
  • 169
  • can you please tell me how to set iPad icon in info.plist.. because there is only one entry for icon file... and I think its for iphone3/iphone4 – Saurabh Mar 23 '11 at 06:38
  • you simply add entries. look at the link i gave you there is an explicit explanation there. – shannoga Mar 23 '11 at 06:44
2

There is once I mistakenly set the project's Devices to Universal, resulting in the same error.

The fix is Target > Summary > Devices > Change to iPhone

samwize
  • 25,675
  • 15
  • 141
  • 186