Build Information
Successful build of GameControllerKit, reference 0.0.4 (eadf41
), with Swift 6.0 (beta) for macOS (SPM) on 17 Sep 2024 05:32:41 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/GameControllerKit.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/GameControllerKit
* tag 0.0.4 -> FETCH_HEAD
HEAD is now at eadf419 Add support for custom logger
Cloned https://github.com/0xWDG/GameControllerKit.git
Revision (git rev-parse @):
eadf41948fa0a497e20644a61e7aff28abd7e8dd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/GameControllerKit.git at 0.0.4
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/0xWDG/GameControllerKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun 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-117DEE11B69C53C9.txt
[3/9] Compiling GameControllerKit GameControllerKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:73:20: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
71 | object: nil,
72 | queue: .main,
73 | using: controllerDidConnect
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
74 | )
75 |
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:80:20: warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
78 | object: nil,
79 | queue: .main,
80 | using: controllerDidDisconnect
| `- warning: converting non-sendable function value to '@Sendable (Notification) -> Void' may introduce data races
81 | )
82 |
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:121:17: warning: capture of 'self' with non-sendable type 'GameControllerKit' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | /// connect to game controllers, read input from them, and control their
22 | /// lights and haptics.
23 | public class GameControllerKit: ObservableObject {
| `- note: class 'GameControllerKit' does not conform to the 'Sendable' protocol
24 | /// Event Handler
25 | public typealias GCKEventHandler = (_ action: GCKAction, _ pressed: Bool, _ controller: GCKController) -> Void
:
119 | for counter in 0...10 {
120 | DispatchQueue.main.asyncAfter(deadline: .now() + (Double(counter)/0.99)) {
121 | self.set(color: .GCKRandom)
| `- warning: capture of 'self' with non-sendable type 'GameControllerKit' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | }
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:121:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
119 | for counter in 0...10 {
120 | DispatchQueue.main.asyncAfter(deadline: .now() + (Double(counter)/0.99)) {
121 | self.set(color: .GCKRandom)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
122 | }
123 | }
[4/9] Compiling GameControllerKit GCKControllerType.swift
[5/9] Emitting module GameControllerKit
[6/9] Compiling GameControllerKit GCKController.swift
[7/9] Compiling GameControllerKit GCKMovePosition.swift
[8/9] Compiling GameControllerKit GCKAction.swift
[9/9] Compiling GameControllerKit GCKControllerView.swift
Build complete! (14.01s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "GameControllerKit",
"name" : "GameControllerKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "16.0"
}
],
"products" : [
{
"name" : "GameControllerKit",
"targets" : [
"GameControllerKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GameControllerKitTests",
"module_type" : "SwiftTarget",
"name" : "GameControllerKitTests",
"path" : "Tests/GameControllerKitTests",
"sources" : [
"GameControllerKitTests.swift"
],
"target_dependencies" : [
"GameControllerKit"
],
"type" : "test"
},
{
"c99name" : "GameControllerKit",
"module_type" : "SwiftTarget",
"name" : "GameControllerKit",
"path" : "Sources/GameControllerKit",
"product_memberships" : [
"GameControllerKit"
],
"sources" : [
"GCKAction.swift",
"GCKController.swift",
"GCKControllerType.swift",
"GCKControllerView.swift",
"GCKMovePosition.swift",
"GameControllerKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.