From 1139afa28a6bac31e52a877d73280ef16968458e Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 7 Jun 2019 11:47:26 +0800 Subject: [PATCH] Temporary fix for CocoaPods modular headers because they place the modulemap into the Pods/Private headers, make the `export *` export both Public and Private headers. However, their own generated modulemap does not --- WebImage/SDWebImage.modulemap | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/WebImage/SDWebImage.modulemap b/WebImage/SDWebImage.modulemap index 871087ca..8b01eaa0 100644 --- a/WebImage/SDWebImage.modulemap +++ b/WebImage/SDWebImage.modulemap @@ -1,5 +1,18 @@ framework module SDWebImage { umbrella header "SDWebImage.h" + + // until CocoaPods fix the bug when using modular headers in #8879 + // we have to exclude Private Headers manually even we use Podspec `private_header_files` syntax + exclude header "SDWeakProxy.h" + exclude header "SDInternalMacros.h" + exclude header "SDmetamacros.h" + exclude header "NSBezierPath+RoundedCorners.h" + exclude header "UIColor+HexString.h" + exclude header "SDAsyncBlockOperation.h" + exclude header "SDImageAPNGCoderInternal.h" + exclude header "SDImageGIFCoderInternal.h" + exclude header "SDImageCachesManagerOperation.h" + exclude header "SDImageAssetManager.h" export * module * { export * }