From 9aac944511bb2f93011ca8dcfe4867784b4bba17 Mon Sep 17 00:00:00 2001 From: clownfish Date: Tue, 12 Oct 2021 14:46:01 +0800 Subject: [PATCH] fixed bug for the target definition of podfile store inhibit_warnings & user_modular_headers --- lib/cocoapods-core/podfile/target_definition.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cocoapods-core/podfile/target_definition.rb b/lib/cocoapods-core/podfile/target_definition.rb index 26dcc5da..299f84d8 100644 --- a/lib/cocoapods-core/podfile/target_definition.rb +++ b/lib/cocoapods-core/podfile/target_definition.rb @@ -545,7 +545,7 @@ def use_modular_headers_hash end if parent_hash['for_pods'] # Remove pods that are set to use modular headers inside parent if they are set to not use modular headers inside current target. - parent_hash['for_pods'] -= Array(raw_hash['for_pods']) + parent_hash['for_pods'] -= Array(raw_hash['not_for_pods']) end if raw_hash['all'] # Clean pods that are set to not use modular headers inside parent if use_modular_headers! was set. @@ -934,7 +934,7 @@ def inhibit_warnings_hash end if parent_hash['for_pods'] # Remove pods that are set to inhibit inside parent if they are set to not inhibit inside current target. - parent_hash['for_pods'] -= Array(inhibit_hash['for_pods']) + parent_hash['for_pods'] -= Array(inhibit_hash['not_for_pods']) end if inhibit_hash['all'] # Clean pods that are set to not inhibit inside parent if inhibit_all_warnings! was set.