cordova-ios icon indicating copy to clipboard operation
cordova-ios copied to clipboard

Not all icons provided in config.xml are being used

Open Birowsky opened this issue 3 years ago • 0 comments

Bug Report

Problem

Cordova doesn't utilize all icons provided in config.xml.

What is expected to happen?

Cordova should use all provided icons and adds them to XCode here:

Screen Shot 2022-05-02 at 1 13 04 PM

What does actually happen?

The icons that do not have Cordova placeholders do not get updated.

Information

I provide all icons sizes as described in the Cordova documentation here. I also provide icons sizes as described in XCode specs, that are outside of the cordova docs. Here's part of my config.xml:

...
<icon src="resources/ios/icon/icon-50.png" width="50" height="50" />
<icon src="resources/ios/icon/[email protected]" width="100" height="100" />
<icon src="resources/ios/icon/[email protected]" width="167" height="167" />
<icon src="resources/ios/icon/icon-1024.png" width="1024" height="1024" />
<icon src="resources/ios/icon/icon-20.png" width="20" height="20" />
<icon src="resources/ios/icon/icon-48.png" width="48" height="48" />
<icon src="resources/ios/icon/icon-55.png" width="55" height="55" />
<icon src="resources/ios/icon/icon-66.png" width="66" height="66" />
<icon src="resources/ios/icon/icon-88.png" width="88" height="88" />
<icon src="resources/ios/icon/icon-92.png" width="92" height="92" />
<icon src="resources/ios/icon/icon-102.png" width="102" height="102" />
<icon src="resources/ios/icon/icon-172.png" width="172" height="172" />
<icon src="resources/ios/icon/icon-196.png" width="196" height="196" />
...

With this approach, all icons get updated, except the ones that do not have templates by Cordova. A similar issue has been reported here, but I hope my description nicely generalizes it.

Checklist

  • [x] I searched for existing GitHub issues
  • [x] I updated all Cordova tooling to most recent version
  • [x] I included all the necessary information above

Birowsky avatar May 02 '22 05:05 Birowsky