CUICatalog: Invalid asset name supplied: (null)

I'm seeing this error appear also with another error message:


"Could not load the "(null)" image referenced from a nib in the bundle with identifier "<app bundle>"


This has to be coming from somewhere in the storyboard since it dumps on app load and all of my images are loading with no problems, but I have no clue how to track it to a particular component. There are no UIImage.imageNamed calls taking nil arguments in my app.


Any idea on how to track this down?

Answered by Marvin Bellamy in 11234022

This is caused by setting the selected image field on a tab bar item in the storyboard. Clearing this field clears the error.

Accepted Answer

This is caused by setting the selected image field on a tab bar item in the storyboard. Clearing this field clears the error.

If you need to set the selected image field on a tab bar item, you can add a run-time attribute in the Identity Inspector which points to the selected image in the Image Assets.

CUICatalog: Invalid asset name supplied: (null)
 
 
Q