---
title: "macOS(_:)"
framework: swift-package-manager
role: symbol
role_heading: Type Method
path: "swift-package-manager/documentation/packagedescription/supportedplatform/macos(_:)-9771f"
---

# macOS(_:)

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

## Declaration

```swift
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

Return Value A SupportedPlatform instance.

## Discussion

Discussion The version string must be a series of two or three dot-separated integers, such as 10.10 or 10.10.1. note: First available in PackageDescription 5.0.

## See Also

### Supporting macOS

- [macOS(_:)](swift-package-manager/documentation/packagedescription/supportedplatform/macos(_:)-2wthp.md)
- [macOS](swift-package-manager/documentation/packagedescription/platform/macos.md)
- [SupportedPlatform.MacOSVersion](swift-package-manager/documentation/packagedescription/supportedplatform/macosversion.md)
