在SDWebImageDownloader中找不到架构i386的符号?

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (2)
  • 关注 (0)
  • 查看 (85)

当我试图与Xcode编译我得到以下错误:

Undefined symbols for architecture i386:
  "_CGImageSourceCopyPropertiesAtIndex", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceCreateImageAtIndex", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceCreateIncremental", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_CGImageSourceUpdateData", referenced from:
      -[SDWebImageDownloader connection:didReceiveData:] in SDWebImageDownloader.o
  "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
      objc-class-ref in MWPhotoBrowser.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)

我不知道该如何解决。

多谢。

提问于
用户回答回答于

问题很可能是该项目不包括ImageIO框架。转到你的Target -> Build Phases -> Link,并验证实际上你的ImageIO。

用户回答回答于

转到你的应用程序的Target,在右侧,单击“Build Phases”选项,然后在“ Compile Sources”部分中,单击“ +”并添加SDWebImage.m

扫码关注云+社区

领取腾讯云代金券