Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift - SDWebImage / Duplicate definition of category "WebCache"

When I have imported the SDWebImage framework into my project.

I get 2 warning messages.

They all say 'Duplicate definition of category "WebCache" on interface "UIImageView" '

Besides, there is one also shown 'In module "WebImage" import from <built-in>:1: '

How to hide or make sure it won't show out anymore?

Note:

The Framework imported, and linked with binary files. And I'am using swift so that I linked the bridge as well -> "#import 《SDWebImage/UIImageView+WebCache.h》 "

like image 439
Eayon Dong Avatar asked May 30 '15 06:05

Eayon Dong


1 Answers

Use @import SDWebImage; instead of #import <SDWebImage/UIImageView+WebCache.h> (not just in the bridge file but anywhere in your project).

like image 167
null Avatar answered Nov 18 '22 08:11

null