Error code: Could not load the "image.png" image referenced from a nib in the bundle with identifier "com.bundle.identifier"

user3040900 picture user3040900 · Nov 27, 2013 · Viewed 14.9k times · Source

This question has been asked before and i have looked in all of the other stackoverflow topics for an answer, but i can't resolve the issue.

My app works fine in the simulator for all platforms, but when i run the app on my device i get the error code: Could not load the "image.png" image referenced from a nib in the bundle with identifier "com.bundle.identifier".

Screenshot for message on console

All of my pictures are .PNG files and i have used the storeboard to insert them in an imageView.

Program: Xcode 5

Answer

Basheer_CAD picture Basheer_CAD · Sep 26, 2014

If you are using the image name without extension e.g. [UIImage imageNamed:@"myImage"];
then make sure that your image is of .png format, because Xcode will load only .png images without adding extension, otherwise you should use the name with extension [UIImage imageNamed:@"myImage.jpg"]; and should work.