The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GameCenterUI, reference main (06edd9), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 07:50:08 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/berikv/GameCenterUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/berikv/GameCenterUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 06edd9a Update readme
Cloned https://github.com/berikv/GameCenterUI.git
Revision (git rev-parse @):
06edd9a6e9a7a0d0000ee23deedf72b677c6bb1c
SUCCESS checkout https://github.com/berikv/GameCenterUI.git at main
========================================
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:124: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
106 |     var onAuthenticate: (() -> ())?
107 |
108 |     @Published var isAuthenticated = false
    |                    `- note: property declared here
109 |     @Published var authenticationError: Error?
110 |     @Published var authenticationView: GameCenterAuthenticationView?
    :
122 |
123 |                  // Skip when setting the same value again
124 |                  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
125 |                  else { return }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:127: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
106 |     var onAuthenticate: (() -> ())?
107 |
108 |     @Published var isAuthenticated = false
    |                    `- note: mutation of this property is only permitted within the actor
109 |     @Published var authenticationError: Error?
110 |     @Published var authenticationView: GameCenterAuthenticationView?
    :
125 |                  else { return }
126 |
127 |                  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
128 |                  self.authenticationError = nil
129 |                  self.authenticationView = nil
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:128: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
107 |
108 |     @Published var isAuthenticated = false
109 |     @Published var authenticationError: Error?
    |                    `- note: mutation of this property is only permitted within the actor
110 |     @Published var authenticationView: GameCenterAuthenticationView?
111 |
    :
126 |
127 |                  self.isAuthenticated = GKLocalPlayer.local.isAuthenticated
128 |                  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
129 |                  self.authenticationView = nil
130 |
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:129: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
108 |     @Published var isAuthenticated = false
109 |     @Published var authenticationError: Error?
110 |     @Published var authenticationView: GameCenterAuthenticationView?
    |                    `- note: mutation of this property is only permitted within the actor
111 |
112 |     var isAuthenticatedObservation: NSKeyValueObservation?
    :
127 |                  self.isAuthenticated = GKLocalPlayer.local.isAuthenticated
128 |                  self.authenticationError = nil
129 |                  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
130 |
131 |                  if self.isAuthenticated {
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:131: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
106 |     var onAuthenticate: (() -> ())?
107 |
108 |     @Published var isAuthenticated = false
    |                    `- note: property declared here
109 |     @Published var authenticationError: Error?
110 |     @Published var authenticationView: GameCenterAuthenticationView?
    :
129 |                  self.authenticationView = nil
130 |
131 |                  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
132 |                      self.onAuthenticate?()
133 |                      self.onAuthenticate = nil
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:132: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
104 |
105 |     var didTryAuthenticate = false
106 |     var onAuthenticate: (() -> ())?
    |         `- note: property declared here
107 |
108 |     @Published var isAuthenticated = false
    :
130 |
131 |                  if self.isAuthenticated {
132 |                      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
133 |                      self.onAuthenticate = nil
134 |                  }
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenterAuthentication.swift:133: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
104 |
105 |     var didTryAuthenticate = false
106 |     var onAuthenticate: (() -> ())?
    |         `- note: mutation of this property is only permitted within the actor
107 |
108 |     @Published var isAuthenticated = false
    :
131 |                  if self.isAuthenticated {
132 |                      self.onAuthenticate?()
133 |                      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
134 |                  }
135 |              })
[5/5] Compiling GameCenterUI GameCenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameCenterUI/GameCenter.swift:106:81: error: 'localPlayerFriendsList' is only available in macOS 12.0 or newer
 48 | }
 49 |
 50 | private class GameCenterController:
    |               `- note: add @available attribute to enclosing class
 51 |     NSObject,
 52 |     GKGameCenterControllerDelegate,
    :
 96 |     }
 97 |
 98 |     func createGameCenter(launchOption: GameCenterLaunchOption) -> GKGameCenterViewController {
    |          `- note: add @available attribute to enclosing instance method
 99 |         switch launchOption {
100 |         case .default: return GKGameCenterViewController(state: .default)
    :
104 |         case .localPlayerProfile: return GKGameCenterViewController(state: .localPlayerProfile)
105 |         case .dashboard: return GKGameCenterViewController(state: .dashboard)
106 |         case .localPlayerFriendsList: return GKGameCenterViewController(state: .localPlayerFriendsList)
    |                                                                                 |- error: 'localPlayerFriendsList' is only available in macOS 12.0 or newer
    |                                                                                 `- note: add 'if #available' version check
107 |         case .leaderBoardID(let id, let playerScope, let timeScope):
108 |             return GKGameCenterViewController(leaderboardID: id, playerScope: playerScope, timeScope: timeScope)
BUILD FAILURE 6.2 macosSpm