Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug for the target definition of podfile #709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/cocoapods-core/podfile/target_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down