Skip to content

Commit b23ac6b

Browse files
committed
Fix the podspec issue for compatible header search path
The old libwebp CocoaPods (maybe 1.0) contains issues for public headers
1 parent 11e7ea4 commit b23ac6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: SDWebImageWebPCoder.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ This is a SDWebImage coder plugin to support WebP image.
2222
s.private_header_files = 'SDWebImageWebPCoder/Private/*.h'
2323
s.xcconfig = {
2424
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1',
25-
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
25+
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/libwebp/src'
2626
}
2727
s.watchos.xcconfig = {
2828
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1 WEBP_USE_INTRINSICS=1',
29-
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
29+
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(PODS_ROOT)/libwebp/src'
3030
}
3131
s.framework = 'CoreGraphics'
3232
s.dependency 'SDWebImage/Core', '~> 5.17'

0 commit comments

Comments
 (0)