diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 6b3c3272d..87dc30ae3 100644 --- a/SDWebImage.podspec +++ b/SDWebImage.podspec @@ -37,7 +37,10 @@ Pod::Spec.new do |s| s.subspec 'WebP' do |webp| webp.source_files = 'SDWebImage/UIImage+WebP.{h,m}' - webp.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1' } + webp.xcconfig = { + 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1', + 'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src' + } webp.dependency 'SDWebImage/Core' webp.dependency 'libwebp' end diff --git a/SDWebImage/UIImage+WebP.m b/SDWebImage/UIImage+WebP.m index f27a1b6f8..6399ff50e 100644 --- a/SDWebImage/UIImage+WebP.m +++ b/SDWebImage/UIImage+WebP.m @@ -12,7 +12,8 @@ #if !COCOAPODS #import "webp/decode.h" #else -#import "libwebp/webp/decode.h" +//FIXME:WORKAROUND for CocoaPods1.0.0 + use_frameworks! +#import "webp/decode.h" #endif // Callback for CGDataProviderRelease