Skip to content

Unable to generate icons when the Contents.json is not generated by Xcode #3666

Closed
@rosen-vladimirov

Description

@rosen-vladimirov

Tell us about the problem

In case the icons in <project dir>/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset are not generated by Xcode, but for external tool, like https://apetools.webprofusion.com the tns resources generate icons command fails

Which platform(s) does your issue occur on?

No matter

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.1.0
  • Cross-platform modules: Not applicable
  • Runtime(s): Not applicable
  • Plugin(s): Not applicable

Please tell us how to recreate the issue in as much detail as possible.

  1. $ tns create myApp
  2. $ cd myApp
  3. Generate some icons in https://apetools.webprofusion.com - this will produce a .zip file. Get the iOS/AppIcon.appiconset folder from it and replace the myApp/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset content.
  4. Run $ tns resources generate icons <path to some icon>
    Instead of generating icons, the command will fail with error: Error: Invalid settings specified for the resizer.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions