Fix the podspec issue for compatible header search path

The old libwebp CocoaPods (maybe 1.0) contains issues for public headers
This commit is contained in:
DreamPiggy 2024-03-25 16:15:01 +08:00
parent 11e7ea4c7c
commit 5f437be1b5
1 changed files with 5 additions and 4 deletions

View File

@ -21,12 +21,13 @@ This is a SDWebImage coder plugin to support WebP image.
s.source_files = 'SDWebImageWebPCoder/Classes/**/*', 'SDWebImageWebPCoder/Private/*.h', 'SDWebImageWebPCoder/Module/SDWebImageWebPCoder.h' s.source_files = 'SDWebImageWebPCoder/Classes/**/*', 'SDWebImageWebPCoder/Private/*.h', 'SDWebImageWebPCoder/Module/SDWebImageWebPCoder.h'
s.private_header_files = 'SDWebImageWebPCoder/Private/*.h' s.private_header_files = 'SDWebImageWebPCoder/Private/*.h'
s.xcconfig = { s.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1'
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
} }
s.watchos.xcconfig = { s.watchos.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1 WEBP_USE_INTRINSICS=1', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SD_WEBP=1 WEBP_USE_INTRINSICS=1'
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src' }
s.pod_target_xcconfig = {
'USER_HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/libwebp/src'
} }
s.framework = 'CoreGraphics' s.framework = 'CoreGraphics'
s.dependency 'SDWebImage/Core', '~> 5.17' s.dependency 'SDWebImage/Core', '~> 5.17'