The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GameAnalyticsSDK, reference main (5b187f), with Swift 6.3 for macOS (SPM) on 14 Jul 2026 20:14:49 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/THSoftware/GameAnalyticsSDK
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5b187f1 Add MIT LICENSE file
Cloned https://github.com/THSoftware/GameAnalyticsSDK.git
Revision (git rev-parse @):
5b187f175b336e1ee34c0b40760feb50ac2349a9
SUCCESS checkout https://github.com/THSoftware/GameAnalyticsSDK.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "gameanalyticssdk",
      "name": "GameAnalyticsSDK",
      "url": "https://github.com/THSoftware/GameAnalyticsSDK.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GameAnalyticsSDK",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/THSoftware/GameAnalyticsSDK.git
[1/34] Fetching gameanalyticssdk
Fetched https://github.com/THSoftware/GameAnalyticsSDK.git from cache (0.56s)
Creating working copy for https://github.com/THSoftware/GameAnalyticsSDK.git
Working copy of https://github.com/THSoftware/GameAnalyticsSDK.git resolved at main (5b187f1)
warning: '.resolve-product-dependencies': dependency 'gameanalyticssdk' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/THSoftware/GameAnalyticsSDK.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] 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"
[4/7] Compiling GameAnalyticsSDK Models.swift
[5/7] Compiling GameAnalyticsSDK EventQueue.swift
[6/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,
[7/7] 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(name: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(name: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(name: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(name: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.3 macosSpm