iPhone icon dimensions issue on submission

  • 1
  • Problem
  • Updated 7 years ago
Hi there !

I've a issue while trying to submit my ipa freshly generated wtih PhoneGap Build.
When I send the ipa to Apple Store, my Application Loader returns an error :
iPhone/iPod Touch: Icon.png: icon dimensions (0 x 0) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format

I've done many tests, with different icons and formats (compressed or not), different config.xml but it fails every at submission.

Here's the icon.png informations from pngchunks tool :
 

Critical, public, PNG 1.2 compliant, unsafe to copy
IHDR Width: 57
IHDR Height: 57
IHDR Bitdepth: 8
IHDR Colortype: 6
IHDR Compression: 0
IHDR Filter: 0
IHDR Interlace: 0
IHDR Compression algorithm is Deflate
IHDR Filter method is type zero (None, Sub, Up, Average, Paeth)
IHDR Interlacing is disabled


Thanks for you support.
Photo of Thibault Couraud

Thibault Couraud

  • 2 Posts
  • 0 Reply Likes
  • happy

Posted 8 years ago

  • 1
Photo of John Saya

John Saya

  • 68 Posts
  • 7 Reply Likes
I had this same issue yesterday. After over an hour or trial and errors, here's what finally worked for me:

1. Move all icons to a folder named "icons/platform". Replace "platform" with "ios", "android", etc.
2. Add platform, width, and height to each icon in the config.xml
3. Place of copy of your 57x57 icon in the root folder and name it "icon.png"

Here's how the config.xml looks:


<icon src="icon.png" />

<icon src="icons/ios/icon_57.png" gap:platform="ios" width="57" height="57"/>
<icon src="icons/ios/icon_72.png" gap:platform="ios" width="72" height="72"/>

<icon src="icons/android/icon_36.png" gap:platform="android" gap:density="ldpi" width="36" height="36" />
<icon src="icons/android/icon_48.png" gap:platform="android" gap:density="mdpi" width="48" height="48" />
<icon src="icons/android/icon_72.png" gap:platform="android" gap:density="hdpi" width="72" height="72" />
<icon src="icons/android/icon_96.png" gap:platform="android" gap:density="xhdpi" width="96" height="96" />


Hope that helps,

John
Photo of Thibault Couraud

Thibault Couraud

  • 2 Posts
  • 0 Reply Likes
Hi John. Thanks for your reply.

I've just try your config, and it still fails with the same error message.
FYI, here's my preference from my config.xml :
<preference name="phonegap-version" value="2.0.0" />

<preference name="target-device" value="handset" />
<preference name="orientation" value="portrait" />
<preference name="webviewbounce" value="false" />
<preference name="android-minSdkVersion" value="14" />
<preference name="stay-in-webview" value="true" />
Photo of John Saya

John Saya

  • 68 Posts
  • 7 Reply Likes
Hi Thibault,

I was getting very strange errors when trying to submit to Apple yesterday. One of which was "null - invalid zip archive". The only other suggestion I can say is to try rebooting your Mac. Although I was submitting using a VM, rebooting it, then submitting it again finally worked.

John
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Due to the thread inactivity, this issue is now closed.
Create a new issue if you have any other problem with PhoneGap Build.
Thanks

This conversation is no longer open for comments or replies.