Commit 4941d6b3 authored by Boris Bügling's avatar Boris Bügling

[Validator] Verify platform for Swift error.

parent dc82976f
......@@ -310,7 +310,7 @@ module Pod
installer.install!
file_accessors = installer.aggregate_targets.map do |target|
if target.pod_targets.any?(&:uses_swift?) && deployment_target.to_f < 8.0
if target.pod_targets.any?(&:uses_swift?) && consumer.platform_name == :ios && deployment_target.to_f < 8.0
error('swift', 'Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.')
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