The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of StarCraftKit, reference v1.0.0 (ddaa1f), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 09:26:36 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/StarCraftKit.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marcusziade/StarCraftKit
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at ddaa1fb Revert "Update README.md"
Cloned https://github.com/marcusziade/StarCraftKit.git
Revision (git rev-parse @):
ddaa1fb32762323c2b7114122d3322ad9b446c11
SUCCESS checkout https://github.com/marcusziade/StarCraftKit.git at v1.0.0
========================================
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",
  "dependencies": [
    {
      "identity": "starcraftkit",
      "name": "StarCraftKit",
      "url": "https://github.com/marcusziade/StarCraftKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StarCraftKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/marcusziade/StarCraftKit.git
[1/266] Fetching starcraftkit
Fetched https://github.com/marcusziade/StarCraftKit.git from cache (0.75s)
Creating working copy for https://github.com/marcusziade/StarCraftKit.git
Working copy of https://github.com/marcusziade/StarCraftKit.git resolved at v1.0.0 (ddaa1fb)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/marcusziade/StarCraftKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "StarCraftKit",
  "name" : "StarCraftKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "StarCraftKit",
      "targets" : [
        "StarCraftKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StarCraftCLI",
      "targets" : [
        "StarCraftCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StarCraftKitTests",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKitTests",
      "path" : "Tests/StarCraftKitTests",
      "sources" : [
        "StarCraftAPI_Tests.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StarCraftKit",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKit",
      "path" : "Sources/StarCraftKit",
      "product_memberships" : [
        "StarCraftKit",
        "StarCraftCLI"
      ],
      "sources" : [
        "API_PandaScore/Models/DateFormatter+Ext.swift",
        "API_PandaScore/Models/SharedPandaScore.swift",
        "API_PandaScore/PandaScoreAPIError.swift",
        "API_PandaScore/Responses/MatchResponse.swift",
        "API_PandaScore/Responses/PlayersResponse.swift",
        "API_PandaScore/Responses/TournamentResponse.swift",
        "API_PandaScore/StarCraft2Endpoint.swift",
        "API_PandaScore/StarCraftAPI.swift",
        "Extensions/Array+Ext.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "StarCraftCLI",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftCLI",
      "path" : "Sources/StarCraftCLI",
      "product_memberships" : [
        "StarCraftCLI"
      ],
      "sources" : [
        "Commands/ActivePlayersCommand.swift",
        "Commands/Command.swift",
        "Commands/GameStatsCommand.swift",
        "Commands/LeagueDetailsCommand.swift",
        "Commands/LiveStreamsCommand.swift",
        "Commands/LiveTournamentsCommand.swift",
        "Commands/MatchStatsCommand.swift",
        "Commands/OngoingMatchesCommand.swift",
        "Commands/OngoingTournamentsCommand.swift",
        "Commands/PlayerActivityCommand.swift",
        "Commands/PlayerDetailsCommand.swift",
        "Commands/SeriesDetailsCommand.swift",
        "Commands/TournamentDetailsCommand.swift",
        "Commands/UpcomingStreamsCommand.swift",
        "Commands/UpcomingTournamentsCommand.swift",
        "StarCraftTUI.swift",
        "TUIStateManager.swift",
        "Utilities/ANSIColor.swift",
        "Utilities/LoadingAnimator.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/7] Write sources
[2/7] Write StarCraftCLI-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/17] Compiling StarCraftKit PlayersResponse.swift
[6/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[7/17] Compiling StarCraftKit Array+Ext.swift
[8/17] Compiling StarCraftKit StarCraftAPI.swift
[9/17] Compiling StarCraftKit TournamentResponse.swift
[10/17] Compiling StarCraftKit MatchResponse.swift
[11/17] Compiling StarCraftKit SharedPandaScore.swift
[12/17] Compiling StarCraftKit PandaScoreAPIError.swift
[13/17] Compiling StarCraftKit DateFormatter+Ext.swift
[14/17] Emitting module StarCraftKit
[15/36] Compiling StarCraftCLI PlayerDetailsCommand.swift
[16/36] Compiling StarCraftCLI SeriesDetailsCommand.swift
[17/36] Compiling StarCraftCLI TUIStateManager.swift
[18/36] Compiling StarCraftCLI ANSIColor.swift
[19/37] Compiling StarCraftCLI LoadingAnimator.swift
/Users/admin/builder/spi-builder-workspace/Sources/StarCraftCLI/Utilities/LoadingAnimator.swift:18:30: warning: capture of 'self' with non-sendable type 'LoadingAnimator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | final class LoadingAnimator {
   |             `- note: class 'LoadingAnimator' does not conform to the 'Sendable' protocol
 4 |     private let frames = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
 5 |     private var animationFrame = 0
   :
16 |         let loadingQueue = DispatchQueue(label: "loading.animation")
17 |         loadingQueue.async { [weak self] in
18 |             guard let self = self else { return }
   |                              `- warning: capture of 'self' with non-sendable type 'LoadingAnimator?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |             while self.isRunning {
20 |                 let newMessage = "Executing \(self.command) \(self.frames[self.animationFrame])"
[20/37] Compiling StarCraftCLI TournamentDetailsCommand.swift
[21/37] Compiling StarCraftCLI UpcomingStreamsCommand.swift
[22/37] Compiling StarCraftCLI OngoingTournamentsCommand.swift
[23/37] Compiling StarCraftCLI PlayerActivityCommand.swift
[24/37] Compiling StarCraftCLI GameStatsCommand.swift
[25/37] Compiling StarCraftCLI LeagueDetailsCommand.swift
[26/37] Compiling StarCraftCLI ActivePlayersCommand.swift
[27/37] Compiling StarCraftCLI Command.swift
[28/37] Compiling StarCraftCLI MatchStatsCommand.swift
[29/37] Compiling StarCraftCLI OngoingMatchesCommand.swift
[30/37] Compiling StarCraftCLI UpcomingTournamentsCommand.swift
/Users/admin/builder/spi-builder-workspace/Sources/StarCraftCLI/StarCraftTUI.swift:199:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
197 |         let manager = stateManager
198 |
199 |         Task { [weak manager] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
200 |             do {
201 |                 try await cmd.execute()
    |                           `- note: closure captures non-Sendable 'cmd'
202 |             } catch {
203 |                 manager?.loadingMessage = "\(ANSIColor.warning)Error: \(error)\(ANSIColor.reset)"
    |                 `- note: closure captures non-Sendable 'manager'
204 |             }
205 |             manager?.stopLoading()
[31/37] Compiling StarCraftCLI StarCraftTUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/StarCraftCLI/StarCraftTUI.swift:199:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
197 |         let manager = stateManager
198 |
199 |         Task { [weak manager] in
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
200 |             do {
201 |                 try await cmd.execute()
    |                           `- note: closure captures non-Sendable 'cmd'
202 |             } catch {
203 |                 manager?.loadingMessage = "\(ANSIColor.warning)Error: \(error)\(ANSIColor.reset)"
    |                 `- note: closure captures non-Sendable 'manager'
204 |             }
205 |             manager?.stopLoading()
[32/37] Compiling StarCraftCLI LiveStreamsCommand.swift
[33/37] Compiling StarCraftCLI LiveTournamentsCommand.swift
[34/37] Emitting module StarCraftCLI
[34/37] Write Objects.LinkFileList
[35/37] Linking StarCraftCLI
[36/37] Applying StarCraftCLI
Build complete! (16.28s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "StarCraftKit",
  "name" : "StarCraftKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "StarCraftKit",
      "targets" : [
        "StarCraftKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "StarCraftCLI",
      "targets" : [
        "StarCraftCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StarCraftKitTests",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKitTests",
      "path" : "Tests/StarCraftKitTests",
      "sources" : [
        "StarCraftAPI_Tests.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StarCraftKit",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftKit",
      "path" : "Sources/StarCraftKit",
      "product_memberships" : [
        "StarCraftKit",
        "StarCraftCLI"
      ],
      "sources" : [
        "API_PandaScore/Models/DateFormatter+Ext.swift",
        "API_PandaScore/Models/SharedPandaScore.swift",
        "API_PandaScore/PandaScoreAPIError.swift",
        "API_PandaScore/Responses/MatchResponse.swift",
        "API_PandaScore/Responses/PlayersResponse.swift",
        "API_PandaScore/Responses/TournamentResponse.swift",
        "API_PandaScore/StarCraft2Endpoint.swift",
        "API_PandaScore/StarCraftAPI.swift",
        "Extensions/Array+Ext.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "StarCraftCLI",
      "module_type" : "SwiftTarget",
      "name" : "StarCraftCLI",
      "path" : "Sources/StarCraftCLI",
      "product_memberships" : [
        "StarCraftCLI"
      ],
      "sources" : [
        "Commands/ActivePlayersCommand.swift",
        "Commands/Command.swift",
        "Commands/GameStatsCommand.swift",
        "Commands/LeagueDetailsCommand.swift",
        "Commands/LiveStreamsCommand.swift",
        "Commands/LiveTournamentsCommand.swift",
        "Commands/MatchStatsCommand.swift",
        "Commands/OngoingMatchesCommand.swift",
        "Commands/OngoingTournamentsCommand.swift",
        "Commands/PlayerActivityCommand.swift",
        "Commands/PlayerDetailsCommand.swift",
        "Commands/SeriesDetailsCommand.swift",
        "Commands/TournamentDetailsCommand.swift",
        "Commands/UpcomingStreamsCommand.swift",
        "Commands/UpcomingTournamentsCommand.swift",
        "StarCraftTUI.swift",
        "TUIStateManager.swift",
        "Utilities/ANSIColor.swift",
        "Utilities/LoadingAnimator.swift"
      ],
      "target_dependencies" : [
        "StarCraftKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Done.