Build Information
Successful build of GameKitService.swift with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/SwiftPackageRepository/GameKitService.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.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: 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] 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() {
Build complete! (29.09s)
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.