Build Information
Failed to build GameCenterUI, reference 1.0.0 (528c27), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 07:50:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/berikv/GameCenterUI.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/berikv/GameCenterUI
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 528c270 License as MIT
Cloned https://github.com/berikv/GameCenterUI.git
Revision (git rev-parse @):
528c270cc26dc848e0358afce6caf5f2d50cb376
SUCCESS checkout https://github.com/berikv/GameCenterUI.git at 1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/berikv/GameCenterUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/5] Emitting module GameCenterUI
[4/5] Compiling GameCenterUI GameCenterAuthentication.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:130:29: warning: main actor-isolated property 'isAuthenticated' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
112 | var onAuthenticate: (() -> ())?
113 |
114 | @Published var isAuthenticated = false
| `- note: property declared here
115 | @Published var authenticationError: Error?
116 | @Published var authenticationView: GameCenterAuthenticationView?
:
128 |
129 | // Skip when setting the same value again
130 | guard self.isAuthenticated != GKLocalPlayer.local.isAuthenticated
| `- warning: main actor-isolated property 'isAuthenticated' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
131 | else { return }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:133:23: warning: main actor-isolated property 'isAuthenticated' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
112 | var onAuthenticate: (() -> ())?
113 |
114 | @Published var isAuthenticated = false
| `- note: mutation of this property is only permitted within the actor
115 | @Published var authenticationError: Error?
116 | @Published var authenticationView: GameCenterAuthenticationView?
:
131 | else { return }
132 |
133 | self.isAuthenticated = GKLocalPlayer.local.isAuthenticated
| `- warning: main actor-isolated property 'isAuthenticated' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
134 | self.authenticationError = nil
135 | self.authenticationView = nil
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:134:23: warning: main actor-isolated property 'authenticationError' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
113 |
114 | @Published var isAuthenticated = false
115 | @Published var authenticationError: Error?
| `- note: mutation of this property is only permitted within the actor
116 | @Published var authenticationView: GameCenterAuthenticationView?
117 |
:
132 |
133 | self.isAuthenticated = GKLocalPlayer.local.isAuthenticated
134 | self.authenticationError = nil
| `- warning: main actor-isolated property 'authenticationError' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
135 | self.authenticationView = nil
136 |
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:135:23: warning: main actor-isolated property 'authenticationView' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
114 | @Published var isAuthenticated = false
115 | @Published var authenticationError: Error?
116 | @Published var authenticationView: GameCenterAuthenticationView?
| `- note: mutation of this property is only permitted within the actor
117 |
118 | var isAuthenticatedObservation: NSKeyValueObservation?
:
133 | self.isAuthenticated = GKLocalPlayer.local.isAuthenticated
134 | self.authenticationError = nil
135 | self.authenticationView = nil
| `- warning: main actor-isolated property 'authenticationView' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
136 |
137 | if self.isAuthenticated {
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:137:26: warning: main actor-isolated property 'isAuthenticated' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
112 | var onAuthenticate: (() -> ())?
113 |
114 | @Published var isAuthenticated = false
| `- note: property declared here
115 | @Published var authenticationError: Error?
116 | @Published var authenticationView: GameCenterAuthenticationView?
:
135 | self.authenticationView = nil
136 |
137 | if self.isAuthenticated {
| `- warning: main actor-isolated property 'isAuthenticated' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
138 | self.onAuthenticate?()
139 | self.onAuthenticate = nil
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:138:27: warning: main actor-isolated property 'onAuthenticate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
110 |
111 | var didTryAuthenticate = false
112 | var onAuthenticate: (() -> ())?
| `- note: property declared here
113 |
114 | @Published var isAuthenticated = false
:
136 |
137 | if self.isAuthenticated {
138 | self.onAuthenticate?()
| `- warning: main actor-isolated property 'onAuthenticate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
139 | self.onAuthenticate = nil
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:139:27: warning: main actor-isolated property 'onAuthenticate' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
110 |
111 | var didTryAuthenticate = false
112 | var onAuthenticate: (() -> ())?
| `- note: mutation of this property is only permitted within the actor
113 |
114 | @Published var isAuthenticated = false
:
137 | if self.isAuthenticated {
138 | self.onAuthenticate?()
139 | self.onAuthenticate = nil
| `- warning: main actor-isolated property 'onAuthenticate' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
140 | }
141 | })
[5/5] Compiling GameCenterUI GameCenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenter.swift:112:81: error: 'localPlayerFriendsList' is only available in macOS 12.0 or newer
54 | }
55 |
56 | private class GameCenterController:
| `- note: add @available attribute to enclosing class
57 | NSObject,
58 | GKGameCenterControllerDelegate,
:
102 | }
103 |
104 | func createGameCenter(launchOption: GameCenterLaunchOption) -> GKGameCenterViewController {
| `- note: add @available attribute to enclosing instance method
105 | switch launchOption {
106 | case .default: return GKGameCenterViewController(state: .default)
:
110 | case .localPlayerProfile: return GKGameCenterViewController(state: .localPlayerProfile)
111 | case .dashboard: return GKGameCenterViewController(state: .dashboard)
112 | case .localPlayerFriendsList: return GKGameCenterViewController(state: .localPlayerFriendsList)
| |- error: 'localPlayerFriendsList' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
113 | case .leaderBoardID(let id, let playerScope, let timeScope):
114 | return GKGameCenterViewController(leaderboardID: id, playerScope: playerScope, timeScope: timeScope)
BUILD FAILURE 6.2 macosSpm