2

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.

Daniel Storm
  • 18,301
  • 9
  • 84
  • 152

4 Answers4

13

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.

Ely
  • 8,259
  • 1
  • 54
  • 67
  • You just saved my day. You are awesome. Thanks a lot! – zs2020 Sep 27 '19 at 20:52
  • Even changing the build settings to match the "Brand Assets" folder name did not work, but this did. – Barnyard Oct 02 '19 at 21:48
  • Its been couple of weeks i have been searching for any response for this bug. Thank you – Ali Pasha Nov 06 '19 at 11:02
  • Thanks, I had wondered if that would work. It did. Saved me a lot of trouble. Annoying thing is that if you create a new tvOS asset catalog and try to create a new icon set, the name is defaulted such that it won't work. – PKCLsoft Nov 13 '19 at 21:58
1

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

Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
  • That is a good guess but doesn't appear to be the case. I took the LaunchImage from my app and put it in a demo app from Apple and it worked just fine. As far as the icons go the only image that can't have an alpha channel is the back most layer. I don't know about the top shelf image. – Chris Horsfield May 17 '16 at 23:15
  • @ChrisHorsfield have you deleted the app from the simulator, cleaned the project, removed the images, readded the images, and tried installing the application again? – Daniel Storm May 18 '16 at 10:52
  • Holy crap that worked. The top shelf image now sows. – Chris Horsfield May 18 '16 at 17:49
0
  1. Reset the Simulator
  2. Command + Shift + Alt + K, to clean you project
  3. Build and Run
Zarif Ahmed
  • 343
  • 2
  • 9
0

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

respectTheCode
  • 42,348
  • 18
  • 73
  • 86