def _ValidateSimulatorTypeWithOsVersion(device_type, os_version):
    'Checks if the simulator type with the given os version is valid.\n\n  Args:\n    device_type: string, device type of the new simulator. The value corresponds\n      to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad\n      Air, etc.\n    os_version: string, OS version of the new simulator. The format is\n      {major}.{minor}, such as 9.3, 10.2.\n\n  Raises:\n    ios_errors.IllegalArgumentError: when the given simulator device type can\n        not match the given OS version.\n  '
    os_version_float = float(os_version)
    sim_profile = simtype_profile.SimTypeProfile(device_type)
    min_os_version_float = float(sim_profile.min_os_version)
    if (min_os_version_float > os_version_float):
        raise ios_errors.IllegalArgumentError(('The min OS version of %s is %s. But current OS version is %s' % (device_type, min_os_version_float, os_version)))
    max_os_version_float = float(sim_profile.max_os_version)
    if (max_os_version_float < os_version_float):
        raise ios_errors.IllegalArgumentError(('The max OS version of %s is %s. But current OS version is %s' % (device_type, max_os_version_float, os_version)))
Checks if the simulator type with the given os version is valid.

Args:
  device_type: string, device type of the new simulator. The value corresponds
    to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad
    Air, etc.
  os_version: string, OS version of the new simulator. The format is
    {major}.{minor}, such as 9.3, 10.2.

Raises:
  ios_errors.IllegalArgumentError: when the given simulator device type can
      not match the given OS version.
def _ValidateSimulatorTypeWithOsVersion(device_type, os_version):
    'Checks if the simulator type with the given os version is valid.\n\n  Args:\n    device_type: string, device type of the new simulator. The value corresponds\n      to the output of `xcrun simctl list devicetypes`. E.g., iPhone 6, iPad\n      Air, etc.\n    os_version: string, OS version of the new simulator. The format is\n      {major}.{minor}, such as 9.3, 10.2.\n\n  Raises:\n    ios_errors.IllegalArgumentError: when the given simulator device type can\n        not match the given OS version.\n  '
    os_version_float = float(os_version)
    sim_profile = simtype_profile.SimTypeProfile(device_type)
    min_os_version_float = float(sim_profile.min_os_version)
    if (min_os_version_float > os_version_float):
        raise ios_errors.IllegalArgumentError(('The min OS version of %s is %s. But current OS version is %s' % (device_type, min_os_version_float, os_version)))
    max_os_version_float = float(sim_profile.max_os_version)
    if (max_os_version_float < os_version_float):
        raise ios_errors.IllegalArgumentError(('The max OS version of %s is %s. But current OS version is %s' % (device_type, max_os_version_float, os_version)))