Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load the "" image referenced from a nib

I have no images called "" (nothing). I've gone through the .xib file of the screen where this pops up and can't find anything that would cause this. Anybody who have had the same issue? Here is the full warning:

Could not load the "" image referenced from a nib in the bundle with identifier "com.blah.Blah"

like image 472
BlueVoodoo Avatar asked Oct 01 '12 11:10

BlueVoodoo


2 Answers

You can do this to check it from your storyboard, or nib. Open it as Source Code:

enter image description here

Then "Find" the image name in it, see if it exists but already invalid in your project, probably you have deleted or changed its name, and now it doesn't seem valid.

enter image description here

like image 193
Tom Avatar answered Sep 21 '22 12:09

Tom


I had the same issue and in my case there was an UIButton with an invalid image reference in the storyboard file. The reference wasn't empty so it was not trivial to spot by just searching for "" in the storyboard file. However, Xcode did show "Unknown image" for the button in the Background field instead of "Default Background Image". In the storyboard file it appeared as

<state key="normal" title="Use" backgroundImage="0E39AEA8-7F29-40B2-96B1-63B99047E8D5"> 

so perhaps grepping for backgroundImage and looking for non-familiar references will help find the cause.

like image 25
Vesuri Avatar answered Sep 19 '22 12:09

Vesuri