daaniaal
daaniaal

Reputation: 501

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

Upvotes: 4

Views: 5380

Answers (1)

Riad Ibadulla
Riad Ibadulla

Reputation: 158

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

Upvotes: 14

Related Questions