The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GameAnalyticsSDK, reference 1.0.0 (8bb683), with Swift 6.1 for macOS (SPM) on 14 Jul 2026 20:24:14 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/THSoftware/GameAnalyticsSDK.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/THSoftware/GameAnalyticsSDK
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 8bb6832 Initial release — v1.0.0
Cloned https://github.com/THSoftware/GameAnalyticsSDK.git
Revision (git rev-parse @):
8bb68320870b69f815d200ede3dd3f8ef645ccda
SUCCESS checkout https://github.com/THSoftware/GameAnalyticsSDK.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/THSoftware/GameAnalyticsSDK.git
https://github.com/THSoftware/GameAnalyticsSDK.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GameAnalyticsSDK",
  "name" : "GameAnalyticsSDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "GameAnalyticsSDK",
      "targets" : [
        "GameAnalyticsSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GameAnalyticsSDKTests",
      "module_type" : "SwiftTarget",
      "name" : "GameAnalyticsSDKTests",
      "path" : "Tests/GameAnalyticsSDKTests",
      "sources" : [
        "GameAnalyticsSDKTests.swift"
      ],
      "target_dependencies" : [
        "GameAnalyticsSDK"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GameAnalyticsSDK",
      "module_type" : "SwiftTarget",
      "name" : "GameAnalyticsSDK",
      "path" : "Sources/GameAnalyticsSDK",
      "product_memberships" : [
        "GameAnalyticsSDK"
      ],
      "sources" : [
        "APIClient.swift",
        "EventQueue.swift",
        "GameAnalytics.swift",
        "Models.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
[3/7] Compiling GameAnalyticsSDK Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling GameAnalyticsSDK GameAnalytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:19:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameAnalytics' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: class 'GameAnalytics' does not conform to the 'Sendable' protocol
 19 |     private static let shared = GameAnalytics()
    |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameAnalytics' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     private var apiKey: String?
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:25:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 23 |     private let queue = EventQueue()
 24 |     private let client = APIClient()
 25 |     private var flushTask: Task<Void, Never>?
    |                            `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     private static let playerIdKey = "ga_sdk_player_id"
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:58:9: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 45 |     // MARK: - Tracking
 46 |
 47 |     public static func track(_ type: String, properties: [String: PropertyValue]? = nil) {
    |                        `- note: add @available attribute to enclosing static method
 48 |         guard shared.apiKey != nil else {
 49 |             print("[GameAnalytics] Call configure() before tracking events")
    :
 56 |             properties: properties
 57 |         )
 58 |         Task { await shared.queue.enqueue(event) }
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:58:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 45 |     // MARK: - Tracking
 46 |
 47 |     public static func track(_ type: String, properties: [String: PropertyValue]? = nil) {
    |                        `- note: add @available attribute to enclosing static method
 48 |         guard shared.apiKey != nil else {
 49 |             print("[GameAnalytics] Call configure() before tracking events")
    :
 56 |             properties: properties
 57 |         )
 58 |         Task { await shared.queue.enqueue(event) }
    |         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:95:20: error: 'cancel()' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
    |                    |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:96:21: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
    |                     |- error: 'Task' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:96:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
    |                     |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:97:20: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
    |                    |- error: 'Task' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
 99 |                 await self?.flush()
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:97:25: error: 'isCancelled' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
    |                         |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
 99 |                 await self?.flush()
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:98:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
    |                            |- error: 'Task' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 99 |                 await self?.flush()
100 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:98:33: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
    |                                 |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 99 |                 await self?.flush()
100 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:118:34: warning: non-sendable result type '[AnalyticsEvent]' cannot be sent from actor-isolated context in call to instance method 'dequeue(max:)'; this is an error in the Swift 6 language mode
116 |     private func flush() async {
117 |         guard let apiKey, let ingestURL else { return }
118 |         let events = await queue.dequeue(max: 50)
    |                                  `- warning: non-sendable result type '[AnalyticsEvent]' cannot be sent from actor-isolated context in call to instance method 'dequeue(max:)'; this is an error in the Swift 6 language mode
119 |         guard !events.isEmpty else { return }
120 |
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/Models.swift:33:8: note: consider making struct 'AnalyticsEvent' conform to the 'Sendable' protocol
31 | }
32 |
33 | struct AnalyticsEvent: Encodable {
   |        `- note: consider making struct 'AnalyticsEvent' conform to the 'Sendable' protocol
34 |     let playerId: String
35 |     let type: String
[5/7] Compiling GameAnalyticsSDK EventQueue.swift
[6/7] Emitting module GameAnalyticsSDK
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:19:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameAnalytics' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: class 'GameAnalytics' does not conform to the 'Sendable' protocol
 19 |     private static let shared = GameAnalytics()
    |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameAnalytics' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     private var apiKey: String?
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:25:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 23 |     private let queue = EventQueue()
 24 |     private let client = APIClient()
 25 |     private var flushTask: Task<Void, Never>?
    |                            `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     private static let playerIdKey = "ga_sdk_player_id"
[7/7] Compiling GameAnalyticsSDK APIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/APIClient.swift:17:57: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 1 | import Foundation
 2 |
 3 | struct APIClient {
   |        `- note: add @available attribute to enclosing struct
 4 |     enum APIError: Error {
 5 |         case badResponse(Int)
 6 |     }
 7 |
 8 |     func send(events: [AnalyticsEvent], apiKey: String, to url: URL) async throws {
   |          `- note: add @available attribute to enclosing instance method
 9 |         let payload = IngestPayload(apiKey: apiKey, events: events)
10 |
   :
15 |         request.timeoutInterval = 10
16 |
17 |         let (_, response) = try await URLSession.shared.data(for: request)
   |                                                         |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
   |                                                         `- note: add 'if #available' version check
18 |
19 |         guard let http = response as? HTTPURLResponse,
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/6] Compiling GameAnalyticsSDK EventQueue.swift
[3/6] Compiling GameAnalyticsSDK Models.swift
[4/6] Emitting module GameAnalyticsSDK
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:25:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 23 |     private let queue = EventQueue()
 24 |     private let client = APIClient()
 25 |     private var flushTask: Task<Void, Never>?
    |                            `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     private static let playerIdKey = "ga_sdk_player_id"
[5/6] Compiling GameAnalyticsSDK APIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/APIClient.swift:17:57: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
 1 | import Foundation
 2 |
 3 | struct APIClient {
   |        `- note: add @available attribute to enclosing struct
 4 |     enum APIError: Error {
 5 |         case badResponse(Int)
 6 |     }
 7 |
 8 |     func send(events: [AnalyticsEvent], apiKey: String, to url: URL) async throws {
   |          `- note: add @available attribute to enclosing instance method
 9 |         let payload = IngestPayload(apiKey: apiKey, events: events)
10 |
   :
15 |         request.timeoutInterval = 10
16 |
17 |         let (_, response) = try await URLSession.shared.data(for: request)
   |                                                         |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
   |                                                         `- note: add 'if #available' version check
18 |
19 |         guard let http = response as? HTTPURLResponse,
[6/6] Compiling GameAnalyticsSDK GameAnalytics.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:25:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 23 |     private let queue = EventQueue()
 24 |     private let client = APIClient()
 25 |     private var flushTask: Task<Void, Never>?
    |                            `- error: 'Task' is only available in macOS 10.15 or newer
 26 |
 27 |     private static let playerIdKey = "ga_sdk_player_id"
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:58:9: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 45 |     // MARK: - Tracking
 46 |
 47 |     public static func track(_ type: String, properties: [String: PropertyValue]? = nil) {
    |                        `- note: add @available attribute to enclosing static method
 48 |         guard shared.apiKey != nil else {
 49 |             print("[GameAnalytics] Call configure() before tracking events")
    :
 56 |             properties: properties
 57 |         )
 58 |         Task { await shared.queue.enqueue(event) }
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:58:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 45 |     // MARK: - Tracking
 46 |
 47 |     public static func track(_ type: String, properties: [String: PropertyValue]? = nil) {
    |                        `- note: add @available attribute to enclosing static method
 48 |         guard shared.apiKey != nil else {
 49 |             print("[GameAnalytics] Call configure() before tracking events")
    :
 56 |             properties: properties
 57 |         )
 58 |         Task { await shared.queue.enqueue(event) }
    |         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 59 |     }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:95:20: error: 'cancel()' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
    |                    |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:96:21: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
    |                     |- error: 'Task' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:96:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
    |                     |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:97:20: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
    |                    |- error: 'Task' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
 99 |                 await self?.flush()
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:97:25: error: 'isCancelled' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
    |                         |- error: 'isCancelled' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
 99 |                 await self?.flush()
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:98:28: error: 'Task' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
    |                            |- error: 'Task' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 99 |                 await self?.flush()
100 |             }
/Users/admin/builder/spi-builder-workspace/Sources/GameAnalyticsSDK/GameAnalytics.swift:98:33: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
 16 | /// GameAnalytics.track("power_up_collected", properties: ["type": "shield"])
 17 | /// ```
 18 | public final class GameAnalytics {
    |                    `- note: add @available attribute to enclosing class
 19 |     private static let shared = GameAnalytics()
 20 |
    :
 92 |     }
 93 |
 94 |     private func startFlushTimer() {
    |                  `- note: add @available attribute to enclosing instance method
 95 |         flushTask?.cancel()
 96 |         flushTask = Task { [weak self] in
 97 |             while !Task.isCancelled {
 98 |                 try? await Task.sleep(nanoseconds: 30_000_000_000)
    |                                 |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 99 |                 await self?.flush()
100 |             }
BUILD FAILURE 6.1 macosSpm