From 5b9e37aa3db3f3926e43e8beba772b2f9a2bc16f Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 26 Jul 2023 17:41:55 +0800 Subject: [PATCH] Fix CocoaPods podspec again See: CocoaPods/issues/12011 --- libwebp.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libwebp.podspec b/libwebp.podspec index be6450e..2c79f76 100644 --- a/libwebp.podspec +++ b/libwebp.podspec @@ -18,11 +18,12 @@ Pod::Spec.new do |s| s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/libwebp/ ${PODS_TARGET_SRCROOT}/' } - s.preserve_paths = 'src', 'sharpyuv' s.default_subspecs = 'sharpyuv', 'webp', 'demux', 'mux' + s.preserve_path = 'src' # sharpyuv converter s.subspec 'sharpyuv' do |ss| + ss.preserve_paths = 'src', 'sharpyuv' ss.source_files = 'sharpyuv/*.{h,c}' ss.public_header_files = 'sharpyuv/sharpyuv.h' end