iOS 7 Icon Files Not Being Used

Hi David, Ingemar,

I want to correct our documentation on this. Can you tell me if it works if you don’t even include these in your “CFBundleIconFiles” table, but simply include all of the correct files in your project directory? I seem to recall reading somewhere that the names aren’t absolutely required, but maybe I’m mistaken…

Thanks,

Brent

If you leave the .png off, then Apple will figure out the @2x versions for you and will attach the .png file on.

I wonder if we should change the order of the 76 and 72px icon files?  I’ll do an experiment and see what’s up.

Rob

Here is the build.settings (relevant parts) that I just used to conduct a test:

settings = {     iphone =     {         plist=        {             UIApplicationExitsOnSuspend = false,             UIPrerenderedIcon = true,             UIStatusBarHidden = false,             UIFileSharingEnabled = true,             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                 "Icon.png",                 "Icon@2x.png",                 "Icon-60.png",                 "Icon-60@2x.png",                 "Icon-72.png",                 "Icon-72@2x.png",                 "Icon-76.png",                 "Icon-76@2x.png",                 "Icon-Small.png",                 "Icon-Small@2x.png",                 "Icon-Small-40.png",                 "Icon-Small-40@2x.png",                 "Icon-Small-50.png",                 "Icon-Small-50@2x.png",             },         },     }, }

I took each Icon file and put a number on it indicating the number of pixels.  In other words Icon76@2x.png has a 154 on it.  The 60px one had a 60 etc.

My iPad shows the 154 as I expect (running 7.0) and my iPhone shows 120 as I expect (running 7.1b5).  I don’t have any iOS 6 devices to test on, but I have no reason to suspect that 57/114 and 72/144 would not be picked up using this configuration.

Keep in mind that the filenames are case sensitive and there is a difference between .png and .PNG.  When you specify the .png in the build settings like this, you have to match.  If you follow ingmar’s version, Apple is going to put the .png on the end, and it will find .PNG just as well.   The plist you show is a copy from the build.settings.  I would check the actual filenames on the file system.

Rob.

@Brent

Nope, that won’t work.

No app icon shows if you omit CFBundleIconFiles from build.settings. Tested on iOS7 with the standard daily Corona build 2181 (non-Enterprise version).

I double-checked and the app icons are included in the app bundle, but they’re not picked up by the app.

FWIW CFBundleIconFile  (non-plural) is obsolete and is only needed for devices running iOS 3.1 and older.

@Rob Miracle: I double-checked my file names and image sizes before removing the extensions and 2x versions from my build.settings file. There were no case-sensitive differences. But since the only benefit of removing the file extensions and explicitly-declared 2x versions is that iOS chooses those automatically, it stands to reason that there is some small difference. I just can’t for th elife of me find it!

In any case, glad it works. Thanks everyone! :slight_smile: