Build Information
Successful build of OldMoofKit, reference main (0e3635
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 10:13:42 UTC.
Swift 6 data race errors: 75
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
| |- warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'controllerUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:61:16: warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
| |- warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmRegistrationFailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:62:16: warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
| |- warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBatteryOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[26/40] Compiling OldMoofKit ErrorCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:48:16: warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
46 | }
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
| |- warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:49:16: warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
| |- warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorStalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:50:16: warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
| |- warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:51:16: warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
| |- warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:52:16: warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
| |- warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorFast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:53:16: warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
| |- warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overCurrent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:54:16: warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
| |- warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:55:16: warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
| |- warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueInitialAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:56:16: warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
| |- warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overTemperature' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:57:16: warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
| |- warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hallArrangementMismatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:58:16: warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
| |- warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'i2cBusError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:59:16: warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
| |- warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:60:16: warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
| |- warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'controllerUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:61:16: warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
| |- warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmRegistrationFailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:62:16: warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
| |- warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBatteryOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[27/40] Compiling OldMoofKit Lighting.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:48:16: warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
46 | }
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
| |- warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:49:16: warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
| |- warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorStalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:50:16: warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
| |- warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:51:16: warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
| |- warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:52:16: warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
| |- warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorFast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:53:16: warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
| |- warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overCurrent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:54:16: warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
| |- warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:55:16: warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
| |- warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueInitialAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:56:16: warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
| |- warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overTemperature' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:57:16: warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
| |- warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hallArrangementMismatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:58:16: warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
| |- warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'i2cBusError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:59:16: warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
| |- warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:60:16: warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
| |- warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'controllerUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:61:16: warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
| |- warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmRegistrationFailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:62:16: warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
| |- warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBatteryOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[28/40] Compiling OldMoofKit Lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:48:16: warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
46 | }
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
| |- warning: static property 'noError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:49:16: warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
47 |
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
| |- warning: static property 'motorStalled' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorStalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:50:16: warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
48 | static let noError = ErrorCode(rawData: Data([0]))
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
| |- warning: static property 'overVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:51:16: warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
49 | static let motorStalled = ErrorCode(rawData: Data([1]))
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
| |- warning: static property 'underVoltage' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'underVoltage' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:52:16: warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
50 | static let overVoltage = ErrorCode(rawData: Data([2]))
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
| |- warning: static property 'motorFast' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motorFast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:53:16: warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
51 | static let underVoltage = ErrorCode(rawData: Data([3]))
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
| |- warning: static property 'overCurrent' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overCurrent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:54:16: warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
52 | static let motorFast = ErrorCode(rawData: Data([4]))
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
| |- warning: static property 'torqueAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:55:16: warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
53 | static let overCurrent = ErrorCode(rawData: Data([6]))
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
| |- warning: static property 'torqueInitialAbnormal' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'torqueInitialAbnormal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:56:16: warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
54 | static let torqueAbnormal = ErrorCode(rawData: Data([7]))
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
| |- warning: static property 'overTemperature' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'overTemperature' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:57:16: warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
55 | static let torqueInitialAbnormal = ErrorCode(rawData: Data([8]))
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
| |- warning: static property 'hallArrangementMismatch' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'hallArrangementMismatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:58:16: warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
56 | static let overTemperature = ErrorCode(rawData: Data([9]))
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
| |- warning: static property 'i2cBusError' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'i2cBusError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:59:16: warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
57 | static let hallArrangementMismatch = ErrorCode(rawData: Data([16]))
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
| |- warning: static property 'gsmUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:60:16: warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
58 | static let i2cBusError = ErrorCode(rawData: Data([25]))
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
| |- warning: static property 'controllerUartTimeout' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'controllerUartTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:61:16: warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
59 | static let gsmUartTimeout = ErrorCode(rawData: Data([26]))
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
| |- warning: static property 'gsmRegistrationFailure' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'gsmRegistrationFailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Data/ErrorCode.swift:62:16: warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// An error code that got reported from the bike.
11 | public struct ErrorCode: CustomStringConvertible, Equatable {
| `- note: consider making struct 'ErrorCode' conform to the 'Sendable' protocol
12 |
13 | let data: Data
:
60 | static let controllerUartTimeout = ErrorCode(rawData: Data([27]))
61 | static let gsmRegistrationFailure = ErrorCode(rawData: Data([28]))
62 | static let noBatteryOutput = ErrorCode(rawData: Data([29]))
| |- warning: static property 'noBatteryOutput' is not concurrency-safe because non-'Sendable' type 'ErrorCode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'noBatteryOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | }
64 |
[29/40] Compiling OldMoofKit BikeProfile.swift
[30/40] Compiling OldMoofKit BikeProfileName.swift
[31/40] Compiling OldMoofKit Alarm.swift
[32/40] Compiling OldMoofKit BatteryState.swift
[33/40] Compiling OldMoofKit WriteRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bluetooth/BluetoothConnection.swift:144:17: warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
26 | }
27 |
28 | class BluetoothConnection: NSObject, BluetoothConnectionProtocol, CBCentralManagerDelegate, CBPeripheralDelegate {
| `- note: class 'BluetoothConnection' does not conform to the 'Sendable' protocol
29 | private let queue = DispatchQueue(label: "com.realvirtuality.bluetooth.connection", qos: .background)
30 | private var central: CBCentralManager?
:
142 | if delay != .infinity {
143 | self.queue.asyncAfter(deadline: .now() + delay) {
144 | self.central?.connect(self.peripheral)
| `- warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
145 | }
146 | }
[34/40] Compiling OldMoofKit BluetoothConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bluetooth/BluetoothConnection.swift:144:17: warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
26 | }
27 |
28 | class BluetoothConnection: NSObject, BluetoothConnectionProtocol, CBCentralManagerDelegate, CBPeripheralDelegate {
| `- note: class 'BluetoothConnection' does not conform to the 'Sendable' protocol
29 | private let queue = DispatchQueue(label: "com.realvirtuality.bluetooth.connection", qos: .background)
30 | private var central: CBCentralManager?
:
142 | if delay != .infinity {
143 | self.queue.asyncAfter(deadline: .now() + delay) {
144 | self.central?.connect(self.peripheral)
| `- warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
145 | }
146 | }
[35/40] Compiling OldMoofKit BluetoothError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bluetooth/BluetoothConnection.swift:144:17: warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
26 | }
27 |
28 | class BluetoothConnection: NSObject, BluetoothConnectionProtocol, CBCentralManagerDelegate, CBPeripheralDelegate {
| `- note: class 'BluetoothConnection' does not conform to the 'Sendable' protocol
29 | private let queue = DispatchQueue(label: "com.realvirtuality.bluetooth.connection", qos: .background)
30 | private var central: CBCentralManager?
:
142 | if delay != .infinity {
143 | self.queue.asyncAfter(deadline: .now() + delay) {
144 | self.central?.connect(self.peripheral)
| `- warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
145 | }
146 | }
[36/40] Compiling OldMoofKit BluetoothNotification.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bluetooth/BluetoothConnection.swift:144:17: warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
26 | }
27 |
28 | class BluetoothConnection: NSObject, BluetoothConnectionProtocol, CBCentralManagerDelegate, CBPeripheralDelegate {
| `- note: class 'BluetoothConnection' does not conform to the 'Sendable' protocol
29 | private let queue = DispatchQueue(label: "com.realvirtuality.bluetooth.connection", qos: .background)
30 | private var central: CBCentralManager?
:
142 | if delay != .infinity {
143 | self.queue.asyncAfter(deadline: .now() + delay) {
144 | self.central?.connect(self.peripheral)
| `- warning: capture of 'self' with non-sendable type 'BluetoothConnection' in a '@Sendable' closure
145 | }
146 | }
[37/40] Compiling OldMoofKit Bike.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeDetails.swift:10:5: warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | let bleProfileToBikeProfile: [BikeProfileName: any BikeProfile] = [
| |- warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bleProfileToBikeProfile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | .smartBike2016: SmartBike2016Profile(),
12 | .smartBike2018: SmartBike2018Profile(),
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfileName.swift:11:13: note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
9 |
10 | /// All valid bluetooth low energy profile names known up to date.
11 | public enum BikeProfileName: LosslessStringConvertible {
| `- note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
12 | /// The ble profile of a SmartBike.
13 | case smartBike2016
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfile.swift:3:10: note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
1 | import CoreBluetooth
2 |
3 | protocol BikeProfile {
| `- note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
4 | var model: String { get }
5 | var identifier: CBUUID { get }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:19:23: warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | /// This bike has an electronically disengaging, physical lock.
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
| |- warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:21:23: warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
| |- warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alarm' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:23:23: warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
| |- warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:25:23: warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
| |- warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'speaker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:632:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
630 |
631 | self.bluetoothState = self.connection.statePublisher.sink { state in
632 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
633 | await self.onChangedConnectionState(state)
| `- note: closure captures 'self' which is accessible to code in the current task
634 | }
635 | }
[38/40] Compiling OldMoofKit BikeDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeDetails.swift:10:5: warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | let bleProfileToBikeProfile: [BikeProfileName: any BikeProfile] = [
| |- warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bleProfileToBikeProfile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | .smartBike2016: SmartBike2016Profile(),
12 | .smartBike2018: SmartBike2018Profile(),
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfileName.swift:11:13: note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
9 |
10 | /// All valid bluetooth low energy profile names known up to date.
11 | public enum BikeProfileName: LosslessStringConvertible {
| `- note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
12 | /// The ble profile of a SmartBike.
13 | case smartBike2016
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfile.swift:3:10: note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
1 | import CoreBluetooth
2 |
3 | protocol BikeProfile {
| `- note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
4 | var model: String { get }
5 | var identifier: CBUUID { get }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:19:23: warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | /// This bike has an electronically disengaging, physical lock.
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
| |- warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:21:23: warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
| |- warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alarm' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:23:23: warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
| |- warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:25:23: warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
| |- warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'speaker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:632:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
630 |
631 | self.bluetoothState = self.connection.statePublisher.sink { state in
632 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
633 | await self.onChangedConnectionState(state)
| `- note: closure captures 'self' which is accessible to code in the current task
634 | }
635 | }
[39/40] Compiling OldMoofKit BikeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeDetails.swift:10:5: warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | let bleProfileToBikeProfile: [BikeProfileName: any BikeProfile] = [
| |- warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bleProfileToBikeProfile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | .smartBike2016: SmartBike2016Profile(),
12 | .smartBike2018: SmartBike2018Profile(),
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfileName.swift:11:13: note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
9 |
10 | /// All valid bluetooth low energy profile names known up to date.
11 | public enum BikeProfileName: LosslessStringConvertible {
| `- note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
12 | /// The ble profile of a SmartBike.
13 | case smartBike2016
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfile.swift:3:10: note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
1 | import CoreBluetooth
2 |
3 | protocol BikeProfile {
| `- note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
4 | var model: String { get }
5 | var identifier: CBUUID { get }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:19:23: warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | /// This bike has an electronically disengaging, physical lock.
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
| |- warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:21:23: warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
| |- warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alarm' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:23:23: warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
| |- warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:25:23: warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
| |- warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'speaker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:632:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
630 |
631 | self.bluetoothState = self.connection.statePublisher.sink { state in
632 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
633 | await self.onChangedConnectionState(state)
| `- note: closure captures 'self' which is accessible to code in the current task
634 | }
635 | }
[40/40] Compiling OldMoofKit BikeHardware.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeDetails.swift:10:5: warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | let bleProfileToBikeProfile: [BikeProfileName: any BikeProfile] = [
| |- warning: let 'bleProfileToBikeProfile' is not concurrency-safe because non-'Sendable' type '[BikeProfileName : any BikeProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bleProfileToBikeProfile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | .smartBike2016: SmartBike2016Profile(),
12 | .smartBike2018: SmartBike2018Profile(),
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfileName.swift:11:13: note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
9 |
10 | /// All valid bluetooth low energy profile names known up to date.
11 | public enum BikeProfileName: LosslessStringConvertible {
| `- note: consider making enum 'BikeProfileName' conform to the 'Sendable' protocol
12 | /// The ble profile of a SmartBike.
13 | case smartBike2016
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeProfile.swift:3:10: note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
1 | import CoreBluetooth
2 |
3 | protocol BikeProfile {
| `- note: protocol 'BikeProfile' does not conform to the 'Sendable' protocol
4 | var model: String { get }
5 | var identifier: CBUUID { get }
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:19:23: warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
17 |
18 | /// This bike has an electronically disengaging, physical lock.
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
| |- warning: static property 'elock' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:21:23: warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
19 | public static let elock = BikeHardware(rawValue: 1 << 0)
20 | /// This bike has an automatic anti-theft device.
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
| |- warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'alarm' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:23:23: warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
21 | public static let alarm = BikeHardware(rawValue: 1 << 1)
22 | /// This bike has a motor.
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
| |- warning: static property 'motor' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'motor' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/BikeHardware.swift:25:23: warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// Represents the hardware capabilities a bike may have.
11 | public struct BikeHardware: OptionSet {
| `- note: consider making struct 'BikeHardware' conform to the 'Sendable' protocol
12 | public let rawValue: Int
13 |
:
23 | public static let motor = BikeHardware(rawValue: 1 << 2)
24 | /// This bike has a speaker.
25 | public static let speaker = BikeHardware(rawValue: 1 << 3)
| |- warning: static property 'speaker' is not concurrency-safe because non-'Sendable' type 'BikeHardware' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'speaker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:632:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
630 |
631 | self.bluetoothState = self.connection.statePublisher.sink { state in
632 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
633 | await self.onChangedConnectionState(state)
| `- note: closure captures 'self' which is accessible to code in the current task
634 | }
635 | }
Build complete! (6.04s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OldMoofKit",
"name" : "OldMoofKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "OldMoofKit",
"targets" : [
"OldMoofKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OldMoofKitTests",
"module_type" : "SwiftTarget",
"name" : "OldMoofKitTests",
"path" : "Tests/OldMoofKitTests",
"sources" : [
"TestBike.swift",
"TestBikeDetails.swift",
"TestEncryption.swift",
"TestHexString.swift",
"TestStringValidation.swift",
"TestWebApi.swift"
],
"target_dependencies" : [
"OldMoofKit"
],
"type" : "test"
},
{
"c99name" : "OldMoofKit",
"module_type" : "SwiftTarget",
"name" : "OldMoofKit",
"path" : "Sources/OldMoofKit",
"product_memberships" : [
"OldMoofKit"
],
"sources" : [
"Bike/Bike.swift",
"Bike/BikeDetails.swift",
"Bike/BikeError.swift",
"Bike/BikeHardware.swift",
"Bike/BikeProfile.swift",
"Bike/BikeProfileName.swift",
"Bike/Data/Alarm.swift",
"Bike/Data/BatteryState.swift",
"Bike/Data/BikeState.swift",
"Bike/Data/ErrorCode.swift",
"Bike/Data/Lighting.swift",
"Bike/Data/Lock.swift",
"Bike/Data/ModuleState.swift",
"Bike/Data/MotorAssistance.swift",
"Bike/Data/MutedSounds.swift",
"Bike/Data/Parameters.swift",
"Bike/Data/Region.swift",
"Bike/Data/Sound.swift",
"Bike/Data/Unit.swift",
"Bike/Profiles/Electrified2017Profile.swift",
"Bike/Profiles/Electrified2018Profile.swift",
"Bike/Profiles/SmartBike2016Profile.swift",
"Bike/Profiles/SmartBike2018Profile.swift",
"Bike/ReadRequest.swift",
"Bike/WriteRequest.swift",
"Bluetooth/BluetoothConnection.swift",
"Bluetooth/BluetoothError.swift",
"Bluetooth/BluetoothNotification.swift",
"Bluetooth/BluetoothScanner.swift",
"Bluetooth/BluetoothState.swift",
"Extensions/Data+Crypt.swift",
"Extensions/Data+HexString.swift",
"Extensions/Data+Numeric.swift",
"Extensions/String+Validation.swift",
"Logger.swift",
"WebApi/VanMoof.swift",
"WebApi/VanMoofError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/jegge/oldmoofkit/main
Repository: Jegge/OldMoofKit
Swift version used: 6.1
Target: OldMoofKit
Extracting symbol information for 'OldMoofKit'...
Finished extracting symbol information for 'OldMoofKit'. (7.12s)
Building documentation for 'OldMoofKit'...
warning: External name 'timeout' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:231:21-231:28
229 | ///
230 | /// - Parameter details: The details describe the bike we are looking for.
231 + /// - Parameter timeout: The timeout allows us to abort the bluetooth scan after a specified time period.
| ╰─suggestion: Replace 'timeout' with 'seconds'
232 | ///
233 | /// - Returns: A connectable bike.
warning: External name 'lock' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:475:21-475:25
473 | /// request, where some physical activity on the bike has to be performed to unlock it.
474 | ///
475 + /// - Parameter lock: The new value to set.
| ╰─suggestion: Replace 'lock' with 'value'
476 | ///
477 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'lighting' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:488:21-488:29
486 | /// update upon receiving an appropriate bluetooth notification.
487 | ///
488 + /// - Parameter lighting: The new value to set.
| ╰─suggestion: Replace 'lighting' with 'value'
489 | ///
490 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'alarm' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:501:21-501:26
499 | /// update upon receiving an appropriate bluetooth notification.
500 | ///
501 + /// - Parameter alarm: The new value to set.
| ╰─suggestion: Replace 'alarm' with 'value'
502 | ///
503 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'motorAssistance' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:516:21-516:36
514 | /// Also sets the current ``region`` of the bike. If the current ``region`` is `nil`, this call gets ignored.
515 | ///
516 + /// - Parameter motorAssistance: The new value to set.
| ╰─suggestion: Replace 'motorAssistance' with 'value'
517 | ///
518 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'region' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:533:21-533:27
531 | /// Also sets the current ``motorAssistance`` of the bike. If the current ``motorAssistance`` is `nil`, this call gets ignored.
532 | ///
533 + /// - Parameter region: The new value to set.
| ╰─suggestion: Replace 'region' with 'value'
534 | ///
535 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'unit' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:548:21-548:25
546 | /// update upon receiving an appropriate bluetooth notification.
547 | ///
548 + /// - Parameter unit: The new value to set.
| ╰─suggestion: Replace 'unit' with 'value'
549 | ///
550 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: External name 'mutedSounds' used to document parameter
--> Sources/OldMoofKit/Bike/Bike.swift:561:21-561:32
559 | /// update upon receiving an appropriate bluetooth notification.
560 | ///
561 + /// - Parameter mutedSounds: The new value to set.
| ╰─suggestion: Replace 'mutedSounds' with 'value'
562 | ///
563 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: Parameter 'cound' not found in instance method declaration
--> Sources/OldMoofKit/Bike/Bike.swift:575:21-575:26
573 | ///
574 | /// - Parameter sound: The sound to play. Depending on your bike, this sound may not be heard.
575 + /// - Parameter cound: How often this sound is played.
| ├─suggestion: Replace 'cound' with 'count'
| ╰─suggestion: Replace 'cound' with 'sound'
576 | ///
577 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
warning: Parameter 'count' is missing documentation
--> Sources/OldMoofKit/Bike/Bike.swift:576:9-576:9
574 | /// - Parameter sound: The sound to play. Depending on your bike, this sound may not be heard.
575 | /// - Parameter cound: How often this sound is played.
576 + ///
| ╰─suggestion: Document 'count' parameter
577 | /// - Throws: ``BikeError/notConnected`` if the bike currently not connected.
578 | public func playSound (_ sound: Sound, repeat count: UInt8 = 1) async throws {
Finished building documentation for 'OldMoofKit' (0.24s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/jegge/oldmoofkit/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.46s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.05s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.90s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.54s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit DeclarationFragments.swift
[8/57] Compiling SymbolKit Fragment.swift
[9/57] Compiling SymbolKit FragmentKind.swift
[10/57] Compiling SymbolKit FunctionParameter.swift
[11/57] Compiling SymbolKit FunctionSignature.swift
[12/57] Compiling SymbolKit Mixin+Equals.swift
[13/57] Compiling SymbolKit Mixin+Hash.swift
[14/57] Compiling SymbolKit Mixin.swift
[15/57] Compiling SymbolKit LineList.swift
[16/57] Compiling SymbolKit Position.swift
[17/57] Compiling SymbolKit GenericConstraint.swift
[18/57] Compiling SymbolKit GenericParameter.swift
[19/57] Compiling SymbolKit Generics.swift
[20/57] Compiling SymbolKit Namespace.swift
[21/57] Compiling SymbolKit SemanticVersion.swift
[22/57] Compiling SymbolKit AccessControl.swift
[23/57] Compiling SymbolKit Availability.swift
[24/57] Compiling SymbolKit AvailabilityItem.swift
[25/57] Compiling SymbolKit Domain.swift
[26/57] Compiling Snippets SnippetParser.swift
[27/57] Emitting module Snippets
[28/57] Compiling Snippets Snippet.swift
[29/57] Compiling SymbolKit Relationship.swift
[30/57] Compiling SymbolKit RelationshipKind.swift
[31/57] Compiling SymbolKit SourceOrigin.swift
[32/57] Compiling SymbolKit GenericConstraints.swift
[33/57] Compiling SymbolKit Swift.swift
[34/57] Compiling SymbolKit Names.swift
[35/57] Compiling SymbolKit SPI.swift
[36/57] Compiling SymbolKit Snippet.swift
[37/57] Compiling SymbolKit Extension.swift
[38/57] Compiling SymbolKit Identifier.swift
[39/57] Compiling SymbolKit KindIdentifier.swift
[40/57] Compiling SymbolKit Location.swift
[41/57] Compiling SymbolKit Mutability.swift
[42/57] Compiling SymbolKit Symbol.swift
[43/57] Compiling SymbolKit SymbolKind.swift
[44/57] Compiling SymbolKit SymbolGraph.swift
[45/57] Compiling SymbolKit GraphCollector.swift
[46/57] Compiling SymbolKit SourceRange.swift
[47/57] Compiling SymbolKit Metadata.swift
[48/57] Compiling SymbolKit Module.swift
[49/57] Compiling SymbolKit OperatingSystem.swift
[50/57] Compiling SymbolKit Platform.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.95s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/36] Compiling OldMoofKit BikeState.swift
[3/36] Compiling OldMoofKit ErrorCode.swift
[4/36] Compiling OldMoofKit Lighting.swift
[5/36] Compiling OldMoofKit Lock.swift
[6/39] Compiling OldMoofKit ModuleState.swift
[7/39] Compiling OldMoofKit MotorAssistance.swift
[8/39] Compiling OldMoofKit MutedSounds.swift
[9/39] Compiling OldMoofKit Parameters.swift
[10/39] Compiling OldMoofKit Data+HexString.swift
[11/39] Compiling OldMoofKit Data+Numeric.swift
[12/39] Compiling OldMoofKit String+Validation.swift
[13/39] Compiling OldMoofKit Region.swift
[14/39] Compiling OldMoofKit Sound.swift
[15/39] Compiling OldMoofKit Unit.swift
[16/39] Compiling OldMoofKit Electrified2017Profile.swift
[17/39] Compiling OldMoofKit WriteRequest.swift
[18/39] Compiling OldMoofKit BluetoothConnection.swift
[19/39] Compiling OldMoofKit BluetoothError.swift
[20/39] Compiling OldMoofKit BluetoothNotification.swift
[21/39] Compiling OldMoofKit BluetoothScanner.swift
[22/39] Compiling OldMoofKit BluetoothState.swift
[23/39] Compiling OldMoofKit Data+Crypt.swift
[24/39] Emitting module OldMoofKit
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[25/39] Compiling OldMoofKit Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[26/39] Compiling OldMoofKit VanMoof.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[27/39] Compiling OldMoofKit VanMoofError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[28/39] Compiling OldMoofKit Electrified2018Profile.swift
[29/39] Compiling OldMoofKit SmartBike2016Profile.swift
[30/39] Compiling OldMoofKit SmartBike2018Profile.swift
[31/39] Compiling OldMoofKit ReadRequest.swift
[32/39] Compiling OldMoofKit Bike.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[33/39] Compiling OldMoofKit BikeDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[34/39] Compiling OldMoofKit BikeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[35/39] Compiling OldMoofKit BikeHardware.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
79 |
80 | /// The current lock state of the bike. Can be set with ``set(lock:)``.
81 | private (set) public var lock: Lock = .locked {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
82 | didSet {
83 | self.lockPublisher.send(self.lock)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:90:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
88 | ///
89 | /// If your bike does not support an alarm, this value will be `nil`.
90 | private (set) public var alarm: Alarm? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
91 | didSet {
92 | if let alarm = self.alarm {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:99:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
97 |
98 | /// The current lighting mode of the bike. Can be set with ``set(lighting:)``.
99 | private (set) public var lighting: Lighting = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
100 | didSet {
101 | self.lightingPublisher.send(self.lighting)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:108:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
106 | ///
107 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
108 | private (set) public var batteryLevel: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
109 | didSet {
110 | self.batteryLevelPublisher.send(self.batteryLevel)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:117:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
115 | ///
116 | /// Refers to the motor battery in bikes that do have a motor, otherwise refers to the module battery.
117 | private (set) public var batteryState: BatteryState = .discharging {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
118 | didSet {
119 | self.batteryStatePublisher.send(self.batteryState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:126:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
124 | ///
125 | /// If the bike is in standy, use ``wakeup()`` to wake it up.
126 | private (set) public var moduleState: ModuleState = .off {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
127 | didSet {
128 | self.moduleStatePublisher.send(self.moduleState)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:133:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
131 |
132 | /// The current error code of the bike.
133 | private (set) public var errorCode: ErrorCode = ErrorCode() {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
134 | didSet {
135 | self.errorCodePublisher.send(self.errorCode)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:142:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
140 | ///
141 | /// If your bike does not have a motor, this value will be `nil`.
142 | private (set) public var motorAssistance: MotorAssistance? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
143 | didSet {
144 | if let motorAssistance = self.motorAssistance {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:153:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
151 | ///
152 | /// If your bike does not have a speaker, this value will always be empty.
153 | private (set) public var mutedSounds: MutedSounds = [] {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
154 | didSet {
155 | self.mutedSoundsPublisher.send(self.mutedSounds)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:160:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
158 |
159 | /// The current speed in km/h of the bike.
160 | private (set) public var speed: Int = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
161 | didSet {
162 | self.speedPublisher.send(self.speed)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:167:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
165 |
166 | /// The currently travelled distance in hectometers of the bike.
167 | private (set) public var distance: Double = 0 {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
168 | didSet {
169 | self.distancePublisher.send(self.distance)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:179:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
177 | /// country may be illegal in some jurisdictions. Use at your own risk.
178 | /// If your bike does not have a motor, this value will be `nil`.
179 | private (set) public var region: Region? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
180 | didSet {
181 | if let region = self.region {
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:190:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
188 | ///
189 | /// Defines wether speed and distance should be converted into mph.
190 | private (set) public var unit: Unit? {
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
191 | didSet {
192 | if let unit = self.unit {
[36/39] Compiling OldMoofKit BikeProfile.swift
[37/39] Compiling OldMoofKit BikeProfileName.swift
[38/39] Compiling OldMoofKit Alarm.swift
[39/39] Compiling OldMoofKit BatteryState.swift
Build of target: 'OldMoofKit' complete! (1.89s)
718
5 /Users/admin/builder/spi-builder-workspace/.docs/jegge/oldmoofkit/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/jegge/oldmoofkit/main
File count: 718
Doc size: 5.0MB
Preparing doc bundle ...
Uploading prod-jegge-oldmoofkit-main-1f4c92b6.zip to s3://spi-docs-inbox/prod-jegge-oldmoofkit-main-1f4c92b6.zip
Copying... [12%]
Copying... [25%]
Copying... [31%]
Copying... [43%]
Copying... [56%]
Copying... [62%]
Copying... [74%]
Copying... [81%]
Copying... [93%]
Copying... [100%]
Done.