Build Information
Successful build of GameKitService.swift, reference 0.1.0 (43fbe7
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 10:34:24 UTC.
Swift 6 data race errors: 1
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftPackageRepository/GameKitService.swift.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/GameKitService.swift
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 43fbe7b Create swift.yml
Cloned https://github.com/SwiftPackageRepository/GameKitService.swift.git
Revision (git rev-parse @):
43fbe7b68c6a4bb0d2373434ce681f80e6062d8e
SUCCESS checkout https://github.com/SwiftPackageRepository/GameKitService.swift.git at 0.1.0
========================================
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.62s)
Creating working copy for https://github.com/SwiftPackageRepository/GameKitService.swift.git
Working copy of https://github.com/SwiftPackageRepository/GameKitService.swift.git resolved at 0.1.0 (43fbe7b)
warning: '.resolve-product-dependencies': dependency 'gamekitservice.swift' 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/SwiftPackageRepository/GameKitService.swift.git
https://github.com/SwiftPackageRepository/GameKitService.swift.git
{
"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.3"
}
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/5] Compiling GameKitService GameKitServiceProtocol.swift
[4/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | private override init() {
[5/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | private override init() {
Build complete! (8.55s)
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.3"
}
Done.