[TIMOB-15309] Changing <icon> in tiapp.xml results in only that icon getting into Info.plist
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-01-04T21:36:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | Info.plist, icons, tiapp.xml |
Reporter | Fokke Zandbergen |
Assignee | Chris Barber |
Created | 2013-09-13T08:04:35.000+0000 |
Updated | 2017-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
File | Date | Size |
icons.zip | 2013-09-13T08:04:35.000+0000 | 111172 |
This is not quite how this feature is designed to work. The
<icon>
in thetiapp.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.Closing ticket as invalid with reference to the previous comments.