Subhajit Halder Subhajit Halder - 8 days ago 6
iOS Question

Preview in Xcode not showing images from assets library

the second image view's image is taken from asset library

the second image view's image is taken from asset library
as you can see it is not referencing images from assets library but taking from the image file included in the project

I am using Xcode 7.2
enter image description here

Answer

You have to do three steps:

  1. Open XCode. Go to window and choose projects. From new menu choose delete derived data.

  2. Remove image from assets library. Set it again and link it to image view.

  3. Click cmd+shift+k to clean your project. After that run your app or put it in preview seen.

Comments