Commit 9b785e21 authored by Ben Asher's avatar Ben Asher

Only keep track of known hosts targets

parent d01e3724
...@@ -269,7 +269,6 @@ module Pod ...@@ -269,7 +269,6 @@ module Pod
target_definitions_by_uuid = {} target_definitions_by_uuid = {}
aggregate_targets.each do |target| aggregate_targets.each do |target|
target.user_targets.map(&:uuid).each do |uuid| target.user_targets.map(&:uuid).each do |uuid|
raise Informative, "Missing target definition for target: #{target.name}" if target.target_definition.nil?
target_definitions_by_uuid[uuid] = target.target_definition target_definitions_by_uuid[uuid] = target.target_definition
end end
end end
...@@ -286,7 +285,7 @@ module Pod ...@@ -286,7 +285,7 @@ module Pod
host_uuids += host_targets.map(&:uuid) host_uuids += host_targets.map(&:uuid)
end end
host_uuids.each do |uuid| host_uuids.each do |uuid|
(host_uuid_to_embedded_target_definitions[uuid] ||= []) << target.target_definition (host_uuid_to_embedded_target_definitions[uuid] ||= []) << target.target_definition if target_definitions_by_uuid.key? uuid
end end
embedded_targets_missing_hosts << target unless host_uuids.any? do |uuid| embedded_targets_missing_hosts << target unless host_uuids.any? do |uuid|
target_definitions_by_uuid.key? uuid target_definitions_by_uuid.key? uuid
...@@ -326,7 +325,6 @@ module Pod ...@@ -326,7 +325,6 @@ module Pod
end end
host_uuid_to_embedded_target_definitions.each do |uuid, target_definitions| host_uuid_to_embedded_target_definitions.each do |uuid, target_definitions|
host_target_definition = target_definitions_by_uuid[uuid] host_target_definition = target_definitions_by_uuid[uuid]
raise Informative, "Missing target definition for host uuid: #{uuid}" if host_target_definition.nil?
target_definitions.each do |target_definition| target_definitions.each do |target_definition|
check_prop.call(host_target_definition, target_definition, :platform, 'do not use the same platform') check_prop.call(host_target_definition, target_definition, :platform, 'do not use the same platform')
check_prop.call(host_target_definition, target_definition, :uses_frameworks?, 'do not both set use_frameworks!') check_prop.call(host_target_definition, target_definition, :uses_frameworks?, 'do not both set use_frameworks!')
......
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