Build Information
Failed to build GameKitUI with Swift 6.0 for macOS (SPM).
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/GameKitUI.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/GameKitUI.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4e95f70 Merge pull request #19 from pawello2222/fix/update-package
Cloned https://github.com/SwiftPackageRepository/GameKitUI.swift.git
Revision (git rev-parse @):
4e95f70fb99281d74913b840e8c593f33675f46b
SUCCESS checkout https://github.com/SwiftPackageRepository/GameKitUI.swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/SwiftPackageRepository/GameKitUI.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/30] Emitting module GameKitUI
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 | private static var subsystem = "de.webblazer.GameKitUI"
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
31 |
32 | /// Logs the game kit authentication
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'matchmaking' 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
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:36:17: error: main actor-isolated default value in a nonisolated context
34 | let viewController: GKGameCenterViewController
35 |
36 | public init(viewController: GKGameCenterViewController = GKGameCenterViewController()) {
| `- error: main actor-isolated default value in a nonisolated context
37 | self.viewController = viewController
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:65:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | import SwiftUI
31 |
32 | public class TurnBasedMatchmakerViewController: NSViewController, GKTurnBasedMatchmakerViewControllerDelegate, GKMatchDelegate {
| `- note: add '@preconcurrency' to the 'GKTurnBasedMatchmakerViewControllerDelegate' conformance to defer isolation checking to run time
33 |
34 | private let matchRequest: GKMatchRequest
:
63 | }
64 |
65 | public func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewControllerWasCancelled' to make this instance method not isolated to the actor
66 | viewController.dismiss(self)
67 | self.canceled()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:3:10: note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
1 | public protocol GKTurnBasedMatchmakerViewControllerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
| `- note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:71:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: Error) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFailWithError:)' to make this instance method not isolated to the actor
72 | viewController.dismiss(self)
73 | self.failed(error)
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:5:10: note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
| `- note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:77:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch) { viewController.dismiss(self)
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFind:)' to make this instance method not isolated to the actor
78 | self.started(match)
79 | viewController.remove()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:7:19: note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
| `- note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
8 | @available(swift, obsoleted: 3, renamed: "turnBasedMatchmakerViewController(_:didFind:)")
9 | @available(macOS, introduced: 10.8, deprecated: 10.11)
[4/33] Compiling GameKitUI GKInviteView+iOS.swift
[5/33] Compiling GameKitUI InviteViewController+iOS.swift
[6/33] Compiling GameKitUI LoadingViewController+iOS.swift
[7/33] Compiling GameKitUI GKAuthenticationView+iOS.swift
[8/33] Compiling GameKitUI GKAuthenticationViewController+iOS.swift
[9/33] Compiling GameKitUI GKGameCenterView+iOS.swift
[10/33] Compiling GameKitUI GKMatchmakerView+iOS.swift
[11/33] Compiling GameKitUI MatchmakerViewController+iOS.swift
[12/33] Compiling GameKitUI GKTurnBasedMatchmakerView+iOS.swift
[13/33] Compiling GameKitUI Match.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 | private static var subsystem = "de.webblazer.GameKitUI"
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
31 |
32 | /// Logs the game kit authentication
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'matchmaking' 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
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
[14/33] Compiling GameKitUI OSLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 | private static var subsystem = "de.webblazer.GameKitUI"
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
31 |
32 | /// Logs the game kit authentication
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'matchmaking' 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
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
[15/33] Compiling GameKitUI GKAuthentication+iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 | private static var subsystem = "de.webblazer.GameKitUI"
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
31 |
32 | /// Logs the game kit authentication
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'matchmaking' 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
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
[16/33] Compiling GameKitUI TurnBasedMatchmakerViewController+iOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
[17/33] Compiling GameKitUI UIViewController+Child.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
[18/33] Compiling GameKitUI GKAuthentication+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
[19/33] Compiling GameKitUI GKAuthenticationView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:36:17: error: main actor-isolated default value in a nonisolated context
34 | let viewController: GKGameCenterViewController
35 |
36 | public init(viewController: GKGameCenterViewController = GKGameCenterViewController()) {
| `- error: main actor-isolated default value in a nonisolated context
37 | self.viewController = viewController
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:63:34: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public func gameCenterViewControllerDidFinish(_ gameCenterViewController: GKGameCenterViewController) {
| `- note: add '@MainActor' to make instance method 'gameCenterViewControllerDidFinish' part of global actor 'MainActor'
63 | gameCenterViewController.dismiss(gameCenterViewController)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | }
65 | }
AppKit.NSViewController:8:26: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
6 | open func presentViewController(_ viewController: NSViewController, animator: any NSViewControllerPresentationAnimator)
7 | @available(macOS 10.10, *)
8 | @MainActor open func dismiss(_ viewController: NSViewController)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 10.10, *)
10 | @available(swift, obsoleted: 4.2, renamed: "dismiss(_:)")
[20/33] Compiling GameKitUI GKAuthenticationViewController+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:36:17: error: main actor-isolated default value in a nonisolated context
34 | let viewController: GKGameCenterViewController
35 |
36 | public init(viewController: GKGameCenterViewController = GKGameCenterViewController()) {
| `- error: main actor-isolated default value in a nonisolated context
37 | self.viewController = viewController
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:63:34: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public func gameCenterViewControllerDidFinish(_ gameCenterViewController: GKGameCenterViewController) {
| `- note: add '@MainActor' to make instance method 'gameCenterViewControllerDidFinish' part of global actor 'MainActor'
63 | gameCenterViewController.dismiss(gameCenterViewController)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | }
65 | }
AppKit.NSViewController:8:26: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
6 | open func presentViewController(_ viewController: NSViewController, animator: any NSViewControllerPresentationAnimator)
7 | @available(macOS 10.10, *)
8 | @MainActor open func dismiss(_ viewController: NSViewController)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 10.10, *)
10 | @available(swift, obsoleted: 4.2, renamed: "dismiss(_:)")
[21/33] Compiling GameKitUI GKGameCenterView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Authentication/GKAuthentication+macOS.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import GameKit
32 |
33 | public final class GKAuthentication: NSObject, GKLocalPlayerListener {
| `- note: class 'GKAuthentication' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKAuthentication()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKAuthentication' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:33:16: warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| `- warning: static property 'authentication' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
31 |
32 | /// Logs the game kit authentication
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
| |- note: annotate 'authentication' 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
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:36:17: error: main actor-isolated default value in a nonisolated context
34 | let viewController: GKGameCenterViewController
35 |
36 | public init(viewController: GKGameCenterViewController = GKGameCenterViewController()) {
| `- error: main actor-isolated default value in a nonisolated context
37 | self.viewController = viewController
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/GKGameCenterView+macOS.swift:63:34: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public func gameCenterViewControllerDidFinish(_ gameCenterViewController: GKGameCenterViewController) {
| `- note: add '@MainActor' to make instance method 'gameCenterViewControllerDidFinish' part of global actor 'MainActor'
63 | gameCenterViewController.dismiss(gameCenterViewController)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | }
65 | }
AppKit.NSViewController:8:26: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
6 | open func presentViewController(_ viewController: NSViewController, animator: any NSViewControllerPresentationAnimator)
7 | @available(macOS 10.10, *)
8 | @MainActor open func dismiss(_ viewController: NSViewController)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 10.10, *)
10 | @available(swift, obsoleted: 4.2, renamed: "dismiss(_:)")
[22/33] Compiling GameKitUI GKTurnBasedMatchmakerView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:65:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | import SwiftUI
31 |
32 | public class TurnBasedMatchmakerViewController: NSViewController, GKTurnBasedMatchmakerViewControllerDelegate, GKMatchDelegate {
| `- note: add '@preconcurrency' to the 'GKTurnBasedMatchmakerViewControllerDelegate' conformance to defer isolation checking to run time
33 |
34 | private let matchRequest: GKMatchRequest
:
63 | }
64 |
65 | public func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewControllerWasCancelled' to make this instance method not isolated to the actor
66 | viewController.dismiss(self)
67 | self.canceled()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:3:10: note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
1 | public protocol GKTurnBasedMatchmakerViewControllerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
| `- note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:71:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: Error) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFailWithError:)' to make this instance method not isolated to the actor
72 | viewController.dismiss(self)
73 | self.failed(error)
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:5:10: note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
| `- note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:77:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch) { viewController.dismiss(self)
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFind:)' to make this instance method not isolated to the actor
78 | self.started(match)
79 | viewController.remove()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:7:19: note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
| `- note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
8 | @available(swift, obsoleted: 3, renamed: "turnBasedMatchmakerViewController(_:didFind:)")
9 | @available(macOS, introduced: 10.8, deprecated: 10.11)
[23/33] Compiling GameKitUI TurnBasedMatchmakerViewController+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:65:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | import SwiftUI
31 |
32 | public class TurnBasedMatchmakerViewController: NSViewController, GKTurnBasedMatchmakerViewControllerDelegate, GKMatchDelegate {
| `- note: add '@preconcurrency' to the 'GKTurnBasedMatchmakerViewControllerDelegate' conformance to defer isolation checking to run time
33 |
34 | private let matchRequest: GKMatchRequest
:
63 | }
64 |
65 | public func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewControllerWasCancelled' to make this instance method not isolated to the actor
66 | viewController.dismiss(self)
67 | self.canceled()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:3:10: note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
1 | public protocol GKTurnBasedMatchmakerViewControllerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
| `- note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:71:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: Error) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFailWithError:)' to make this instance method not isolated to the actor
72 | viewController.dismiss(self)
73 | self.failed(error)
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:5:10: note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
| `- note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:77:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch) { viewController.dismiss(self)
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFind:)' to make this instance method not isolated to the actor
78 | self.started(match)
79 | viewController.remove()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:7:19: note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
| `- note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
8 | @available(swift, obsoleted: 3, renamed: "turnBasedMatchmakerViewController(_:didFind:)")
9 | @available(macOS, introduced: 10.8, deprecated: 10.11)
[24/33] Compiling GameKitUI TurnBasedMatchmakerViewController+tvOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:65:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | import SwiftUI
31 |
32 | public class TurnBasedMatchmakerViewController: NSViewController, GKTurnBasedMatchmakerViewControllerDelegate, GKMatchDelegate {
| `- note: add '@preconcurrency' to the 'GKTurnBasedMatchmakerViewControllerDelegate' conformance to defer isolation checking to run time
33 |
34 | private let matchRequest: GKMatchRequest
:
63 | }
64 |
65 | public func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewControllerWasCancelled' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewControllerWasCancelled' to make this instance method not isolated to the actor
66 | viewController.dismiss(self)
67 | self.canceled()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:3:10: note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
1 | public protocol GKTurnBasedMatchmakerViewControllerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
| `- note: 'turnBasedMatchmakerViewControllerWasCancelled' declared here
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:71:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
69 | }
70 |
71 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: Error) {
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFailWithError:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFailWithError:)' to make this instance method not isolated to the actor
72 | viewController.dismiss(self)
73 | self.failed(error)
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:5:10: note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
3 | func turnBasedMatchmakerViewControllerWasCancelled(_ viewController: GKTurnBasedMatchmakerViewController)
4 | @available(macOS 10.8, *)
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
| `- note: 'turnBasedMatchmakerViewController(_:didFailWithError:)' declared here
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/TurnBasedMatchmaker/TurnBasedMatchmakerViewController+macOS.swift:77:17: warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch) { viewController.dismiss(self)
| |- warning: main actor-isolated instance method 'turnBasedMatchmakerViewController(_:didFind:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'turnBasedMatchmakerViewController(_:didFind:)' to make this instance method not isolated to the actor
78 | self.started(match)
79 | viewController.remove()
GameKit.GKTurnBasedMatchmakerViewControllerDelegate:7:19: note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
5 | func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFailWithError error: any Error)
6 | @available(macOS, introduced: 10.8, deprecated: 10.11)
7 | optional func turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
| `- note: 'turnBasedMatchmakerViewController(_:didFind:)' declared here
8 | @available(swift, obsoleted: 3, renamed: "turnBasedMatchmakerViewController(_:didFind:)")
9 | @available(macOS, introduced: 10.8, deprecated: 10.11)
[25/33] Compiling GameKitUI GKAuthenticationError.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:45:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
43 | queue: nil)
44 | { notification in
45 | self.invite.send(Invite.needsToAuthenticate)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:53:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
51 | queue: nil)
52 | { notification in
53 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:61:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
59 | queue: nil)
60 | { notification in
61 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | GKLocalPlayer.local.register(self)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | GKMatchmaker.shared().cancel()
85 | canceled()
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:89:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
87 | }
88 |
89 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
90 | return matchmakerViewController
91 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | GKMatchmaker.shared().cancel()
97 | return nil
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:100:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
:
98 | }
99 |
100 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
101 | return matchmakerViewController
102 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| `- warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | GKMatchmaker.shared().cancel()
114 | canceled()
GameKit.GKMatchmakerViewController:11:12: note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 12.0, *)
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
| `- note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
12 | @MainActor public init?(invite: GKInvite)
13 | @available(macOS 10.8, *)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:118:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
116 | }
117 |
118 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
119 | return matchmakerViewController
120 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | extension GKMatchManager: GKMatchmakerViewControllerDelegate {
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFind:)' part of global actor 'MainActor'
174 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| `- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- note: annotate 'matchmaking' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewControllerWasCancelled' part of global actor 'MainActor'
181 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
186 | }
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFailWithError:)' part of global actor 'MainActor'
189 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
84 | GKMatchmaker.shared().cancel()
85 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
96 | GKMatchmaker.shared().cancel()
97 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to main actor-isolated initializer 'init(matchRequest:)' risks causing data races between main actor-isolated and task-isolated uses
113 | GKMatchmaker.shared().cancel()
114 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
174 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
181 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
189 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
[26/33] Compiling GameKitUI GKMatchManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:45:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
43 | queue: nil)
44 | { notification in
45 | self.invite.send(Invite.needsToAuthenticate)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:53:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
51 | queue: nil)
52 | { notification in
53 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:61:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
59 | queue: nil)
60 | { notification in
61 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | GKLocalPlayer.local.register(self)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | GKMatchmaker.shared().cancel()
85 | canceled()
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:89:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
87 | }
88 |
89 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
90 | return matchmakerViewController
91 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | GKMatchmaker.shared().cancel()
97 | return nil
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:100:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
:
98 | }
99 |
100 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
101 | return matchmakerViewController
102 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| `- warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | GKMatchmaker.shared().cancel()
114 | canceled()
GameKit.GKMatchmakerViewController:11:12: note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 12.0, *)
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
| `- note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
12 | @MainActor public init?(invite: GKInvite)
13 | @available(macOS 10.8, *)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:118:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
116 | }
117 |
118 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
119 | return matchmakerViewController
120 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | extension GKMatchManager: GKMatchmakerViewControllerDelegate {
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFind:)' part of global actor 'MainActor'
174 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| `- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- note: annotate 'matchmaking' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewControllerWasCancelled' part of global actor 'MainActor'
181 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
186 | }
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFailWithError:)' part of global actor 'MainActor'
189 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
84 | GKMatchmaker.shared().cancel()
85 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
96 | GKMatchmaker.shared().cancel()
97 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to main actor-isolated initializer 'init(matchRequest:)' risks causing data races between main actor-isolated and task-isolated uses
113 | GKMatchmaker.shared().cancel()
114 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
174 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
181 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
189 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
[27/33] Compiling GameKitUI Invite.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:45:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
43 | queue: nil)
44 | { notification in
45 | self.invite.send(Invite.needsToAuthenticate)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:53:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
51 | queue: nil)
52 | { notification in
53 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:61:13: warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
:
59 | queue: nil)
60 | { notification in
61 | self.localPlayer.send(GKLocalPlayer.local)
| `- warning: capture of 'self' with non-sendable type 'GKMatchManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | GKLocalPlayer.local.register(self)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | GKMatchmaker.shared().cancel()
85 | canceled()
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:89:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
72 | private var started: (GKMatch) -> Void = { _ in }
73 |
74 | internal func createInvite(invite: GKInvite,
| `- note: add '@MainActor' to make instance method 'createInvite(invite:canceled:failed:started:)' part of global actor 'MainActor'
75 | canceled: @escaping () -> Void,
76 | failed: @escaping (Error) -> Void,
:
87 | }
88 |
89 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
90 | return matchmakerViewController
91 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| `- warning: call to main actor-isolated initializer 'init(invite:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | GKMatchmaker.shared().cancel()
97 | return nil
GameKit.GKMatchmakerViewController:12:23: note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
12 | @MainActor public init?(invite: GKInvite)
| `- note: calls to initializer 'init(invite:)' from outside of its actor context are implicitly asynchronous
13 | @available(macOS 10.8, *)
14 | open func addPlayers(to match: GKMatch)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:100:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 |
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
| `- note: add '@MainActor' to make instance method 'createMatchmaker(invite:)' part of global actor 'MainActor'
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
:
98 | }
99 |
100 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
101 | return matchmakerViewController
102 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| `- warning: call to main actor-isolated initializer 'init(matchRequest:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | GKMatchmaker.shared().cancel()
114 | canceled()
GameKit.GKMatchmakerViewController:11:12: note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
9 | @available(macOS 12.0, *)
10 | open var canStartWithMinimumPlayers: Bool { get set }
11 | public init?(matchRequest request: GKMatchRequest)
| `- note: calls to initializer 'init(matchRequest:)' from outside of its actor context are implicitly asynchronous
12 | @MainActor public init?(invite: GKInvite)
13 | @available(macOS 10.8, *)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:118:34: warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
102 | }
103 |
104 | internal func createMatchmaker(request: GKMatchRequest,
| `- note: add '@MainActor' to make instance method 'createMatchmaker(request:canceled:failed:started:)' part of global actor 'MainActor'
105 | canceled: @escaping () -> Void,
106 | failed: @escaping (Error) -> Void,
:
116 | }
117 |
118 | matchmakerViewController.matchmakerDelegate = self
| `- warning: main actor-isolated property 'matchmakerDelegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
119 | return matchmakerViewController
120 | }
GameKit.GKMatchmakerViewController:3:19: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.8, *)
2 | @MainActor open class GKMatchmakerViewController : NSViewController, GKViewController {
3 | weak open var matchmakerDelegate: (any GKMatchmakerViewControllerDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var matchRequest: GKMatchRequest { get }
5 | open var isHosted: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | extension GKMatchManager: GKMatchmakerViewControllerDelegate {
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFind:)' part of global actor 'MainActor'
174 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:37:16: warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| `- warning: static property 'matchmaking' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
38 | }
39 |
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:26:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
24 | /// Created by Sascha Müllner on 23.02.21.
25 |
26 | import os.log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'os'
27 | import Foundation
28 |
:
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
| |- note: annotate 'matchmaking' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewControllerWasCancelled' part of global actor 'MainActor'
181 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
186 | }
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
| `- note: add '@MainActor' to make instance method 'matchmakerViewController(_:didFailWithError:)' part of global actor 'MainActor'
189 | viewController.dismiss(self)
| `- warning: call to main actor-isolated instance method 'dismiss' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
AppKit.NSViewController:13:36: note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
11 | open func dismissViewController(_ viewController: NSViewController)
12 | @available(macOS 10.10, *)
13 | @IBAction @MainActor open func dismiss(_ sender: Any?)
| `- note: calls to instance method 'dismiss' from outside of its actor context are implicitly asynchronous
14 | @available(macOS 10.10, *)
15 | @available(swift, obsoleted: 3, renamed: "dismiss(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/OSLog.swift:35:16: warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let authentication = OSLog(subsystem: subsystem, category: "authentication")
34 | /// Logs the game kit invitiations
35 | static let invite = OSLog(subsystem: subsystem, category: "invite")
| |- warning: static property 'invite' is not concurrency-safe because non-'Sendable' type 'OSLog' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invite' 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
36 | /// Logs the game kit matchmaking
37 | static let matchmaking = OSLog(subsystem: subsystem, category: "matchmaking")
os.OSLog:1:12: note: class 'OSLog' does not conform to the 'Sendable' protocol
1 | open class OSLog : NSObject {
| `- note: class 'OSLog' does not conform to the 'Sendable' protocol
2 | @available(*, unavailable, message: "Unavailable in Swift")
3 | public init!()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:83:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
81 |
82 | guard GKLocalPlayer.local.isAuthenticated,
83 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
84 | GKMatchmaker.shared().cancel()
85 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:95:46: warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
93 | internal func createMatchmaker(invite: GKInvite) -> GKMatchmakerViewController? {
94 | guard GKLocalPlayer.local.isAuthenticated,
95 | let matchmakerViewController = GKMatchmakerViewController(invite: invite) else {
| |- warning: sending 'invite' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'invite' to main actor-isolated initializer 'init(invite:)' risks causing data races between main actor-isolated and task-isolated uses
96 | GKMatchmaker.shared().cancel()
97 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:112:46: warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
110 | self.started = started
111 | guard GKLocalPlayer.local.isAuthenticated,
112 | let matchmakerViewController = GKMatchmakerViewController(matchRequest: request) else {
| |- warning: sending 'request' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'request' to main actor-isolated initializer 'init(matchRequest:)' risks causing data races between main actor-isolated and task-isolated uses
113 | GKMatchmaker.shared().cancel()
114 | canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:174:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFind match: GKMatch) {
174 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
175 | os_log("Matchmaking successful!", log: OSLog.matchmaking, type: .info)
176 | self.match.send(Match(gkMatch: match))
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:181:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
179 |
180 | public func matchmakerViewControllerWasCancelled(_ viewController: GKMatchmakerViewController) {
181 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
182 | os_log("Matchmaking cancelled!", log: OSLog.matchmaking, type: .error)
183 | self.invite.send(Invite.zero)
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:189:24: warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
187 |
188 | public func matchmakerViewController(_ viewController: GKMatchmakerViewController, didFailWithError error: Error) {
189 | viewController.dismiss(self)
| `- warning: sending task-isolated value of type 'GKMatchManager' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
190 | os_log("Matchmaking failed: %{public}@", log: OSLog.matchmaking, type: .error, error.localizedDescription)
191 | self.invite.send(Invite.zero)
[28/33] Compiling GameKitUI GKInviteView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
[29/33] Compiling GameKitUI InviteViewController+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
[30/33] Compiling GameKitUI LoadingViewController+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
[31/33] Compiling GameKitUI GKMatchmakerView+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 | @available(macOS 11.0, *)
110 | internal func makeMatchmakerViewControllerForMacOS11AndHigher() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewControllerForMacOS11AndHigher()' part of global actor 'MainActor'
111 | guard let matchmakingMode = self.matchmakingMode as? GKMatchmakingMode else {
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:44:12: note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
42 |
43 | @available(macOS 11.0, *)
44 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
45 | matchmakingMode: GKMatchmakingMode,
46 | canceled: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | }
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewController()' part of global actor 'MainActor'
126 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:57:12: note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
55 | }
56 |
57 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
58 | canceled: @escaping () -> Void,
59 | failed: @escaping (Error) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
[32/33] Compiling GameKitUI MatchmakerViewController+macOS.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 | @available(macOS 11.0, *)
110 | internal func makeMatchmakerViewControllerForMacOS11AndHigher() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewControllerForMacOS11AndHigher()' part of global actor 'MainActor'
111 | guard let matchmakingMode = self.matchmakingMode as? GKMatchmakingMode else {
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:44:12: note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
42 |
43 | @available(macOS 11.0, *)
44 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
45 | matchmakingMode: GKMatchmakingMode,
46 | canceled: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | }
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewController()' part of global actor 'MainActor'
126 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:57:12: note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
55 | }
56 |
57 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
58 | canceled: @escaping () -> Void,
59 | failed: @escaping (Error) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
[33/33] Compiling GameKitUI NSViewController+Child.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |
109 | @available(macOS 11.0, *)
110 | internal func makeMatchmakerViewControllerForMacOS11AndHigher() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewControllerForMacOS11AndHigher()' part of global actor 'MainActor'
111 | guard let matchmakingMode = self.matchmakingMode as? GKMatchmakingMode else {
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:44:12: note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
42 |
43 | @available(macOS 11.0, *)
44 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:matchmakingMode:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
45 | matchmakingMode: GKMatchmakingMode,
46 | canceled: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | }
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
| `- note: add '@MainActor' to make instance method 'makeMatchmakerViewController()' part of global actor 'MainActor'
126 | return MatchmakerViewController(
| `- warning: call to main actor-isolated initializer 'init(matchRequest:canceled:failed:started:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/MatchmakerViewController+macOS.swift:57:12: note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
55 | }
56 |
57 | public init(matchRequest: GKMatchRequest,
| `- note: calls to initializer 'init(matchRequest:canceled:failed:started:)' from outside of its actor context are implicitly asynchronous
58 | canceled: @escaping () -> Void,
59 | failed: @escaping (Error) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/Shared/Manager/GKMatchManager.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' may have shared mutable state; this is an error in the Swift 6 language mode
31 | import SwiftUI
32 |
33 | public final class GKMatchManager: NSObject {
| `- note: class 'GKMatchManager' does not conform to the 'Sendable' protocol
34 |
35 | public static let shared = GKMatchManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'GKMatchManager' 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
36 |
37 | private override init() {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:126:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
124 |
125 | internal func makeMatchmakerViewController() -> MatchmakerViewController {
126 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
127 | matchRequest: self.matchRequest) {
128 | self.canceled()
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| |- warning: sending 'self.matchRequest' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.matchRequest' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '() -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(any Error) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
/Users/admin/builder/spi-builder-workspace/Sources/GameKitUI/macOS/Matchmaker/GKMatchmakerView+macOS.swift:114:16: warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
112 | return self.makeMatchmakerViewController()
113 | }
114 | return MatchmakerViewController(
| `- warning: sending task-isolated value of type '(GKMatch) -> Void' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
115 | matchRequest: self.matchRequest,
116 | matchmakingMode: matchmakingMode) {
BUILD FAILURE 6.0 macosSpm