lib/cocoapods/resolver.rb
# Ensures that a specification is compatible with the platform of a target.
#
# @raise  If the specification is not supported by the target.
#
# @return [void]
#
Ensures that a specification is compatible with the platform of a target.
Ensures that a specification is compatible with the platform of a target .
def validate_platform(spec, target)
      unless spec.available_platforms.any? { |p| target.platform.supports?(p) }
        raise Informative, "The platform of the target `#{target.name}` "     \
          "(#{target.platform}) is not compatible with `#{spec}` which has "  \
          "a minimum requirement of #{spec.available_platforms.join(' - ')}."
      end
    end
def validate_platform ( spec , target ) unless spec . available_platforms . any? { | p | target . platform . supports? ( p ) } raise Informative , "The platform of the target `#{target.name}` " "(#{target.platform}) is not compatible with `#{spec}` which has " "a minimum requirement of #{spec.available_platforms.join(' - ')}." end end
Ensures that a specification is compatible with the platform of a target.
Ensures that a specification is compatible with the platform of a target .
None
void
If the specification is not supported by the target.
If the specification is not supported by the target .
spec
target