Skip to content

Commit

Permalink
Updated minimum ios deployment target in validator and analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
dshikulin-mwb committed Jan 26, 2024
1 parent d3fe96e commit c655ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cocoapods/installer/analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def determine_platform(specs, target_definitions, build_type)
Version.new(library_spec.deployment_target(platform_name) || default)
end.max
if platform_name == :ios && build_type.framework?
minimum = Version.new('8.0')
minimum = Version.new('12.0')
deployment_target = [deployment_target, minimum].max
end
Platform.new(platform_name, deployment_target)
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def clean!
def deployment_target
deployment_target = spec.subspec_by_name(subspec_name).deployment_target(consumer.platform_name)
if consumer.platform_name == :ios && use_frameworks
minimum = Version.new('8.0')
minimum = Version.new('12.0')
deployment_target = [Version.new(deployment_target), minimum].max.to_s
end
deployment_target
Expand Down

0 comments on commit c655ea9

Please sign in to comment.