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 ChessKit, reference develop (dd3538), with Swift 6.1 for macOS (SPM) on 19 May 2025 07:03:10 UTC.

Swift 6 data race errors: 4

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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aperechnev/ChessKit.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aperechnev/ChessKit
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at dd35385 Update .gitignore
Cloned https://github.com/aperechnev/ChessKit.git
Revision (git rev-parse @):
dd353859fb993145932316401589f15518741eeb
SUCCESS checkout https://github.com/aperechnev/ChessKit.git at develop
========================================
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": "chesskit",
      "name": "ChessKit",
      "url": "https://github.com/aperechnev/ChessKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ChessKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/aperechnev/ChessKit.git
[1/1713] Fetching chesskit
Fetched https://github.com/aperechnev/ChessKit.git from cache (1.00s)
Creating working copy for https://github.com/aperechnev/ChessKit.git
Working copy of https://github.com/aperechnev/ChessKit.git resolved at develop (dd35385)
warning: '.resolve-product-dependencies': dependency 'chesskit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aperechnev/ChessKit.git
https://github.com/aperechnev/ChessKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ChessKit",
  "name" : "ChessKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ChessKit",
      "targets" : [
        "ChessKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ChessKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ChessKitTests",
      "path" : "Tests/ChessKitTests",
      "sources" : [
        "BoardTest.swift",
        "FenSerializationTests.swift",
        "GameTests.swift",
        "MoveTests.swift",
        "Performance/BoardPerformanceTests.swift",
        "PieceColorTests.swift",
        "PieceTests.swift",
        "PositionTests.swift",
        "RaysTests.swift",
        "RealGamesTests.swift",
        "Rules/Standard/BishopMovesTests.swift",
        "Rules/Standard/CheckMovesTests.swift",
        "Rules/Standard/CheckmateTests.swift",
        "Rules/Standard/KingMovesTests.swift",
        "Rules/Standard/KnightMovesTests.swift",
        "Rules/Standard/MovesTests.swift",
        "Rules/Standard/PawnMovesTests.swift",
        "Rules/Standard/QueenMovesTests.swift",
        "Rules/Standard/RookMovesTests.swift",
        "Rules/Standard/StandardRulesTests.swift",
        "SanSerializationTests.swift",
        "SquareTest.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ChessKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ChessKit",
      "module_type" : "SwiftTarget",
      "name" : "ChessKit",
      "path" : "Sources/ChessKit",
      "product_memberships" : [
        "ChessKit"
      ],
      "sources" : [
        "Board/Bitboards.swift",
        "Board/Board.swift",
        "Board/Square.swift",
        "FenSerialization.swift",
        "Game.swift",
        "Move.swift",
        "Piece/Piece.swift",
        "Piece/PieceColor.swift",
        "Piece/PieceKind.swift",
        "Position.swift",
        "Rays.swift",
        "Rules/Piece Moving/BishopMoving.swift",
        "Rules/Piece Moving/KingMoving.swift",
        "Rules/Piece Moving/KnightMoving.swift",
        "Rules/Piece Moving/LongRangeMoving.swift",
        "Rules/Piece Moving/MovingTranslations.swift",
        "Rules/Piece Moving/PawnMoving.swift",
        "Rules/Piece Moving/PieceMoving.swift",
        "Rules/Piece Moving/QueenMoving.swift",
        "Rules/Piece Moving/RangeMoving.swift",
        "Rules/Piece Moving/RookMoving.swift",
        "Rules/Piece Moving/ShortRangeMoving.swift",
        "Rules/Rules.swift",
        "Rules/StandardRules.swift",
        "SanSerialization.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/26] Emitting module ChessKit
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/FenSerialization.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | /// FEN positions serialization and deserialization.
 10 | public class FenSerialization {
    |              `- note: class 'FenSerialization' does not conform to the 'Sendable' protocol
 11 |
 12 |     /// `FenSerialization` object with default settings.
 13 |     public static let `default` = FenSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rays.swift:14:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class Rays {
   |       `- note: class 'Rays' does not conform to the 'Sendable' protocol
11 |
12 |     private(set) var cross = [Bitboard:Bitboard]()
13 |
14 |     static let `default` = Rays()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     init() {
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rules/Piece Moving/MovingTranslations.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | class MovingTranslations {
   |       `- note: class 'MovingTranslations' does not conform to the 'Sendable' protocol
10 |
11 |     static let `default` = MovingTranslations()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private(set) lazy var diagonal = [
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/SanSerialization.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// SAN moves serialization and deserialization.
 11 | public class SanSerialization {
    |              `- note: class 'SanSerialization' does not conform to the 'Sendable' protocol
 12 |
 13 |     private let kCastlingKing = "O-O"
    :
 15 |
 16 |     /// `SanSerialization` object with default settings.
 17 |     public static let `default` = SanSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     // MARK: - Serialization
[4/28] Compiling ChessKit ShortRangeMoving.swift
[5/28] Compiling ChessKit Rules.swift
[6/28] Compiling ChessKit Bitboards.swift
[7/28] Compiling ChessKit Board.swift
[8/28] Compiling ChessKit Square.swift
[9/28] Compiling ChessKit Piece.swift
[10/28] Compiling ChessKit PieceColor.swift
[11/28] Compiling ChessKit PieceKind.swift
[12/28] Compiling ChessKit PieceMoving.swift
[13/28] Compiling ChessKit QueenMoving.swift
[14/28] Compiling ChessKit FenSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/FenSerialization.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | /// FEN positions serialization and deserialization.
 10 | public class FenSerialization {
    |              `- note: class 'FenSerialization' does not conform to the 'Sendable' protocol
 11 |
 12 |     /// `FenSerialization` object with default settings.
 13 |     public static let `default` = FenSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     /**
[15/28] Compiling ChessKit Game.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/FenSerialization.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | /// FEN positions serialization and deserialization.
 10 | public class FenSerialization {
    |              `- note: class 'FenSerialization' does not conform to the 'Sendable' protocol
 11 |
 12 |     /// `FenSerialization` object with default settings.
 13 |     public static let `default` = FenSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     /**
[16/28] Compiling ChessKit Move.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/FenSerialization.swift:13:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | /// FEN positions serialization and deserialization.
 10 | public class FenSerialization {
    |              `- note: class 'FenSerialization' does not conform to the 'Sendable' protocol
 11 |
 12 |     /// `FenSerialization` object with default settings.
 13 |     public static let `default` = FenSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'FenSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 |     /**
[17/28] Compiling ChessKit StandardRules.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/SanSerialization.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// SAN moves serialization and deserialization.
 11 | public class SanSerialization {
    |              `- note: class 'SanSerialization' does not conform to the 'Sendable' protocol
 12 |
 13 |     private let kCastlingKing = "O-O"
    :
 15 |
 16 |     /// `SanSerialization` object with default settings.
 17 |     public static let `default` = SanSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     // MARK: - Serialization
[18/28] Compiling ChessKit SanSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/SanSerialization.swift:17:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// SAN moves serialization and deserialization.
 11 | public class SanSerialization {
    |              `- note: class 'SanSerialization' does not conform to the 'Sendable' protocol
 12 |
 13 |     private let kCastlingKing = "O-O"
    :
 15 |
 16 |     /// `SanSerialization` object with default settings.
 17 |     public static let `default` = SanSerialization()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SanSerialization' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     // MARK: - Serialization
[19/28] Compiling ChessKit KingMoving.swift
[20/28] Compiling ChessKit KnightMoving.swift
[21/28] Compiling ChessKit LongRangeMoving.swift
[22/28] Compiling ChessKit MovingTranslations.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rules/Piece Moving/MovingTranslations.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | class MovingTranslations {
   |       `- note: class 'MovingTranslations' does not conform to the 'Sendable' protocol
10 |
11 |     static let `default` = MovingTranslations()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private(set) lazy var diagonal = [
[23/28] Compiling ChessKit PawnMoving.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rules/Piece Moving/MovingTranslations.swift:11:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | class MovingTranslations {
   |       `- note: class 'MovingTranslations' does not conform to the 'Sendable' protocol
10 |
11 |     static let `default` = MovingTranslations()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MovingTranslations' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     private(set) lazy var diagonal = [
[24/28] Compiling ChessKit Position.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rays.swift:14:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class Rays {
   |       `- note: class 'Rays' does not conform to the 'Sendable' protocol
11 |
12 |     private(set) var cross = [Bitboard:Bitboard]()
13 |
14 |     static let `default` = Rays()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     init() {
[25/28] Compiling ChessKit Rays.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rays.swift:14:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class Rays {
   |       `- note: class 'Rays' does not conform to the 'Sendable' protocol
11 |
12 |     private(set) var cross = [Bitboard:Bitboard]()
13 |
14 |     static let `default` = Rays()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     init() {
[26/28] Compiling ChessKit BishopMoving.swift
/Users/admin/builder/spi-builder-workspace/Sources/ChessKit/Rays.swift:14:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | class Rays {
   |       `- note: class 'Rays' does not conform to the 'Sendable' protocol
11 |
12 |     private(set) var cross = [Bitboard:Bitboard]()
13 |
14 |     static let `default` = Rays()
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Rays' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     init() {
[27/28] Compiling ChessKit RangeMoving.swift
[28/28] Compiling ChessKit RookMoving.swift
Build complete! (4.38s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ChessKit",
  "name" : "ChessKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ChessKit",
      "targets" : [
        "ChessKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ChessKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ChessKitTests",
      "path" : "Tests/ChessKitTests",
      "sources" : [
        "BoardTest.swift",
        "FenSerializationTests.swift",
        "GameTests.swift",
        "MoveTests.swift",
        "Performance/BoardPerformanceTests.swift",
        "PieceColorTests.swift",
        "PieceTests.swift",
        "PositionTests.swift",
        "RaysTests.swift",
        "RealGamesTests.swift",
        "Rules/Standard/BishopMovesTests.swift",
        "Rules/Standard/CheckMovesTests.swift",
        "Rules/Standard/CheckmateTests.swift",
        "Rules/Standard/KingMovesTests.swift",
        "Rules/Standard/KnightMovesTests.swift",
        "Rules/Standard/MovesTests.swift",
        "Rules/Standard/PawnMovesTests.swift",
        "Rules/Standard/QueenMovesTests.swift",
        "Rules/Standard/RookMovesTests.swift",
        "Rules/Standard/StandardRulesTests.swift",
        "SanSerializationTests.swift",
        "SquareTest.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ChessKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ChessKit",
      "module_type" : "SwiftTarget",
      "name" : "ChessKit",
      "path" : "Sources/ChessKit",
      "product_memberships" : [
        "ChessKit"
      ],
      "sources" : [
        "Board/Bitboards.swift",
        "Board/Board.swift",
        "Board/Square.swift",
        "FenSerialization.swift",
        "Game.swift",
        "Move.swift",
        "Piece/Piece.swift",
        "Piece/PieceColor.swift",
        "Piece/PieceKind.swift",
        "Position.swift",
        "Rays.swift",
        "Rules/Piece Moving/BishopMoving.swift",
        "Rules/Piece Moving/KingMoving.swift",
        "Rules/Piece Moving/KnightMoving.swift",
        "Rules/Piece Moving/LongRangeMoving.swift",
        "Rules/Piece Moving/MovingTranslations.swift",
        "Rules/Piece Moving/PawnMoving.swift",
        "Rules/Piece Moving/PieceMoving.swift",
        "Rules/Piece Moving/QueenMoving.swift",
        "Rules/Piece Moving/RangeMoving.swift",
        "Rules/Piece Moving/RookMoving.swift",
        "Rules/Piece Moving/ShortRangeMoving.swift",
        "Rules/Rules.swift",
        "Rules/StandardRules.swift",
        "SanSerialization.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.