The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of StarCraftKit, reference master (c4d485), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 19:28:00 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/StarCraftKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marcusziade/StarCraftKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c4d485a Update README.md
Cloned https://github.com/marcusziade/StarCraftKit.git
Revision (git rev-parse @):
c4d485af27ad53dc8c30fefacf221a1de05f9565
SUCCESS checkout https://github.com/marcusziade/StarCraftKit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/marcusziade/StarCraftKit.git
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.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/7] Write sources
[1/7] Write StarCraftCLI-entitlement.plist
[2/7] Write sources
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[6/17] Compiling StarCraftKit StarCraftAPI.swift
[7/17] Compiling StarCraftKit TournamentResponse.swift
[8/17] Compiling StarCraftKit Array+Ext.swift
[9/17] Compiling StarCraftKit PlayersResponse.swift
[10/17] Compiling StarCraftKit PandaScoreAPIError.swift
[11/17] Compiling StarCraftKit DateFormatter+Ext.swift
[12/17] Compiling StarCraftKit SharedPandaScore.swift
[13/17] Compiling StarCraftKit MatchResponse.swift
[14/17] Emitting module StarCraftKit
[15/36] Compiling StarCraftCLI TUIStateManager.swift
[16/36] Compiling StarCraftCLI ANSIColor.swift
[17/37] Compiling StarCraftCLI TournamentDetailsCommand.swift
[18/37] Compiling StarCraftCLI UpcomingStreamsCommand.swift
[19/37] Compiling StarCraftCLI GameStatsCommand.swift
[20/37] Compiling StarCraftCLI LeagueDetailsCommand.swift
[21/37] Compiling StarCraftCLI LiveStreamsCommand.swift
[22/37] Compiling StarCraftCLI LiveTournamentsCommand.swift
[23/37] Compiling StarCraftCLI PlayerDetailsCommand.swift
[24/37] Compiling StarCraftCLI SeriesDetailsCommand.swift
[25/37] Compiling StarCraftCLI MatchStatsCommand.swift
[26/37] Compiling StarCraftCLI OngoingMatchesCommand.swift
[27/37] Emitting module StarCraftCLI
[28/37] Compiling StarCraftCLI ActivePlayersCommand.swift
[29/37] Compiling StarCraftCLI Command.swift
[30/37] Compiling StarCraftCLI OngoingTournamentsCommand.swift
[31/37] Compiling StarCraftCLI PlayerActivityCommand.swift
[32/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()
[33/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()
[34/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
 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
19 |             while self.isRunning {
20 |                 let newMessage = "Executing \(self.command) \(self.frames[self.animationFrame])"
[34/37] Write Objects.LinkFileList
[35/37] Linking StarCraftCLI
[36/37] Applying StarCraftCLI
Build complete! (7.37s)
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.