Commit e2e46193 authored by Marius Rackwitz's avatar Marius Rackwitz

[Analyzer] Revise logic for framework check

Mixed targets won't work because frameworks need to be dynamically linked with their dependencies.
parent 4395a94e
...@@ -221,6 +221,12 @@ module Pod ...@@ -221,6 +221,12 @@ module Pod
target.pod_targets = generate_pod_targets(target, specs) target.pod_targets = generate_pod_targets(target, specs)
# We can set host_requires_frameworks first, when the AggregateTarget
# does know all its PodTargets.
target.pod_targets.each do |pod_target|
pod_target.host_requires_frameworks |= target.requires_frameworks?
end
target target
end end
...@@ -258,7 +264,6 @@ module Pod ...@@ -258,7 +264,6 @@ module Pod
def generate_pod_target(target, pod_specs) def generate_pod_target(target, pod_specs)
pod_target = PodTarget.new(pod_specs, target.target_definition, sandbox) pod_target = PodTarget.new(pod_specs, target.target_definition, sandbox)
pod_target.host_requires_frameworks |= target.host_requires_frameworks
if config.integrate_targets? if config.integrate_targets?
pod_target.user_build_configurations = target.user_build_configurations pod_target.user_build_configurations = target.user_build_configurations
pod_target.archs = @archs_by_target_def[target.target_definition] pod_target.archs = @archs_by_target_def[target.target_definition]
......
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