iPhone/iPod Touch: Info.plist: Unable to verify icon dimensions, no icon found

北城以北 提交于 2019-12-14 02:28:20

问题


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:


回答1:


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.




回答2:


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.




回答3:


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!



来源:https://stackoverflow.com/questions/15469356/iphone-ipod-touch-info-plist-unable-to-verify-icon-dimensions-no-icon-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!