Could not load the "" image referenced from a nib in the bundle with identifier

The issue has been rectified. Problem was with the image format. When the image has been edited and saved as PNG-24 everything goes fine. The application now runs smoothly in simulator and device.

Thanks for all friends who suggested a solution and tried to helped me.

Regards, Rupesh R Menon


When dragging your start.png file into your project, did you check this option?

alt text


I know it's very late, but this is a solution that also works in Xcode 5, and therefore likely to be useful to people who have this problem in the future.

I have seen a lot of questions like this on the web but none of them seems to have one clear answer. This is, as far as I know, the solution for this problem:

  • Go to the image in Xcode (no need to re-add or re-generate the image)
  • click "show the file inspector"
  • Make sure the checkbox in the category "Target Membership" is checked. the test check box does not have to be checked to make your app load the image.

The target membership tab looks like this:

enter image description here

if this is already the case, you are working with a broken or damaged file. to rule this out, check if another app (like photoshop) can open your image.

This should do it, hope it helps!

Tags:

Ios

Iphone