本文介绍了使用SDWebImage时构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的项目中使用 SDWebImage 的类.
I am trying to use the classes of SDWebImage in my project.
我已将类添加到我的项目中,当我尝试构建它时,出现了7个错误:
I've added the classes to my project and when I try to build it I get 7 errors:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MKAnnotationView", referenced from:
l_OBJC_$_CATEGORY_MKAnnotationView_$_WebCache in MKAnnotationView+WebCache.o
"_CGImageSourceCreateIncremental", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceUpdateData", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_CGImageSourceCreateImageAtIndex", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_kCGImagePropertyPixelHeight", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
"_kCGImagePropertyPixelWidth", referenced from:
-[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我是XCode和Objective-c的新手,所以我不知道这个错误是什么意思.
I am new to XCode and Objective-c so I got no idea what this errors mean.
有人吗?
谢谢.
推荐答案
看起来您需要将MapKit
和ImageIO
添加到项目中.
Looks like you need to add MapKit
and ImageIO
to the project.
要这样做:
- 在Xcode中,单击项目导航器顶部的项目.
- 选择构建阶段"标签.
- 打开使用库链接二进制文件"框.
- 点击"+".
- App MapKit和ImageIO框架.
这篇关于使用SDWebImage时构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!