The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build GameControllerKit, reference 0.0.4 (eadf41), with Swift 5.8 for macOS (SPM) on 2 Sep 2024 20:40:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.52.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:             5.8
Building package at path:  $PWD
https://github.com/0xWDG/GameControllerKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/7] Compiling GameControllerKit GCKAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:176:15: error: consecutive statements on a line must be separated by ';'
        return switch self {
              ^
              ;
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:189:15: error: consecutive statements on a line must be separated by ';'
        return switch self {
              ^
              ;
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:209:15: error: consecutive statements on a line must be separated by ';'
        return switch self {
              ^
              ;
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:176:9: error: non-void function should return a value
        return switch self {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:180:13: warning: boolean literal is unused
            true
            ^~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:183:13: warning: boolean literal is unused
            false
            ^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:189:9: error: non-void function should return a value
        return switch self {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:200:13: warning: boolean literal is unused
            true
            ^~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:203:13: warning: boolean literal is unused
            false
            ^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:209:9: error: non-void function should return a value
        return switch self {
        ^
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:215:13: warning: boolean literal is unused
            true
            ^~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKAction.swift:218:13: warning: boolean literal is unused
            false
            ^~~~~
[2/7] Compiling GameControllerKit GCKMovePosition.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:51:13: warning: string literal is unused
            "↑"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:53:13: warning: string literal is unused
            "↗"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:55:13: warning: string literal is unused
            "→"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:57:13: warning: string literal is unused
            "↘"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:59:13: warning: string literal is unused
            "↓"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:61:13: warning: string literal is unused
            "↙"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:63:13: warning: string literal is unused
            "←"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:65:13: warning: string literal is unused
            "↖"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:67:13: warning: string literal is unused
            "•"
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:69:13: warning: string literal is unused
            ""
            ^~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKMovePosition.swift:71:5: error: missing return in getter expected to return 'String'
    }
    ^
[3/7] Compiling GameControllerKit GameControllerKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:165:60: error: expected initial value after '='
            let currentControllerType: GCKControllerType = switch currentController.physicalInputProfile {
                                                           ^
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:165:59: error: consecutive statements on a line must be separated by ';'
            let currentControllerType: GCKControllerType = switch currentController.physicalInputProfile {
                                                          ^
                                                          ;
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:167:22: error: reference to member 'dualSense' cannot be resolved without a contextual type
                    .dualSense
                    ~^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:170:22: error: reference to member 'dualShock' cannot be resolved without a contextual type
                    .dualShock
                    ~^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:173:22: error: reference to member 'xbox' cannot be resolved without a contextual type
                    .xbox
                    ~^~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:176:22: error: reference to member 'siriRemote' cannot be resolved without a contextual type
                    .siriRemote
                    ~^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GameControllerKit.swift:178:22: error: reference to member 'generic' cannot be resolved without a contextual type
                    .generic
                    ~^~~~~~~
[4/7] Compiling GameControllerKit GCKControllerType.swift
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:35:13: warning: string literal is unused
            "DualSense"
            ^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:37:13: warning: string literal is unused
            "DualShock"
            ^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:39:13: warning: string literal is unused
            "Xbox"
            ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:41:13: warning: string literal is unused
            "Siri Remote"
            ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:43:13: warning: string literal is unused
            "Genric"
            ^~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/GameControllerKit/GCKControllerType.swift:45:5: error: missing return in getter expected to return 'String'
    }
    ^
[5/7] Compiling GameControllerKit GCKControllerView.swift
[6/7] Emitting module GameControllerKit
[7/7] Compiling GameControllerKit GCKController.swift
BUILD FAILURE 5.8 macosSpm