Commit d01e3724 authored by Ben Asher's avatar Ben Asher

raise Informative if nil target defs

parent 534c997b
......@@ -269,6 +269,7 @@ module Pod
target_definitions_by_uuid = {}
aggregate_targets.each do |target|
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
end
end
......@@ -325,6 +326,7 @@ module Pod
end
host_uuid_to_embedded_target_definitions.each do |uuid, target_definitions|
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|
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!')
......
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