ibireme / YYCache

High performance cache framework for iOS.
MIT License
2.38k stars 511 forks source link

Duplicate interface definition for class 'YYCache' #113

Open appbanana opened 6 years ago

appbanana commented 6 years ago

我通过命令pod 'ReactiveCocoa', '~> 2.5'' 导入这个框架,遇到Duplicate interface definition for class 'YYCache',在这个代码处(@property (copy, readonly) NSString *name; )报Property has a previous declaration,没导入之前是好好的,导入后就遇到了这种问题,您有时间看一下是怎么回事

WangRuiChn commented 6 years ago

我也遇到这个问题了。之前的头文件引用是#import "YYCache.h",改成#import <YYCache/YYCache.h>就可以了。

GarthGit commented 5 years ago

我今天导入了一个swift第三方 FWSegmentedControl ,当我解决完OC与Swift的混编问题时,编译工程报错 Desk/Demo/Pods/YYCache/YYCache/YYCache.h:40:1: Duplicate interface definition for class 'YYCache'

GarthGit commented 5 years ago

Xcode 问题真多,一会让用“”导入头文件,一会让用<>

z234009184 commented 5 years ago

thanks, it's work

JimmyCJJ commented 4 years ago

thank you , it can resolve my problem.