Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.2.0
- Cross-platform modules: Not applicable
- Android Runtime: Not applicable
- iOS Runtime: Not applicable
- Plugin(s): Not applicable
Describe the bug
When executing tns resources generate icons <my_icon.png>
, CLI 6.2.0 shows several warnings and does not generate some of the icons:
Didn't find a matching image definition for file AppIcon.appiconset\icon-20@2x.png. This file will be skipped from reources generation.
Didn't find a matching image definition for file AppIcon.appiconset\icon-20@3x.png. This file will be skipped from reources generation.
Didn't find a matching image definition for file AppIcon.appiconset\icon-20.png. This file will be skipped from reources generation.
Didn't find a matching image definition for file AppIcon.appiconset\icon-20@2x.png. This file will be skipped from reources generation.
CLI 6.1.x works correctly in this case.
To Reproduce
-
Install CLI 6.2.0 (
npm i -g nativescript@6.2.0
) -
Create new project:
tns create myApp --js
-
Navigate to the project:
cd myApp
-
Try to generate icons:
tns resources generate icons <some_icon.png>
You'll see warnings -
Check
App_Resources\iOS\Assets.xcassets\AppIcon.appiconset
- three of the icons are not replaced.
Expected behavior
CLI should generate all icons.
Sample project
Additional context