Static Methodswift-package-manager 5.10.1PackageDescription
macCatalyst(_:)
Configures the minimum deployment target version for the Mac Catalyst platform using a version string.
SupportedPlatforms.swift:151- SwiftPM
- 5.5+
static func macCatalyst(_ versionString: String) -> SupportedPlatform
Parameters
- versionString
The minimum deployment target as a string representation of two or three dot-separated integers, such as
13.0.1
.
Returns
A SupportedPlatform
instance.
The version string must be a series of two or three dot-separated integers, such as 13.0
or 13.0.1
.
See also
static func macCatalyst(SupportedPlatform.MacCatalystVersion
) -> SupportedPlatform Configures the minimum deployment target version for the Mac Catalyst platform.
struct MacCatalystVersion
The supported Mac Catalyst version.
Other members in extension
Types
struct CustomPlatformVersion
A supported custom platform version.
struct DriverKitVersion
The supported DriverKit version.
struct IOSVersion
The supported iOS version.
struct MacOSVersion
The supported macOS version.
struct TVOSVersion
The supported tvOS version.
struct VisionOSVersion
The supported visionOS version.
struct WatchOSVersion
The supported watchOS version.
Type members
static func custom(String, versionString: String
) -> SupportedPlatform Configures the minimum deployment target version for custom platforms.
static func driverKit(SupportedPlatform.DriverKitVersion
) -> SupportedPlatform Configures the minimum deployment target version for the DriverKit platform.
static func driverKit(String
) -> SupportedPlatform Configures the minimum deployment target version for the DriverKit platform using a custom version string.
static func iOS(SupportedPlatform.IOSVersion
) -> SupportedPlatform Configures the minimum deployment target version for the iOS platform.
static func iOS(String
) -> SupportedPlatform Configures the minimum deployment target version for the iOS platform using a custom version string.
static func macOS(SupportedPlatform.MacOSVersion
) -> SupportedPlatform Configures the minimum deployment target version for the macOS platform.
static func macOS(String
) -> SupportedPlatform Configures the minimum deployment target version for the macOS platform using a version string.
static func tvOS(SupportedPlatform.TVOSVersion
) -> SupportedPlatform Configures the minimum deployment target version for the tvOS platform.
static func tvOS(String
) -> SupportedPlatform Configures the minimum deployment target version for the tvOS platform using a custom version string.
static func visionOS(SupportedPlatform.VisionOSVersion
) -> SupportedPlatform Configure the minimum deployment target version for the visionOS platform.
static func visionOS(String
) -> SupportedPlatform Configure the minimum deployment target version for the visionOS platform using a custom version string.
static func watchOS(SupportedPlatform.WatchOSVersion
) -> SupportedPlatform Configure the minimum deployment target version for the watchOS platform.
static func watchOS(String
) -> SupportedPlatform Configure the minimum deployment target version for the watchOS platform using a custom version string.