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 Dec 2024 09:26:50 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: 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 (1.24s)
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
{
  "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 StarCraftAPI.swift
[6/17] Compiling StarCraftKit Array+Ext.swift
[7/17] Compiling StarCraftKit MatchResponse.swift
[8/17] Compiling StarCraftKit PlayersResponse.swift
[9/17] Compiling StarCraftKit StarCraft2Endpoint.swift
[10/17] Compiling StarCraftKit TournamentResponse.swift
[11/17] Compiling StarCraftKit PandaScoreAPIError.swift
[12/17] Compiling StarCraftKit SharedPandaScore.swift
[13/17] Compiling StarCraftKit DateFormatter+Ext.swift
[14/17] Emitting module StarCraftKit
[15/36] Compiling StarCraftCLI TUIStateManager.swift
[16/36] Compiling StarCraftCLI ANSIColor.swift
[17/36] Compiling StarCraftCLI MatchStatsCommand.swift
[18/36] Compiling StarCraftCLI OngoingMatchesCommand.swift
[19/36] Compiling StarCraftCLI OngoingTournamentsCommand.swift
[20/36] Compiling StarCraftCLI PlayerActivityCommand.swift
[21/36] Compiling StarCraftCLI TournamentDetailsCommand.swift
[22/36] Compiling StarCraftCLI UpcomingStreamsCommand.swift
[23/36] Compiling StarCraftCLI LiveStreamsCommand.swift
[24/36] Compiling StarCraftCLI LiveTournamentsCommand.swift
[25/36] Compiling StarCraftCLI PlayerDetailsCommand.swift
[26/36] Compiling StarCraftCLI SeriesDetailsCommand.swift
[27/36] Compiling StarCraftCLI ActivePlayersCommand.swift
[28/36] Compiling StarCraftCLI Command.swift
[29/36] Emitting module StarCraftCLI
[30/36] Compiling StarCraftCLI GameStatsCommand.swift
[31/36] Compiling StarCraftCLI LeagueDetailsCommand.swift
[32/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()
[33/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()
[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; 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])"
[34/37] Write Objects.LinkFileList
[35/37] Linking StarCraftCLI
[36/37] Applying StarCraftCLI
Build complete! (16.46s)
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.