pinterest / PINRemoteImage

A thread safe, performant, feature rich image fetcher
Apache License 2.0
4.01k stars 511 forks source link

_OBJC_CLASS_$_PINWebPAnimatedImage solution #595

Open BannaGo opened 3 years ago

BannaGo commented 3 years ago

define PIN_WEBP 1

but occur this error: Undefined symbols for architecture x86_64: "_OBJCCLASS$_PINWebPAnimatedImage", referenced from: objc-class-ref in libXXX.a(PINCachedAnimatedImage.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I checked this file PINWebPAnimatedImage.m, the reason is “#import "PINWebPAnimatedImage.h" should not be in #if PIN_WEBP #endif.