Recently I came across one interesting query from iOS developer working on iPhone/iPad Application development. The developer has recently submitted application update in AppStore and he received email from Apple explaining error about missing recommended icon file.
Here is the exact error he received from Apple review team:
Missing recommended icon file – The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120×120’ pixels, in .png format
I am sure many of you working on iOS application development may be facing this issue while upgrading your application. The main reason behind this error is iOS 7! As the Apple has recently released iOS7 beta and will release this revolutionary iOS operating system in coming fall, one need to follow their new guidelines about icon dimensions given below:
|Devices||iOS 6 size (in pixel)||iOS 7 size (in pixel)|
|iPhone Non Retina||57 x 57||not available|
|iPhone Retina||114 x 114||120 x 120|
|iPad Non Retina (mini and 2nd gen)||72 x 72||76 x 76|
|iPad Retina||144 x 144||152 x 152|
As explained in given table, to resolve “Missing Recommended icon File” error, you will have to create icon-120.png file for iPhone/iPod devices and icon-152.png file for iPad devices for iOS7 and later version.
How to Use Different icons for iOS 6 and iOS 7 Devices?
If you want to use different icon for iOS 6 and iOS 7 devices, you will have to create two different icons; one for iOS 6 in 114 X 114 size and one for iOS 7 in 120 X 120 size. One you created these tow icons, go to info.plist file and add these two resources in CFBundleIconFile key:
It is always advisable to use different size of icon for different devices. If you are creating universal iOS application, you will have to supply application icon in all four sizes recommended by Apple. Here is the detail about different icon dimension for different iOS versions.
|Icon dimensions (iOS 7 and later)|
|App icon (required)||iPhone||60 x 60 pixels||This is the main icon for apps running on iPhone and iPod touch in iOS 7 and later.|
|120 x 120 pixels (@2x)|
|App icon (required)||iPad||76 x 76 pixels||This is the main icon for apps running on iPad in iOS 7 and later.|
|152 x 152 pixels (@2x)|
|Spotlight search results icon (recommended)||All devices||40 x 40 pixels||This is the icon displayed for Spotlight search results in iOS 7 and later.|
|80 x 80 pixels (@2x)|
|Settings icon||All devices||29 x 29 pixels||This is the icon used by the Settings app in iOS 7 and later.|
|58 x 58 pixels (@2x)|
|Icon dimensions (iOS 6.1 and earlier)|
|App icon (required)||iPhone||57 x 57 pixels||This is the main icon for apps running on iPhone and iPod touch in iOS 6.1 and earlier.|
|114 x 114 pixels (@2x)|
|App icon (required)||iPad||72 x 72 pixels||This is the main icon for apps running on iPad.|
|144 x 144 pixels (@2x)|
|Small icon for Spotlight search results and Settings (recommended)||iPhone||29 x 29 pixels||This is the icon displayed in conjunction with search results on iPhone and iPod touch. This icon is also used by the Settings app on all devices.|
|58 x 58 pixels (@2x)|
|Small icon for Spotlight search results and Settings (recommended)||iPad||50 x 50 pixels||This is the icon displayed in conjunction with search results on iPad.|
|100 x 100 pixels (@2x)|
Now set icons into your iOS projects by following given steps:
- As explained earlier, create your icon images in specified dimension and add them into your project resources folder
- Go to project resource folder and add these icons into project
Once you successfully added those icon files into your project, click on your Project-Info.plist file and check for Icon files row as shown in below table. If you cannot find item as shown in below table, add them by clicking on (+) sign. Once you are done, select icon files and set all icon images as given below:
Now generate binary of your project and submit them into App store for review. It should not give “Missing recommended icon file” error.
If you are facing this error and want to add some more value in this post, share your solution by comment.