From 89d082df98799eb6caf1d865d84554cbf4a0150d Mon Sep 17 00:00:00 2001 From: klockky Date: Mon, 13 Jul 2026 12:44:37 +0300 Subject: [PATCH] fix(apple): exclude rapidjson msinttypes shims from rlottie pod (MSVC-only, break clang module build) --- third_party/rlottie.podspec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/third_party/rlottie.podspec b/third_party/rlottie.podspec index 4d80705..27580fa 100644 --- a/third_party/rlottie.podspec +++ b/third_party/rlottie.podspec @@ -24,7 +24,13 @@ Pod::Spec.new do |s| 'rlottie/src/vector/stb/*.{cpp,h}', 'rlottie/src/binding/c/*.cpp', ] - s.exclude_files = ['rlottie/src/vector/pixman/*.S'] + # rapidjson's msinttypes/ are MSVC-only shims (guarded by _MSC_VER in + # rapidjson.h); on Apple clang they must not be compiled — the module build + # would otherwise hit their `#error "Use this header only with MSVC"`. + s.exclude_files = [ + 'rlottie/src/vector/pixman/*.S', + 'rlottie/src/lottie/rapidjson/msinttypes/*.h', + ] s.public_header_files = 'rlottie/inc/*.h' s.pod_target_xcconfig = {