Skip to content

CLI does not generate all icons #5126

Closed
@rosen-vladimirov

Description

@rosen-vladimirov

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

  1. Install CLI 6.2.0 (npm i -g nativescript@6.2.0)

  2. Create new project: tns create myApp --js

  3. Navigate to the project: cd myApp

  4. Try to generate icons: tns resources generate icons <some_icon.png>
    You'll see warnings

  5. 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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions