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 GameKitService.swift, reference main (a9383f), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 00:59:56 UTC.

Swift 6 data race errors: 1

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftPackageRepository/GameKitService.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/GameKitService.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a9383f6 Update README.md
Cloned https://github.com/SwiftPackageRepository/GameKitService.swift.git
Revision (git rev-parse @):
a9383f6abd5309ca97f7de3cf653ac60fd8b19b4
SUCCESS checkout https://github.com/SwiftPackageRepository/GameKitService.swift.git at main
========================================
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": "gamekitservice.swift",
      "name": "GameKitService.swift",
      "url": "https://github.com/SwiftPackageRepository/GameKitService.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GameKitService.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/SwiftPackageRepository/GameKitService.swift.git
[1/50] Fetching gamekitservice.swift
Fetched https://github.com/SwiftPackageRepository/GameKitService.swift.git from cache (0.66s)
Creating working copy for https://github.com/SwiftPackageRepository/GameKitService.swift.git
Working copy of https://github.com/SwiftPackageRepository/GameKitService.swift.git resolved at main (a9383f6)
warning: '.resolve-product-dependencies': dependency 'gamekitservice.swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SwiftPackageRepository/GameKitService.swift.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 -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--7754E27361AE5C74.txt
[3/5] Compiling GameKitService GameKitServiceProtocol.swift
[4/5] Compiling GameKitService GameKitService.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitService/GameKitService.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameKitService' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 | /// GameKitService
 31 | public class GameKitService : NSObject, GKMatchDelegate, GKLocalPlayerListener, GameKitServiceProtocol {
    |              `- note: class 'GameKitService' does not conform to the 'Sendable' protocol
 32 |
 33 |     fileprivate var players = [String : GKPlayer]()
    :
 40 |     public var match: GKMatch?
 41 |
 42 |     public static let shared = GameKitService()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameKitService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     private override init() {
[5/5] Emitting module GameKitService
/Users/admin/builder/spi-builder-workspace/Sources/GameKitService/GameKitService.swift:42:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameKitService' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |
 30 | /// GameKitService
 31 | public class GameKitService : NSObject, GKMatchDelegate, GKLocalPlayerListener, GameKitServiceProtocol {
    |              `- note: class 'GameKitService' does not conform to the 'Sendable' protocol
 32 |
 33 |     fileprivate var players = [String : GKPlayer]()
    :
 40 |     public var match: GKMatch?
 41 |
 42 |     public static let shared = GameKitService()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GameKitService' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     private override init() {
Build complete! (11.26s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GameKitService.swift",
  "name" : "GameKitService.swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "GameKitService",
      "targets" : [
        "GameKitService"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GameKitServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "GameKitServiceTests",
      "path" : "Tests/GameKitServiceTests",
      "sources" : [
        "GameKitServiceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "GameKitService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GameKitService",
      "module_type" : "SwiftTarget",
      "name" : "GameKitService",
      "path" : "Sources/GameKitService",
      "product_memberships" : [
        "GameKitService"
      ],
      "sources" : [
        "GameKitService.swift",
        "GameKitServiceProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.