Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I moved to Xcode 9.0 yesterday, but image resources don't work. I dragged image to root and select "Copy if needed" and "Create groups" and add to my project targets.

The image is shown in storyboard but it is not shown in Simulator or even device.

I get this warning "2017-09-24 11:49:46.578312+0330 testResource[3999:148745] Could not load the "past_exam_background.jpg" image referenced from a nib in the bundle with identifier "com.app.testResource".I tested png and the result was the same.

what should I do?

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

like image 571
daaniaal Avatar asked Dec 07 '22 16:12

daaniaal


1 Answers

Click on a picture file in Xcode. in attribute on bottom you'll see Target membership. Check the box and it is gonna work. Had the same problem see picture: enter image description here

like image 108
Riad Ibadulla Avatar answered Dec 11 '22 10:12

Riad Ibadulla