<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/SupportedPlatform/macOS(_:)-9771f",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription17SupportedPlatformV5macOSyACSSFZ"
  },
  "title" : "macOS(_:)"
}
-->

# macOS(_:)

Configures the minimum deployment target version for the macOS platform
using a version string.

```
static func macOS(_ versionString: String) -> SupportedPlatform
```

## Parameters

`versionString`

The minimum deployment target as a string
representation of two or three dot-separated integers, such as
`10.10.1`.

## Return Value

A `SupportedPlatform` instance.

## Discussion

The version string must be a series of two or three dot-separated
integers, such as `10.10` or `10.10.1`.

> Since: First available in PackageDescription 5.0.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)