From e9e7edffdefac6430c9260cf47fb9d6d10e73bba Mon Sep 17 00:00:00 2001 From: Bogdan Poplauschi Date: Sat, 28 May 2016 22:50:53 +0300 Subject: [PATCH] Fixed #1444 and the master build thanks to https://github.com/kenmaz/SDWebImage/commit/5034c334be50765dfe4e97c48bcb74ef64175188 --- SDWebImage.podspec | 5 ++++- SDWebImage/UIImage+WebP.m | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 6b3c3272..646126f6 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 b1895d78..a7e341f6 100644 --- a/SDWebImage/UIImage+WebP.m +++ b/SDWebImage/UIImage+WebP.m @@ -12,7 +12,7 @@ #if !COCOAPODS #import "webp/decode.h" #else -#import "libwebp/webp/decode.h" +#import "webp/decode.h" #endif // Callback for CGDataProviderRelease