App Icon

Hi. Im trying to figure out how to have my app icon show when i test my app on my device. My icon names are “Icon.png” and “Icon-72.png” and my build.settings are… But its still not working
[lua]-- Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},

iphone = {
plist = {
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
UIApplicationExitsOnSuspend = true,
}
},

–Icon
CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {
“Icon.png” ,
“Icon-72.png”
},

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}
[import]uid: 132369 topic_id: 29386 reply_id: 329386[/import]

I think the problem is that the icon information should be part of the plist table, like this:

[blockcode]
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},

iphone = {
plist = {
–Icon
CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {
“Icon.png” ,
“Icon-72.png”
},

UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
UIApplicationExitsOnSuspend = true,
}
},

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}

[/blockcode] [import]uid: 109711 topic_id: 29386 reply_id: 118100[/import]

+1, needs to be under plist - nicely answered!

Peach :slight_smile: [import]uid: 52491 topic_id: 29386 reply_id: 118184[/import]

Thanks. I tried and its not working. Is there any other reason it should be doing this? My build.settings are
[lua]-- Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},

iphone = {
plist = {
–Icon
CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {
“Icon.png” ,
“Icon-72.png”
},

UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
UIApplicationExitsOnSuspend = true,
}
},

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}
[import]uid: 132369 topic_id: 29386 reply_id: 118253[/import]

Hi there,

What kind of device are you testing it on? For example, if it’s an iPhone 4 or iPhone 4S (retina displays), I think you would also need an Icon@2x.png version (which should be 114x114 pixels).

I found these links to be helpful references (I think the second is out of date, since it doesn’t mention the 144x144 requirement for the iPad 3):

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

http://developer.apple.com/library/ios/#qa/qa1686/_index.html [import]uid: 109711 topic_id: 29386 reply_id: 118256[/import]

Would also like to know device type; nothing is jumping out at this stage. [import]uid: 52491 topic_id: 29386 reply_id: 118294[/import]

I Mine all seem to show up but on the Kindle the icon looks distorted, do you think it needs a different size ICON ?

Larry

DoubleSlashDesign.com

Larry Meadows [import]uid: 11860 topic_id: 29386 reply_id: 118300[/import]

Thanks. Its because i needed a icon@2x image. But now i have a different icon problem. The terminal says “Your MinimumOSVersion is below 3.2, so you must define CFBundleIconFile or provide a default Icon.png that is 57x57. (-19013)
warning: iPad: Info.plist: Unable to verify icon dimensions, no icon found. You must define CFBundleIcons, CFBundleIconFiles, CFBundleIconFile, or provide a default Icon-72.png that is 72x72 (-19013)”. Can anyone help? Thanks.
[import]uid: 132369 topic_id: 29386 reply_id: 118329[/import]

Hi there,

If I understand your situation correctly, you now have three icon files: Icon.png, Icon-72.png, and Icon@2x.png. What are their dimensions. They should be 57x57, 72x72, and 114x114, respectively – are they?

Also, can you paste in your new build.settings, just to make sure it looks good now?

  • Andrew [import]uid: 109711 topic_id: 29386 reply_id: 118330[/import]

yes i have Icon.png, Icon-72.png, and Icon@2x.png. The dimensions are 57x57, 72x72 and 112x112. My build.settings are
[lua]-- Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},

iphone = {
plist = {
–Icon
CFBundleIconFile = “Icon.jpg”,

CFBundleIconFiles = {
“Icon.jpg” ,
“Icon-72.jpg” ,
“Icon@2x.jpg”
},

UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
UIApplicationExitsOnSuspend = true,
}
},

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}
[import]uid: 132369 topic_id: 29386 reply_id: 118332[/import]

Hi there,

I think there are two remaining problems.

First, Icon@2x.png should be 114x114, not 112x112.

Second, in your build.settings, you’ve listed your icon files as jpg files, whereas they should be png files.

Hope this helps.

  • Andrew [import]uid: 109711 topic_id: 29386 reply_id: 118334[/import]

Thanks for your response but i just can’t get it to work for distribution . The Icons are all correct dimensions and names. The error is
"
warning: Icon specified in the Info.plist not found under the top level app wrapper: Icon.png (-19007)
warning: Icon specified in the Info.plist not found under the top level app wrapper: Icon-72.png (-19007)
warning: Icon specified in the Info.plist not found under the top level app wrapper: Icon@2x.png (-19007)
warning: iPhone/iPod Touch: Info.plist: Unable to verify icon dimensions, no icon found. Your MinimumOSVersion is below 3.2, so you must define CFBundleIconFile or provide a default Icon.png that is 57x57. (-19013)
warning: iPad: Info.plist: Unable to verify icon dimensions, no icon found. You must define CFBundleIcons, CFBundleIconFiles, CFBundleIconFile, or provide a default Icon-72.png that is 72x72 (-19013)
"
And my build.settings is… Please help, Ive been stuck on this for about 5 days. Thank you .
[lua]-- Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, }
},

iphone = {
plist = {
–Icon
CFBundleIconFile = “Icon.png”,

CFBundleIconFiles = {
“Icon.png” ,
“Icon-72.png” ,
“Icon@2x.png”
},

UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
UIApplicationExitsOnSuspend = true,
}
},

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}
[import]uid: 132369 topic_id: 29386 reply_id: 118994[/import]

Hi Guys,

I just had a look at some of the Apps that I’ve been messing around with and I just noticed that I don’t have anything related to the App Icon images in my build.settings.

That being said, I’ve tested on both Retina and Non-Retina devices (both iPhones and iPads) and even a couple of Android devices and my App Icons appear to be displaying correctly.

Not really sure what the implications are, but could it be that Corona is automatically picking out the icons? I followed the same naming convention of the sample apps.

Ali [import]uid: 10499 topic_id: 29386 reply_id: 118996[/import]

Hey Ali - I *believe* that if you have a 114x114 icon then it should automatically be used on retina devices.

For the above error, are you certain you have Icon.png in your root directory and it isn’t corrupt? [import]uid: 52491 topic_id: 29386 reply_id: 119028[/import]

yes it’s in my root directory and i don’t know if its corrupt. When the icon is in .png format and you try to open it to make changes it says “The document “Icon-72” could not be saved. You don’t have permission.” for some reason. Can this be the issue? [import]uid: 132369 topic_id: 29386 reply_id: 119221[/import]

That definitely shouldn’t be happening, I’d try remaking the icon or putting in a blank one as a test or the like. [import]uid: 52491 topic_id: 29386 reply_id: 119563[/import]

That definitely shouldn’t be happening, I’d try remaking the icon or putting in a blank one as a test or the like. [import]uid: 52491 topic_id: 29386 reply_id: 119563[/import]