apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

Icon tag missing path errors logged as verbose #1106

Open teranpeterson opened 3 years ago

teranpeterson commented 3 years ago

Bug Report

Problem

What is expected to happen?

When an icon tag references a missing source path, a warning or error should be displayed so that the user knows to fix it.

What does actually happen?

All of the icons up to the missing icon are copied, and then the operation fails silently. The only way to detect this is to check the directory under platforms/ios/<app name>/Images.xcassets/AppIcon.appiconset or to install the app and see warnings/missing icons.

Information

Command or Code

In config.xml:

<icon src="res/ios/icon-20.png" width="20" height="20" />
<icon src="res/ios/icon-24@2x.png" width="48" height="48" />
<icon src="res/ios/icon-27.5@2x.png" width="55" height="55" />
<icon src="res/ios/icon-40.png" width="40" height="40" />
...

Environment, Platform, Device

This is happening consistently across all ios instances when cordova prepare or cordova platform add ios is run.

Version information

cordova-ios@6.2.0

Checklist