icon for iphone app on ipad3

Go To StackoverFlow.com

1

My app targets iphone, but obviously it can also be installed on iPad.

On iPhone it uses the correct icon image; on iPad 2, it also uses the correct icon.

However on iPad 3, instead of using icon as icon, it uses my launch image as icon. Is this the usual behaviour on iPad 3? or is my setting wrong? (I uses the latest SDK, and targets iOS 5.0, if this matters)

Update

I attached the plist file below. I guess I can understand what's wrong... Default@2x.png is the name of the launching image. What puzzles me is that, this does not match what I see in Xcode on the "Summary" screen though. In Xcode on the summary screen:

  1. I have retina icon set to SOF_app_icon.png, and I do not have a non-retina icon set - it says "no image specified";
  2. I have two launching images set: Default.png for non-retina, and Default@2x.png for retina.

Here is the plist file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>SOF_app_icon.png</string>
            <string>Default@2x.png</string>
        </array>
    </dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.overwaitea.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>NSZombieEnabled</key>
<false/>
<key>UIBackgroundModes</key>
<array>
    <string>location</string>
</array>
<key>UIFileSharingEnabled</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>location-services</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>corelocation</key>
<string>YES</string>
</dict>
</plist>
2012-04-04 20:58
by user1239040
What is the file name of your iPad 3 icon - Mick MacCallum 2012-04-04 21:12


4

It uses the launch image (i.e. the image displayed while your app is still loading after launch)? That doesn't make any sense. It certainly isn't the normal behavior, and I would guess that you have made a mistake in your Info.plist icon entries.

Note that you need to supply a 2x icon for iPad 3... see the cornucopia of information that Apple supplies.

If you post a copy of your Info.plist (with any sensitive information redacted), along with your icon file names, we can probably nail down exactly what's going wrong.

As a final note, I have noticed that development copies of apps can get slightly out of whack vis-a-vis assets such as icons, seemingly because Xcode is trying to decrease launch time by only copying assets it thinks have changed. For this reason, it's probably a good idea to actually delete the app from the device/simulator and reinstall from scratch just to make sure you aren't seeing stale information.

EDIT: Thanks for posting the Info.plist. This clears up some things.

Let's start with the line:

<string>Default@2x.png</string>

Do you see that, inside your icon files setting, this is telling iOS to use your launch image as an icon? I'm guessing this was a typo, but I want to make sure you aren't confusing what the different plist keys are for.

2012-04-04 21:13
by Conrad Shultz
See updated answer - Conrad Shultz 2012-04-04 22:07
Well, I haven't seen that, but Xcode has been known to have bugs. If you can reproduce it I suggest you file a bug at bugreport.apple.com. Either way, manually updating (or maybe even just clearing and reloading via GUI) the plist will address your issue - Conrad Shultz 2012-04-04 22:14
Xcode automatically added the "Default.png" and "Default@2x.png" to my icon file list, and was causing the default image to be the app icon. I removed both from the list and the app icon shows up now. (Had the problem with the iPad 3 icon - jmosesman 2012-08-29 19:34


1

Had the same problem All icon files added to the iphone project (including icon-72.png, icon-72@2x.png, Icon-Small-50.png, Icon-Small-50@2x.png).

Than added the iPad files manually to the info.plist file. It showed that order matters. Putting them at the end didn't work. My order is now Icon.png Icon@2x.png Icon-72.png Icon-72@2x.png and that worked for me.

2012-05-09 11:16
by Bernd Rabe
For some reason it when I added Icon-72@2x.png to the project it didn't add it to the plist, and placing it after Icon-72.png in the plist worked for me - jmosesman 2012-08-27 22:01


1

For the record, Xcode 4.3.1 uses CFBundleIconFiles 3 and 4 for the launch images for apps targeting the iPhone. I cleared the launch images in the summary window and deleted the items in info.plist to be sure I wasn't the one causing the problem, and Xcode always set the launch images the same slots when re-added.

2012-05-31 18:29
by Lucas Gladding


0

Change

 <string>SOF_app_icon.png</string>
    <string>Default@2x.png</string>

to

  <string>SOF_app_icon.png</string>
    <string>SOF_app_icon@2x.png</string>

How you have it configured is telling the device to set the retina icon as the retina version of your "Default" image.

To clarify "Default.png and Default@2x.png" are the standard names for your launch (splash) images.

2012-04-04 22:12
by Mick MacCallum
Right. Default.png and Default@2x.png are standard names for your launch images. Here is the order of icon files in my plist. Icon.png, Icon@2x.png, Icon-72.png, Icon-72@2x.png, Default.png, Default@2x.png, Icon-Small-50.png, Icon-Small-50@2x.pn - Bernd Rabe 2012-08-28 06:41


0

Solution is simple, In your plist->icon files-> Default.png and Default@2x.png may be added ! Just remove it from pList,

It Works

2013-01-18 07:36
by D_D
Ads