I'm using SDWebImage for about 2 years now, with the newer version that I made the .framework file myself (maybe that's whats wrong).
I get this error while running
But when i use [UIImageView setImageWithURL:placeholderImage:] works perfectly, only with a warning telling me its deprecated but still works.
+1
I use it well, maybe you need this(also can see 'readme ' in SDWebImage):
Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag.
Already done, without that the framework doesn't work. At least on my experience. That's not the problem.

I use pod . the version is 3.7.1.
Also there is this problem .
Same here, works ok on iOS8, crashes on iOS7.1
See https://github.com/rs/SDWebImage#add-linker-flag. Correctly setting the flags should take care of the issue. BTW: I strongly recommend you guys switch to CocoaPods, that way those issues will never arise.
@bpoplauschi why do I get
<ld: file not found: SDWebImage.framework/Versions/Current/SDWebImage> ?
This is my Podfile
platform :ios, '7.1'
pod 'AFNetworking'
pod 'SDWebImage', :head
pod 'SDWebImage/WebP'
+1
This is a problem only in the latest 3.7.1, all good after switching to 3.6
Same here. Thanks, zend, to pointing out we can use the previous version to avoid this for now.
update: well, I tried 3.6 and it still does not work.
This is a very very strange issue which I need to investigate further more. Both methods are defined, it just seems the compiler doesn't see the new one. Did you guys try to delete the DerivedData folder?
I don't know how to delete the DerivedData folder. So I removed the app from my device. And still got no luck. I can get the method from auto-complete during editing. And if I type the previous version setImageWithURL:, I get the error message telling me it has been deprecated and suggesting using the sd_ one. I don't know where to go now.
@liweiz
you can find the DerivedData folder in:
~/Library/Developer/Xcode/DerivedData
@mythodeia
Thanks for the info.
I'm a newbie to github. I just copied my whole project to another folder and modified accordingly (init a new pod file and install). And this time, everything works. I have not deleted the DerivedData yet. Hope this helps.
Delete DerivedData works for me. Thanks a lot.
Closing based on the comments. The issue appears in other GitHub issues, but it's only an installation problem.
@bpoplauschi
I'm using pod and version 3.7.1. I'm getting same crash. flag is already set. I followed steps in #862. No luck.



Sorry, I found the issue. In link binary binary with libraries, we need to add the SDWebImage.a file. See the attached image.

:+1:
I have even tried all the methods. But still having the same issue... Can you please tell me the solution
I'm having the same problem too, tried all methods and still getting the error.
@irineul I have added all the files of SDWebImage folder into project. Its working now. Try this method.
I had the problem and found it's because I set the OTHER_LDFLAGS(aka Other Linker Flags in build settings) before using cocoapods. So after switched to latest cocoapods which already support swift, you should change the OTHER_LDFLAGS to $(inherited).
hello ,
I am using sdwebimage for more than 1.5 years for all my applications..
now I have upload new update and apple is requiring arm64 support ..
i have installed the last sdwebimage 3.7.1 by cocoapods but the application is crashing all the time...
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView sd_setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x7fa8c3018240'
is the last version is working?
please help ,I have to know what to do with?
thanks i found the problem ... it was build active architecture only. to yes .
:)
thanks
As pointed here above, attaching libSDWebImage.a did the trick. Thanks.
Hi
I'm having the same issue.
Tried all above fixes nothing works.

Thanks,
Ori
you need to add a libSDWebimage.a framework in linked framework and libraries section.
its worked for me.
I had the problem and found it's because I set the
OTHER_LDFLAGS(akaOther Linker Flagsin build settings) before using cocoapods. So after switched to latest cocoapods which already support swift, you should change theOTHER_LDFLAGSto$(inherited).
this is solved my problem. thanks
Most helpful comment
I had the problem and found it's because I set the
OTHER_LDFLAGS(akaOther Linker Flagsin build settings) before using cocoapods. So after switched to latest cocoapods which already support swift, you should change theOTHER_LDFLAGSto$(inherited).