Commit 38c5c631 authored by Boris Bügling's avatar Boris Bügling

[Validator] Use `Pod::Version` for version check.

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