Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load the image referenced from a nib in the bundle running on device

SplitView[1290:307] Could not load the "canary04.png" image referenced from a nib in the bundle with identifier "xx.co.mycompany.ipad.SplitView"

I only get the error when running on the device. There are no problems running in simulator.

I am using the image directly in interface builder with an UIImageView.

EDIT: I have added a different new image to a different nib and that works no problems.

Anyone have any ideas?

like image 365
TheLearner Avatar asked Jan 31 '11 17:01

TheLearner


1 Answers

It might not be added to your Target and in XCode 4 you can do it like this:

  • In your Project View, click your project name
  • Select your target and select "Build Phases" tab
  • Drag your image file into your "Copy Bundle Resources" section

That fixed it for me.

like image 87
Peter Theill Avatar answered Oct 09 '22 00:10

Peter Theill