Commit 154dd956 authored by Marius Rackwitz's avatar Marius Rackwitz

[Refactor] TargetIntegrator#native_targets_to_integrate

parent 864a252b
...@@ -186,13 +186,11 @@ module Pod ...@@ -186,13 +186,11 @@ module Pod
# #
def native_targets_to_integrate def native_targets_to_integrate
unless @native_targets_to_integrate unless @native_targets_to_integrate
@native_targets_to_integrate = native_targets.reject do |native_target| @native_targets_to_integrate = native_targets.select do |native_target|
native_target.frameworks_build_phase.files.any? do |build_file| links_target = native_target.frameworks_build_phase.files_references.any? do |file_ref|
file_ref = build_file.file_ref
file_ref &&
file_ref.isa == 'PBXFileReference' &&
file_ref.display_name == target.product_name file_ref.display_name == target.product_name
end end
!links_target
end end
end end
@native_targets_to_integrate @native_targets_to_integrate
......
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