Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

iphone

when I load my application it shows a warning message that

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

I searched and confirmed all my images. But it still shows that warning.

like image 921
Hilaj Avatar asked Jul 03 '15 05:07

Hilaj


3 Answers

  1. Select your image(s) in Project Navigator.
  2. Open the File Inspector.
  3. Make sure you have the target selected.

Add your image to the target

like image 128
Chase Roberts Avatar answered Nov 10 '22 17:11

Chase Roberts


I had the same issue when I Refactor to Storyboard. Apparently the Asset catalog does not transfer the image reference. To fix, see below:

You would notice that your ImageViews is empty from reference.

Image Views

1 - Click on the ImageView

Click the Image View

2 Go to the Utilities bar where you would see you asset image is unknown

Unknow Image

3 - Change it back to you image asset

Choose your image again

This should fix your error. Hope this helps!

like image 45
Tal Zion Avatar answered Nov 10 '22 19:11

Tal Zion


There might be many reasons of this error. To fix this issue you can just follow below given step:

  1. Go to product menu of the Xcode, select clean.
  2. If still you are getting the error, then remove the images from your project and again add the images to your project.
  3. while adding image into the project, make sure that you have selected the Project name inside the "Add to targets". And also enable the "Copy items if needed".

Please Refer below image for better understanding:

First Image convey that while uploading image the TestTests is enable under **Add to targets**

Due to the above process we are getting error, as we can see in the console of Xcode

Image 3rd show the correct way of uploading image/file into the project

The final image 4th show the output without any error/warning

like image 19
Kumar Avatar answered Nov 10 '22 17:11

Kumar