1

The reason I'm posting this is that I have tried all solutions written online and none has worked for me. What is it that I am missing? Anyone can help? While validating my app via the Archives tool in xcode 4.6 This is the error messages I am getting:

iPhone/iPod Touch: Info.plist: Unable to verify icon dimensions, no icon found. You must define CFBundleIcons, CFBundleIconFiles, CFBundleIconFile, or provide a default Icon.png that is 57x57.

It is also giving me the same error for iPad, though my app is NOT designed for iPad to start with and in the iOS Application Target, Devices is set to iPhone. I don't know why the iPad is included as an error. I even tried to upload an iPad Icon-72.png and still the error is there.

How can I get rid of this error? I have Icon.png, Icon@2x.png and Icon-72.png and the icons work fine both on the simulator and the device.

My Attempts:

  1. In the Build Settings, I set Compress PNG Files to NO. Not resolved!
  2. I deleted the images, pushed them again, cleaned, built and validated. Not resolved!
  3. I tried this other solution. Not resolved!
  4. I tried setting "Icons already include gloss" to NO. Not resolved.

Here's an image of my bugging error: enter image description here

Community
  • 1
  • 1
Joe Saad
  • 1,940
  • 3
  • 22
  • 32

3 Answers3

2

Exactly same problem happened for me. Finally resolved by changing valid architecture in target.

Remove i386,armv6 from Valid architecture if exists. Not able to support armv6 and armv7s.

See this image: http://postimage.org/image/pxz2fyij5/

Also clear Derived Data from xcode.

iPhoneProcessor
  • 4,980
  • 6
  • 27
  • 49
  • I couldn't find i386,armv6. I only found armv7 and I removed it. Cleaned, Cleared Derived Data, Build then tried Validating again but it is not resolved!! What am I missing? This is taking too much time and effort and seriously making me hate this whole xcode thing!! Please help!!! – Joe Saad Mar 21 '13 at 04:24
0

Check out your info.plist and add all necessary Icon names. Also check if any unused icon name found.

Here is icon file size:

Icon.png          : 57x57
Icon@2x.png       : 114x114
Icon-72.png       : 72x72
Icon-ipad@2x.png  : 144x144
Icon-Small-50.png : 50x50
Icon-Small.png    : 29x29
iTunesArtwork     : 1024x1024

Look at this screenshot of info.plist for more details.

enter image description here

Guru
  • 21,652
  • 10
  • 63
  • 102
  • My app isn't for iPad, why do I have to create icons for that? I only have two png icons there. Icon.png and Icon@2x.png, Do I have to create one for iTunesArtwork? cause that one I already uploaded to the itunesconnect website. – Joe Saad Mar 18 '13 at 14:39
  • Its optional and no need to use iPad Icon if no support for iPad. Other errors are solved right? – Guru Mar 18 '13 at 14:40
  • No, it hasn't been resolved! I already had these icons listed in my info.plist and it didn't work. Do I have to add the iTunesArtwork image as well? It hasn't complained about it in the first place. – Joe Saad Mar 18 '13 at 15:05
  • also added to xcode target? goto simulator build and open and see there copied icon files. – Guru Mar 18 '13 at 15:08
  • Can you explain this? I have my target Device: iPhone. The icons work well when I run it on the simulator. Any thing else I am missing here? – Joe Saad Mar 18 '13 at 17:05
  • Is that works in real device? just once check icon image names..its case sensitive. – Guru Mar 18 '13 at 17:30
  • icon images are in the right case. Icon.png and Icon@2x.png and yes it works on the real device really well. It is just breaking while on Organizer > Archive > Validate and Organizer > Archive > Distribute – Joe Saad Mar 18 '13 at 17:47
  • Is that works in real device? Also listed in Xcode summary page? http://s15.postimage.org/8yop35ee3/upload.png – Guru Mar 18 '13 at 17:50
  • icon images are in the right case. Icon.png and Icon@2x.png and yes it works on the real device really well. It is just breaking while on Organizer > Archive > Validate and Organizer > Archive > Distribute – Joe Saad Mar 18 '13 at 18:30
  • I posted it there as well and still no reply. Just wondering that could it be that when gimp is resizing and saving the image that Xcode has an issue with the file format saved from gimp? – Joe Saad Mar 18 '13 at 23:20
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/26407/discussion-between-joe-saad-and-guru) – Joe Saad Mar 18 '13 at 23:20
0

Now here's how I got this finally resolved:

  • I didn't find the icons in the .app bundle, I added the icons manually there. To see the contents of the .app bundle, from the Organizer, control-click the archive, select "Show in Finder". Then, control-click the .archive file (package) and select "Show Package Contents". Under the Products/Applications directory you should find your app. Control-click your app and select "Show Package Contents". Your icon files should be present.
  • I created a new archive. Product->Archive to create a new archive, then selected the new archive in the Organizer before trying to validate

Those two solutions worked together, adding the icons in the .app bundle and creating a new archive all together has validated the app and I can see the icons now good. Finally worked!

Joe Saad
  • 1,940
  • 3
  • 22
  • 32