NativeScript / NativeScript/nativescript-cli

iOS 1024x1024 icon not being auto generated

Open
#5,245 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs more info resources generation
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

@erwindemoel commented on Thu Feb 06 2020

I've generated the icons for the App store using tns resources generate icons

https://docs.nativescript.org/tooling/docs-cli/project/configuration/resources/resources-generate-icons

However when I try to deploy to the App store using Xcode, I get the error saying that the required 1024x1024 icon is missing.

I would expect that it would also generate this icon and place it in App_Resources/iOS/Assets.xcassets/AppIcon.appiconset

I've manually added a 1024x1024 icon in that folder and also tried updating the Contents.json file with:
{ "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "icon-1024.jpg", "scale" : "1x" }

This works.

Why doesn't this get generated automatically?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the implementation of tns resources generate icons and inspect how it populates App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/; the issue names no source file or test. Done means the command generates the required 1024x1024 iOS marketing icon so Xcode accepts the app without manual Contents.json edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.