Chris Horsfield
Chris Horsfield

Reputation: 173

tvOS icon not showing

I have created a tvOS app and I have added images for the Top Shelf, both icons, and the Launch Image. When I compile and run the app in the Simulator those images don't show up. It's like the OS can't find the images and I don't understand why.

The xcassets file is in the Copy Bundle Resources build phase and it's a target member. The "Asset Catalog App Icon Set Name" under build settings is set correctly. The images are in png format and of the appropriate size.

Any ideas why the images are not being displayed?

EDIT: In case it is relevant the project is using CocoaPods with a privet Pod.

Upvotes: 3

Views: 2005

Answers (4)

Ely
Ely

Reputation: 9141

In Xcode 11, there is a bug with tvOS app icons. To solve it, rename App Icon & Top Shelf Image or Brand Assets in the Assets to AppIcon. In the project settings make sure this is also selected as app icon.

Upvotes: 14

respectTheCode
respectTheCode

Reputation: 43106

For me the fix was including the asset catalog in the tvOS target. Not sure why it wasn't included by default.

Upvotes: 0

Zarif Ahmed
Zarif Ahmed

Reputation: 361

  1. Reset the Simulator
  2. Command + Shift + Alt + K, to clean you project
  3. Build and Run

Upvotes: -1

Daniel Storm
Daniel Storm

Reputation: 18898

Delete the app from the simulator, clean the project, remove the images, add the images back, and build and run the application again.

Upvotes: 0

Related Questions