From 60e9c18733b28c7020f7dd2bb7c2c21578f57cf2 Mon Sep 17 00:00:00 2001 From: Mohammed Abdel Raouf Date: Fri, 28 Oct 2022 00:56:19 +0200 Subject: [PATCH] Fix searching for FlipperClient.h headers in productions builds if PRODUCTION=1 passed --- .../react-native-flipper/react-native-flipper.podspec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react-native/react-native-flipper/react-native-flipper.podspec b/react-native/react-native-flipper/react-native-flipper.podspec index a8b591af0e9..f76436e2208 100644 --- a/react-native/react-native-flipper/react-native-flipper.podspec +++ b/react-native/react-native-flipper/react-native-flipper.podspec @@ -25,6 +25,10 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,swift}" s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"${PODS_ROOT}/Headers/Public/FlipperKit\"" } s.requires_arc = true - s.compiler_flags = compiler_flags + if ENV['PRODUCTION'] == '1' + Pod::UI.puts "#{s.name}: Found PRODUCTION=1, #{s.name} will be disabled for production builds" + else + s.compiler_flags = compiler_flags + end s.dependency "React-Core" end