Search code examples
iosxcodeautolayoutpreviewxcode7.2

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


Solution

  • 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.