Commit bf4eded3 authored by Fabio Pelosin's avatar Fabio Pelosin

[#246 | Resolver] Validate plaforms against each target.

parent 03d27ea0
...@@ -71,9 +71,6 @@ module Pod ...@@ -71,9 +71,6 @@ module Pod
if dependency.subspec_dependency? if dependency.subspec_dependency?
spec = spec.subspec_by_name(dependency.name) spec = spec.subspec_by_name(dependency.name)
end end
validate_platform!(spec, target_definition)
@loaded_specs << spec.name @loaded_specs << spec.name
@specs[spec.name] = spec @specs[spec.name] = spec
...@@ -81,6 +78,7 @@ module Pod ...@@ -81,6 +78,7 @@ module Pod
# TODO fix the need to return an empty arrayf if there are no deps for the given platform # TODO fix the need to return an empty arrayf if there are no deps for the given platform
find_dependency_sets(spec, (spec.dependencies[target_definition.platform.to_sym] || []), target_definition) find_dependency_sets(spec, (spec.dependencies[target_definition.platform.to_sym] || []), target_definition)
end end
validate_platform!(spec || @specs[dependency.name], target_definition)
end end
@log_indent -= 1 @log_indent -= 1
end end
......
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