将sdwebImage框架添加到项目中会显示Apple Mac-O链接器错误?

时间:2013-10-21 13:27:46

标签: ios linker-errors sdwebimage linker-warning

在我的项目中,当我尝试添加sdWebImage Framework时,显示Mac-O链接器错误

错误是

 directory not found for option '-F/Users/9Atoms/Desktop/Alfred Consumer/October/Alfred-21/Alfred_Waiter/../../../../Documents/FacebookSDK'

 duplicate symbol _OBJC_CLASS_$_SDImageCache in:
/Users/9Atoms/Library/Developer/Xcode/DerivedData/AlfredWaiter-ervnyccnggvruvcubcrgzmkhvymj/Build/Intermediates/AlfredWaiter.build/Debug-iphonesimulator/AlfredWaiter.build/Objects-normal/i386/SDImageCache.o

/Users/9Atoms/Desktop/Alfred Consumer/October/Alfred-21/Alfred_Waiter/SDWebImage.framework/SDWebImage(SDImageCache.o)


linker command failed with exit code 1 (use -v to see invocation)

我清理了我的项目 我删除了目标中的所有值 - >构建设置 - >库搜索路径和标题搜索路径 我查看了我的project.pbxproj,但仍然是同样的错误

1 个答案:

答案 0 :(得分:0)

如果你有     #import< SDWebImage-3.3 / UIImageView + WebCache.h>
将其更改为
    #import< SDWebImage / UIImageView + WebCache.h>