Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15309] Changing <icon> in tiapp.xml results in only that icon getting into Info.plist

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-01-04T21:36:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsInfo.plist, icons, tiapp.xml
ReporterFokke Zandbergen
AssigneeChris Barber
Created2013-09-13T08:04:35.000+0000
Updated2017-03-23T21:31:17.000+0000

Description

If you select a different default icon than appicon.png, only that icon (and its retina version) will be listed in the generated Info.plist.

Steps to reproduce

Create new app: titanium create -p ios -n testIcons --id test.icons -d .

Extract the attached icons.zip to the project's Resources/iphone folder.

Remove the default (on iPad *not* required) Resources/iphone/appicon.png.

In tiapp.xml change <icon>appicon.png</icon> to <icon>appicon-76.png</icon>.

Build the app for iPad: titanium build -b -p ios -F ipad

Open build/iphone/Info.plist

See that only the retina and non-retina version of the 76 icon are listed under CFBundleIconFiles.

Attachments

FileDateSize
icons.zip2013-09-13T08:04:35.000+0000111172

Comments

  1. Chris Barber 2017-01-04

    This is not quite how this feature is designed to work. The <icon> in the tiapp.xml was introduced before there was retina screens and before Apple added additional app icon sizes to the design guidelines. All <icon> does is simply identifies the .png image to use. Titanium's iOS build will handle injecting the suffix into the icon filename. In other words, when you specify "appicon-76.png", it's actually looking for "appicon-76-76.png", "appicon-76-83.5@2x.png", etc. Regardless, this ticket has become invalid as we have moved to using the iOS asset catalog for icons and while the iOS build will generate all missing app icons when creating the asset catalog, it no longer sets the CFBundleIconFile in the Info.plist.
  2. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the previous comments.

JSON Source