The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LongPressButton, reference main (120324), with Swift 6.1 for macOS (SPM) on 8 Nov 2025 22:37:34 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Tunous/LongPressButton.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Tunous/LongPressButton
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1203249 Run iOS 16 tests on iPhone 13
Cloned https://github.com/Tunous/LongPressButton.git
Revision (git rev-parse @):
12032495a2bdbf6e5de1f1cee74e62292da90671
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Tunous/LongPressButton.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Tunous/LongPressButton.git
https://github.com/Tunous/LongPressButton.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LongPressButton",
  "name" : "LongPressButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "LongPressButton",
      "targets" : [
        "LongPressButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LongPressButton",
      "module_type" : "SwiftTarget",
      "name" : "LongPressButton",
      "path" : "Sources/LongPressButton",
      "product_memberships" : [
        "LongPressButton"
      ],
      "sources" : [
        "LongPressButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module LongPressButton
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:39: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |                                       `- error: 'Task' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:77:30: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
 77 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:80:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
    :
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
 80 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 81 |     ) {
 82 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:107:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
108 |         self.init(
109 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:101:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:104:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
104 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:136:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
134 |         action: @escaping () -> Void,
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
137 |         self.init(
138 |             minimumDuration: minimumDuration,
[4/4] Compiling LongPressButton LongPressButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:39: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |                                       `- error: 'Task' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:77:30: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
 77 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:80:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
    :
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
 80 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 81 |     ) {
 82 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:107:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
108 |         self.init(
109 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:101:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:104:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
104 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:136:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
134 |         action: @escaping () -> Void,
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
137 |         self.init(
138 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
    |         |- error: 'Button' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 17 |             label
 18 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:19:10: error: 'onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
 18 |         }
 19 |         .onLongPressGesture(
    |          |- error: 'onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 20 |             maximumDistance: maximumDistance,
 21 |             perform: {},
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:27:24: error: 'cancel()' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 24 |     }
 25 |
 26 |     private func performActionIfNeeded() {
    |                  `- note: add @available attribute to enclosing instance method
 27 |         longPressTask?.cancel()
    |                        |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 28 |         if didLongPress {
 29 |             didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:29:13: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 24 |     }
 25 |
 26 |     private func performActionIfNeeded() {
    |                  `- note: add @available attribute to enclosing instance method
 27 |         longPressTask?.cancel()
 28 |         if didLongPress {
 29 |             didLongPress = false
    |             |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 30 |         } else {
 31 |             action()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:36:24: error: 'cancel()' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
    |                        |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 37 |
 38 |         if !isPressing {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:42:17: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 40 |                 // Mark long press as ended in next run loop to be sure that button action
 41 |                 // won't trigger together with it.
 42 |                 didLongPress = false
    |                 |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 43 |             }
 44 |             return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:47:9: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 45 |         }
 46 |
 47 |         didLongPress = false
    |         |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 48 |         longPressTask = Task {
 49 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:9: error: setter for 'longPressTask' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |         |- error: setter for 'longPressTask' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:25: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |                         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:50:27: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 48 |         longPressTask = Task {
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
    |                           |- error: 'Task' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
 51 |             } catch {
 52 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:50:32: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 48 |         longPressTask = Task {
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
    |                                |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 51 |             } catch {
 52 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:54:13: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 52 |                 return
 53 |             }
 54 |             didLongPress = true
    |             |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 55 |             longPressAction()
 56 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:108:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
108 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:111:60: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
111 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
112 |             action: action,
113 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:111:60: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
111 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
112 |             action: action,
113 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:114:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
112 |             action: action,
113 |             longPressAction: longPressAction
114 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
115 |             Text(titleKey)
116 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:137:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
137 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
138 |             minimumDuration: minimumDuration,
139 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:140:60: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
138 |             minimumDuration: minimumDuration,
139 |             maximumDistance: maximumDistance,
140 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
141 |             action: action,
142 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:144:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
142 |             longPressAction: longPressAction
143 |         ) {
144 |             Text(title)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
145 |         }
146 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:144:13: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
142 |             longPressAction: longPressAction
143 |         ) {
144 |             Text(title)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
145 |         }
146 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:143:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
141 |             action: action,
142 |             longPressAction: longPressAction
143 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
144 |             Text(title)
145 |         }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module LongPressButton
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:39: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |                                       `- error: 'Task' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:77:30: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
 77 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:80:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
    :
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
 80 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 81 |     ) {
 82 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:107:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
108 |         self.init(
109 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:101:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:104:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
104 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:136:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
134 |         action: @escaping () -> Void,
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
137 |         self.init(
138 |             minimumDuration: minimumDuration,
[3/3] Compiling LongPressButton LongPressButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:39: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |                                       `- error: 'Task' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 11 |
 12 |     @State private var didLongPress = false
 13 |     @State private var longPressTask: Task<Void, Never>?
    |      `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:77:30: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
 77 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:80:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 72 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 73 |     ///   - label: A view that describes the purpose of the button’s action.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         minimumDuration: TimeInterval = 0.5,
 76 |         maximumDistance: CGFloat = 10,
    :
 78 |         action: @escaping () -> Void,
 79 |         longPressAction: @escaping () -> Void,
 80 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 81 |     ) {
 82 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:107:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
108 |         self.init(
109 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:101:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:104:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
103 |         maximumDistance: CGFloat = 10,
104 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 |         action: @escaping () -> Void,
106 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:136:22: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
134 |         action: @escaping () -> Void,
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
137 |         self.init(
138 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
    |         |- error: 'Button' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 17 |             label
 18 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:19:10: error: 'onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 13 |     @State private var longPressTask: Task<Void, Never>?
 14 |
 15 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 16 |         Button(action: performActionIfNeeded) {
 17 |             label
 18 |         }
 19 |         .onLongPressGesture(
    |          |- error: 'onLongPressGesture(minimumDuration:maximumDistance:perform:onPressingChanged:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 20 |             maximumDistance: maximumDistance,
 21 |             perform: {},
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:27:24: error: 'cancel()' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 24 |     }
 25 |
 26 |     private func performActionIfNeeded() {
    |                  `- note: add @available attribute to enclosing instance method
 27 |         longPressTask?.cancel()
    |                        |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 28 |         if didLongPress {
 29 |             didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:29:13: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 24 |     }
 25 |
 26 |     private func performActionIfNeeded() {
    |                  `- note: add @available attribute to enclosing instance method
 27 |         longPressTask?.cancel()
 28 |         if didLongPress {
 29 |             didLongPress = false
    |             |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 30 |         } else {
 31 |             action()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:36:24: error: 'cancel()' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
    |                        |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 37 |
 38 |         if !isPressing {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:42:17: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 40 |                 // Mark long press as ended in next run loop to be sure that button action
 41 |                 // won't trigger together with it.
 42 |                 didLongPress = false
    |                 |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 43 |             }
 44 |             return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:47:9: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 45 |         }
 46 |
 47 |         didLongPress = false
    |         |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 48 |         longPressTask = Task {
 49 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:9: error: setter for 'longPressTask' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |         |- error: setter for 'longPressTask' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:25: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:48:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 46 |
 47 |         didLongPress = false
 48 |         longPressTask = Task {
    |                         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:50:27: error: 'Task' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 48 |         longPressTask = Task {
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
    |                           |- error: 'Task' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
 51 |             } catch {
 52 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:50:32: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 48 |         longPressTask = Task {
 49 |             do {
 50 |                 try await Task.sleep(nanoseconds: UInt64(minimumDuration * 1_000_000_000))
    |                                |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 51 |             } catch {
 52 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:54:13: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add @available attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 33 |     }
 34 |
 35 |     private func handleLongPress(isPressing: Bool) {
    |                  `- note: add @available attribute to enclosing instance method
 36 |         longPressTask?.cancel()
 37 |
    :
 52 |                 return
 53 |             }
 54 |             didLongPress = true
    |             |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 55 |             longPressAction()
 56 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:108:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
106 |         longPressAction: @escaping () -> Void
107 |     ) where Label == Text {
108 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:111:60: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
111 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
112 |             action: action,
113 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:111:60: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
109 |             minimumDuration: minimumDuration,
110 |             maximumDistance: maximumDistance,
111 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
112 |             action: action,
113 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:115:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
113 |             longPressAction: longPressAction
114 |         ) {
115 |             Text(titleKey)
    |             |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
116 |         }
117 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:114:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
 98 |     ///   - action: The action to perform when the user taps the button.
 99 |     ///   - longPressAction: The action to perform when the user long presses the button.
100 |     public init(
    |            `- note: add @available attribute to enclosing initializer
101 |         _ titleKey: LocalizedStringKey,
102 |         minimumDuration: TimeInterval = 0.5,
    :
112 |             action: action,
113 |             longPressAction: longPressAction
114 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
115 |             Text(titleKey)
116 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:137:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
135 |         longPressAction: @escaping () -> Void
136 |     ) where Label == Text {
137 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
138 |             minimumDuration: minimumDuration,
139 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:140:60: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
138 |             minimumDuration: minimumDuration,
139 |             maximumDistance: maximumDistance,
140 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
141 |             action: action,
142 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:144:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
142 |             longPressAction: longPressAction
143 |         ) {
144 |             Text(title)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
145 |         }
146 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:144:13: error: 'Text' is only available in macOS 10.15 or newer
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
142 |             longPressAction: longPressAction
143 |         ) {
144 |             Text(title)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
145 |         }
146 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:143:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 60 | // MARK: - Initialization
 61 |
 62 | extension LongPressButton {
    | `- note: add @available attribute to enclosing extension
 63 |
 64 |     /// Creates a long press button that displays a custom label.
    :
127 |     ///   - action: The action to perform when the user taps the button.
128 |     ///   - longPressAction: The action to perform when the user long presses the button.
129 |     public init<S: StringProtocol>(
    |            `- note: add @available attribute to enclosing initializer
130 |         _ title: S,
131 |         minimumDuration: TimeInterval = 0.5,
    :
141 |             action: action,
142 |             longPressAction: longPressAction
143 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
144 |             Text(title)
145 |         }
BUILD FAILURE 6.1 macosSpm