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 v1.0.0 (ddaa1f), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 19:28:05 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: 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
========================================
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
[1/7] Write sources
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/17] Compiling StarCraftKit DateFormatter+Ext.swift
[6/17] Compiling StarCraftKit Array+Ext.swift
[7/17] Compiling StarCraftKit StarCraftAPI.swift
[8/17] Compiling StarCraftKit PlayersResponse.swift
[9/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[10/17] Compiling StarCraftKit PandaScoreAPIError.swift
[11/17] Compiling StarCraftKit TournamentResponse.swift
[12/17] Compiling StarCraftKit MatchResponse.swift
[13/17] Emitting module StarCraftKit
[14/17] Compiling StarCraftKit SharedPandaScore.swift
[15/36] Compiling StarCraftCLI TUIStateManager.swift
[16/36] Compiling StarCraftCLI ANSIColor.swift
[17/36] Compiling StarCraftCLI OngoingTournamentsCommand.swift
[18/36] Compiling StarCraftCLI PlayerActivityCommand.swift
[19/36] Compiling StarCraftCLI TournamentDetailsCommand.swift
[20/36] Compiling StarCraftCLI UpcomingStreamsCommand.swift
[21/36] Compiling StarCraftCLI GameStatsCommand.swift
[22/36] Compiling StarCraftCLI LeagueDetailsCommand.swift
[23/36] Compiling StarCraftCLI PlayerDetailsCommand.swift
[24/36] Compiling StarCraftCLI SeriesDetailsCommand.swift
[25/36] Compiling StarCraftCLI MatchStatsCommand.swift
[26/36] Compiling StarCraftCLI OngoingMatchesCommand.swift
[27/36] Emitting module StarCraftCLI
[28/36] Compiling StarCraftCLI LiveStreamsCommand.swift
[29/36] Compiling StarCraftCLI LiveTournamentsCommand.swift
[30/36] 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/36] 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/36] Compiling StarCraftCLI ActivePlayersCommand.swift
[33/36] Compiling StarCraftCLI Command.swift
[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! (8.07s)
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.