Commit 46a17cce authored by Marius Rackwitz's avatar Marius Rackwitz

[Analyzer TargetInspector] Refactor #compute_archs

parent 68c94e0d
......@@ -155,13 +155,10 @@ module Pod
# @return [Array<String>]
#
def compute_archs(user_targets)
archs = []
user_targets.each do |target|
target_archs = target.common_resolved_build_setting('ARCHS')
archs.concat(Array(target_archs))
end
archs = user_targets.flat_map do |target|
Array(target.common_resolved_build_setting('ARCHS'))
end.compact.uniq.sort
archs = archs.compact.uniq.sort
UI.message('Using `ARCHS` setting to build architectures of ' \
"target `#{target_definition.label}`: " \
"(`#{archs.join('`, `')}`)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment