Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symbol(s) not found for architecture i386 in SDWebImageDownloader

When i'am trying to compile with Xcode i get the following errors:

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)

There must be a problem with SDWebImage class, which MWPhotoBrowser use. This is really strange and confusing, and I don't know how to fix it.

Thanks guys.

like image 984
DevFly Avatar asked Aug 10 '12 11:08

DevFly


2 Answers

The problem is most likely that the project is not including the ImageIO framework. Go to your Target -> Build Phases -> Link and verify that in fact you have ImageIO there.

like image 112
David H Avatar answered Oct 25 '22 14:10

David H


I think that i have the solution...

Go to to the target of your app and on the right, click on the Build Phases tab and in the Compile Sources Section click on + and add the SDWebImage.m

Hope that helps !

like image 24
Ali Abbas Avatar answered Oct 25 '22 13:10

Ali Abbas