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.0 for macOS (SPM) on 2 Nov 2024 08:25:27 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
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
========================================
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.73s)
Creating working copy for https://github.com/marcusziade/StarCraftKit.git
Working copy of https://github.com/marcusziade/StarCraftKit.git resolved at master (c4d485a)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/marcusziade/StarCraftKit.git
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
Building for debugging...
[0/7] Write sources
[2/7] Write StarCraftCLI-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/17] Compiling StarCraftKit StarCraftAPI.swift
[6/17] Compiling StarCraftKit Array+Ext.swift
[7/17] Emitting module StarCraftKit
[8/17] Compiling StarCraftKit TournamentResponse.swift
[9/17] Compiling StarCraftKit PlayersResponse.swift
[10/17] Compiling StarCraftKit MatchResponse.swift
[11/17] Compiling StarCraftKit PandaScoreAPIError.swift
[12/17] Compiling StarCraftKit DateFormatter+Ext.swift
[13/17] Compiling StarCraftKit SharedPandaScore.swift
[14/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[15/36] Emitting module StarCraftCLI
[16/37] Compiling StarCraftCLI ActivePlayersCommand.swift
[17/37] Compiling StarCraftCLI Command.swift
[18/37] Compiling StarCraftCLI TUIStateManager.swift
[19/37] Compiling StarCraftCLI ANSIColor.swift
[20/37] Compiling StarCraftCLI OngoingTournamentsCommand.swift
[21/37] Compiling StarCraftCLI PlayerActivityCommand.swift
[22/37] Compiling StarCraftCLI LiveStreamsCommand.swift
[23/37] Compiling StarCraftCLI LiveTournamentsCommand.swift
[24/37] Compiling StarCraftCLI TournamentDetailsCommand.swift
[25/37] Compiling StarCraftCLI UpcomingStreamsCommand.swift
[26/37] Compiling StarCraftCLI GameStatsCommand.swift
[27/37] Compiling StarCraftCLI LeagueDetailsCommand.swift
[28/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])"
[29/37] Compiling StarCraftCLI MatchStatsCommand.swift
[30/37] Compiling StarCraftCLI OngoingMatchesCommand.swift
[31/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()
[32/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()
[33/37] Compiling StarCraftCLI PlayerDetailsCommand.swift
[34/37] Compiling StarCraftCLI SeriesDetailsCommand.swift
[34/37] Write Objects.LinkFileList
[35/37] Linking StarCraftCLI
[36/37] Applying StarCraftCLI
Build complete! (17.36s)
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.