Build Information
Successful build of OldMoofKit, reference 0.0.4 (50d88d
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 09:31:16 UTC.
Swift 6 data race errors: 75
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:33:24: warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'functions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
35 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:34:24: warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parameters' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:31:24: warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'challenge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:33:24: warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'functions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
35 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:34:24: warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parameters' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:31:24: warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'challenge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:33:24: warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'functions' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'functions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
35 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:34:24: warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
33 | static let functions = CBUUID(string: "8e7f1a53-087a-44c9-b292-a2c628fdd9aa")
34 | static let parameters = CBUUID(string: "8e7f1a54-087a-44c9-b292-a2c628fdd9aa")
| |- warning: static property 'parameters' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parameters' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:13:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
11 | struct Service {
12 | struct Default {
13 | static let identifier = CBUUID(string: "1800")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let batteryLevel = CBUUID(string: "2A19")
15 | static let batteryPowerState = CBUUID(string: "2A1A")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct SmartBike2018Profile: BikeProfile {
11 | struct Service {
12 | struct Default {
13 | static let identifier = CBUUID(string: "1800")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | static let batteryLevel = CBUUID(string: "2A19")
15 | static let batteryPowerState = CBUUID(string: "2A1A")
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:14:24: warning: static property 'batteryLevel' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | struct Default {
13 | static let identifier = CBUUID(string: "1800")
14 | static let batteryLevel = CBUUID(string: "2A19")
| |- warning: static property 'batteryLevel' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'batteryLevel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let batteryPowerState = CBUUID(string: "2A1A")
16 | static let deviceName = CBUUID(string: "2A00")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:15:24: warning: static property 'batteryPowerState' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let identifier = CBUUID(string: "1800")
14 | static let batteryLevel = CBUUID(string: "2A19")
15 | static let batteryPowerState = CBUUID(string: "2A1A")
| |- warning: static property 'batteryPowerState' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'batteryPowerState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let deviceName = CBUUID(string: "2A00")
17 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:16:24: warning: static property 'deviceName' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let batteryLevel = CBUUID(string: "2A19")
15 | static let batteryPowerState = CBUUID(string: "2A1A")
16 | static let deviceName = CBUUID(string: "2A00")
| |- warning: static property 'deviceName' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'deviceName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 |
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:20:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | struct Security {
20 | static let identifier = CBUUID(string: "6ACB5520-E631-4069-944D-B8CA7598AD50")
| |- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | // static let unknown = CBUUID(string: "6ACB5521-E631-4069-944D-B8CA7598AD50") // W
22 | static let challenge = CBUUID(string: "6ACB5522-E631-4069-944D-B8CA7598AD50") // R
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:22:24: warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
20 | static let identifier = CBUUID(string: "6ACB5520-E631-4069-944D-B8CA7598AD50")
21 | // static let unknown = CBUUID(string: "6ACB5521-E631-4069-944D-B8CA7598AD50") // W
22 | static let challenge = CBUUID(string: "6ACB5522-E631-4069-944D-B8CA7598AD50") // R
| |- warning: static property 'challenge' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'challenge' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | static let passcode = CBUUID(string: "6ACB5523-E631-4069-944D-B8CA7598AD50") // W
24 | // static let encryptionKey = CBUUID(string: "6ACB5524-E631-4069-944D-B8CA7598AD50") // WN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:23:24: warning: static property 'passcode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
21 | // static let unknown = CBUUID(string: "6ACB5521-E631-4069-944D-B8CA7598AD50") // W
22 | static let challenge = CBUUID(string: "6ACB5522-E631-4069-944D-B8CA7598AD50") // R
23 | static let passcode = CBUUID(string: "6ACB5523-E631-4069-944D-B8CA7598AD50") // W
| |- warning: static property 'passcode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'passcode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | // static let encryptionKey = CBUUID(string: "6ACB5524-E631-4069-944D-B8CA7598AD50") // WN
25 | // static let distributionKey = CBUUID(string: "6ACB5525-E631-4069-944D-B8CA7598AD50") // WN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:29:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | struct Setting {
29 | static let identifier = CBUUID(string: "6ACB5510-E631-4069-944D-B8CA7598AD50")
| |- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | static let light = CBUUID(string: "6ACB5511-E631-4069-944D-B8CA7598AD50") // RWN
31 | static let alarm = CBUUID(string: "6ACB5512-E631-4069-944D-B8CA7598AD50") // RWN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:30:24: warning: static property 'light' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 | struct Setting {
29 | static let identifier = CBUUID(string: "6ACB5510-E631-4069-944D-B8CA7598AD50")
30 | static let light = CBUUID(string: "6ACB5511-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'light' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'light' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let alarm = CBUUID(string: "6ACB5512-E631-4069-944D-B8CA7598AD50") // RWN
32 | // static let wheelSize = CBUUID(string: "6ACB5513-E631-4069-944D-B8CA7598AD50") // RWN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:31:24: warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let identifier = CBUUID(string: "6ACB5510-E631-4069-944D-B8CA7598AD50")
30 | static let light = CBUUID(string: "6ACB5511-E631-4069-944D-B8CA7598AD50") // RWN
31 | static let alarm = CBUUID(string: "6ACB5512-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'alarm' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alarm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | // static let wheelSize = CBUUID(string: "6ACB5513-E631-4069-944D-B8CA7598AD50") // RWN
33 | // static let lightSensor = CBUUID(string: "6ACB5514-E631-4069-944D-B8CA7598AD50") // RN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:34:24: warning: static property 'backupCode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
32 | // static let wheelSize = CBUUID(string: "6ACB5513-E631-4069-944D-B8CA7598AD50") // RWN
33 | // static let lightSensor = CBUUID(string: "6ACB5514-E631-4069-944D-B8CA7598AD50") // RN
34 | static let backupCode = CBUUID(string: "6ACB5515-E631-4069-944D-B8CA7598AD50") // W
| |- warning: static property 'backupCode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'backupCode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:38:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | struct Command {
38 | static let identifier = CBUUID(string: "6ACB5500-E631-4069-944D-B8CA7598AD50")
| |- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let lock = CBUUID(string: "6ACB5501-E631-4069-944D-B8CA7598AD50") // RWN
40 | static let distance = CBUUID(string: "6ACB5502-E631-4069-944D-B8CA7598AD50") // RWN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:39:24: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
37 | struct Command {
38 | static let identifier = CBUUID(string: "6ACB5500-E631-4069-944D-B8CA7598AD50")
39 | static let lock = CBUUID(string: "6ACB5501-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lock' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | static let distance = CBUUID(string: "6ACB5502-E631-4069-944D-B8CA7598AD50") // RWN
41 | static let speed = CBUUID(string: "6ACB5503-E631-4069-944D-B8CA7598AD50") // RN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:40:24: warning: static property 'distance' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
38 | static let identifier = CBUUID(string: "6ACB5500-E631-4069-944D-B8CA7598AD50")
39 | static let lock = CBUUID(string: "6ACB5501-E631-4069-944D-B8CA7598AD50") // RWN
40 | static let distance = CBUUID(string: "6ACB5502-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'distance' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'distance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | static let speed = CBUUID(string: "6ACB5503-E631-4069-944D-B8CA7598AD50") // RN
42 | // static let gSensor = CBUUID(string: "6ACB5504-E631-4069-944D-B8CA7598AD50") // RN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:41:24: warning: static property 'speed' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let lock = CBUUID(string: "6ACB5501-E631-4069-944D-B8CA7598AD50") // RWN
40 | static let distance = CBUUID(string: "6ACB5502-E631-4069-944D-B8CA7598AD50") // RWN
41 | static let speed = CBUUID(string: "6ACB5503-E631-4069-944D-B8CA7598AD50") // RN
| |- warning: static property 'speed' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'speed' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | // static let gSensor = CBUUID(string: "6ACB5504-E631-4069-944D-B8CA7598AD50") // RN
43 | static let sounds = CBUUID(string: "6ACB5505-E631-4069-944D-B8CA7598AD50") // RWN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:43:24: warning: static property 'sounds' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
41 | static let speed = CBUUID(string: "6ACB5503-E631-4069-944D-B8CA7598AD50") // RN
42 | // static let gSensor = CBUUID(string: "6ACB5504-E631-4069-944D-B8CA7598AD50") // RN
43 | static let sounds = CBUUID(string: "6ACB5505-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'sounds' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sounds' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | // static let transfer = CBUUID(string: "6ACB5506-E631-4069-944D-B8CA7598AD50") // W
45 | static let moduleState = CBUUID(string: "6ACB5507-E631-4069-944D-B8CA7598AD50") // RWN
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:45:24: warning: static property 'moduleState' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
43 | static let sounds = CBUUID(string: "6ACB5505-E631-4069-944D-B8CA7598AD50") // RWN
44 | // static let transfer = CBUUID(string: "6ACB5506-E631-4069-944D-B8CA7598AD50") // W
45 | static let moduleState = CBUUID(string: "6ACB5507-E631-4069-944D-B8CA7598AD50") // RWN
| |- warning: static property 'moduleState' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'moduleState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let errorCode = CBUUID(string: "6ACB5508-E631-4069-944D-B8CA7598AD50") // RN 0008000008000000af000000b821002044000011
47 | // static let unknown = CBUUID(string: "6ACB5509-E631-4069-944D-B8CA7598AD50") // W
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2018Profile.swift:46:24: warning: static property 'errorCode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
44 | // static let transfer = CBUUID(string: "6ACB5506-E631-4069-944D-B8CA7598AD50") // W
45 | static let moduleState = CBUUID(string: "6ACB5507-E631-4069-944D-B8CA7598AD50") // RWN
46 | static let errorCode = CBUUID(string: "6ACB5508-E631-4069-944D-B8CA7598AD50") // RN 0008000008000000af000000b821002044000011
| |- warning: static property 'errorCode' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorCode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | // static let unknown = CBUUID(string: "6ACB5509-E631-4069-944D-B8CA7598AD50") // W
48 | }
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Logger.swift:11:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger {
11 | private static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static let bike = Logger(subsystem: subsystem, category: "bike")
13 | static let bluetooth = Logger(subsystem: subsystem, category: "bluetooth")
[37/40] Compiling OldMoofKit Bike.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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: annotate 'bleProfileToBikeProfile' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/SmartBike2016Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct SmartBike2016Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'elock' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'alarm' with '@MainActor' if property should only be accessed from the main actor
| `- 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: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: annotate 'speaker' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2017Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2017Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'motor' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2018Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2018Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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: annotate 'bleProfileToBikeProfile' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/SmartBike2016Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct SmartBike2016Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'elock' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'alarm' with '@MainActor' if property should only be accessed from the main actor
| `- 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: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: annotate 'speaker' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2017Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2017Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'motor' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2018Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2018Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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: annotate 'bleProfileToBikeProfile' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/SmartBike2016Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct SmartBike2016Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'elock' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'alarm' with '@MainActor' if property should only be accessed from the main actor
| `- 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: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: annotate 'speaker' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2017Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2017Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'motor' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2018Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2018Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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: annotate 'bleProfileToBikeProfile' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/SmartBike2016Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/SmartBike2016Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct SmartBike2016Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'elock' with '@MainActor' if property should only be accessed from the main actor
| `- 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: annotate 'alarm' with '@MainActor' if property should only be accessed from the main actor
| `- 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: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: annotate 'speaker' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2017Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2017Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2017Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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: annotate 'motor' with '@MainActor' if property should only be accessed from the main actor
| `- 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/Profiles/Electrified2018Profile.swift:30:24: warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| `- warning: static property 'identifier' is not concurrency-safe because non-'Sendable' type 'CBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
CoreBluetooth.CBUUID:2:12: note: class 'CBUUID' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.7, *)
2 | open class CBUUID : NSObject, NSCopying {
| `- note: class 'CBUUID' does not conform to the 'Sendable' protocol
3 | open var data: Data { get }
4 | @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Profiles/Electrified2018Profile.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
6 | //
7 |
8 | import CoreBluetooth
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreBluetooth'
9 |
10 | struct Electified2018Profile: BikeProfile {
:
28 |
29 | struct Bike {
30 | static let identifier = CBUUID(string: "8e7f1a50-087a-44c9-b292-a2c628fdd9aa")
| |- note: annotate 'identifier' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | static let challenge = CBUUID(string: "8e7f1a51-087a-44c9-b292-a2c628fdd9aa")
32 | // static let passcode = CBUUID(string: "8e7f1a52-087a-44c9-b292-a2c628fdd9aa")
/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! (12.54s)
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/0.0.4
Repository: Jegge/OldMoofKit
Swift version used: 6.0
Target: OldMoofKit
Extracting symbol information for 'OldMoofKit'...
Finished extracting symbol information for 'OldMoofKit'. (7.35s)
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: Return value documented for initializer returning void
--> Sources/OldMoofKit/Bike/Bike.swift:233:9-234:9
231 | /// - Parameter timeout: The timeout allows us to abort the bluetooth scan after a specified time period.
232 | ///
233 + /// - Returns: A connectable bike.
| ╰─suggestion: Remove return value documentation
234 + ///
235 | /// - Throws: ``BikeError/bikeNotSupported`` if the requested bike model is not supported.
236 | /// - Throws: ``BluetoothError/timeout`` if the bike could not be found via bluetooth in the specified time period.
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 {
warning: Return value documented for initializer returning void
--> Sources/OldMoofKit/WebApi/VanMoof.swift:239:9-240:9
237 | /// - Parameter apiKey: The api key to use when querying the ``VanMoof`` web api. Defaults to the content of ``VanMoof/Api/key``.
238 | ///
239 + /// - Returns: A connectable bike.
| ╰─suggestion: Remove return value documentation
240 + ///
241 | /// - Throws: ``VanMoofError/noSupportedBikesFound`` if no bike details could be downloaded.
242 | /// - Throws: ``BikeError/bikeNotSupported`` if the requested bike model is not supported.Finished building documentation for 'OldMoofKit' (0.28s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/jegge/oldmoofkit/0.0.4
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.30s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.36s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.70s)
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--7754E27361AE5C74.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Emitting module Snippets
[8/53] Compiling Snippets Snippet.swift
[9/53] Compiling SymbolKit SemanticVersion.swift
[10/53] Compiling SymbolKit AccessControl.swift
[11/53] Compiling SymbolKit Availability.swift
[12/53] Compiling SymbolKit AvailabilityItem.swift
[13/53] Compiling SymbolKit Domain.swift
[14/57] Compiling SymbolKit DeclarationFragments.swift
[15/57] Compiling SymbolKit Fragment.swift
[16/57] Compiling SymbolKit FragmentKind.swift
[17/57] Compiling SymbolKit FunctionParameter.swift
[18/57] Compiling SymbolKit FunctionSignature.swift
[19/57] Compiling SymbolKit Mixin+Equals.swift
[20/57] Compiling SymbolKit Mixin+Hash.swift
[21/57] Compiling SymbolKit Mixin.swift
[22/57] Compiling SymbolKit LineList.swift
[23/57] Compiling SymbolKit Position.swift
[24/57] Compiling SymbolKit Symbol.swift
[25/57] Compiling SymbolKit SymbolKind.swift
[26/57] Compiling SymbolKit SymbolGraph.swift
[27/57] Compiling SymbolKit GraphCollector.swift
[28/57] Compiling SymbolKit GenericConstraint.swift
[29/57] Compiling SymbolKit GenericParameter.swift
[30/57] Compiling SymbolKit Generics.swift
[31/57] Compiling SymbolKit Namespace.swift
[32/57] Compiling SymbolKit SourceRange.swift
[33/57] Compiling SymbolKit Metadata.swift
[34/57] Compiling SymbolKit Module.swift
[35/57] Compiling SymbolKit OperatingSystem.swift
[36/57] Compiling SymbolKit Platform.swift
[37/57] Compiling SymbolKit Relationship.swift
[38/57] Compiling SymbolKit RelationshipKind.swift
[39/57] Compiling SymbolKit SourceOrigin.swift
[40/57] Compiling SymbolKit GenericConstraints.swift
[41/57] Compiling SymbolKit Swift.swift
[42/57] Compiling SymbolKit Identifier.swift
[43/57] Compiling SymbolKit KindIdentifier.swift
[44/57] Compiling SymbolKit Location.swift
[45/57] Compiling SymbolKit Mutability.swift
[46/57] Compiling SymbolKit Names.swift
[47/57] Compiling SymbolKit SPI.swift
[48/57] Compiling SymbolKit Snippet.swift
[49/57] Compiling SymbolKit Extension.swift
[50/57] Emitting module SymbolKit
[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] Emitting module snippet_extract
[57/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[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! (4.89s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/36] Compiling OldMoofKit Data+HexString.swift
[3/36] Compiling OldMoofKit Data+Numeric.swift
[4/36] Compiling OldMoofKit String+Validation.swift
[5/39] Emitting module OldMoofKit
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 {
[6/39] Compiling OldMoofKit BluetoothScanner.swift
[7/39] Compiling OldMoofKit BluetoothState.swift
[8/39] Compiling OldMoofKit Data+Crypt.swift
[9/39] Compiling OldMoofKit BikeState.swift
[10/39] Compiling OldMoofKit ErrorCode.swift
[11/39] Compiling OldMoofKit Lighting.swift
[12/39] Compiling OldMoofKit Lock.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 ModuleState.swift
[18/39] Compiling OldMoofKit MotorAssistance.swift
[19/39] Compiling OldMoofKit MutedSounds.swift
[20/39] Compiling OldMoofKit Parameters.swift
[21/39] Compiling OldMoofKit BikeProfile.swift
[22/39] Compiling OldMoofKit BikeProfileName.swift
[23/39] Compiling OldMoofKit Alarm.swift
[24/39] Compiling OldMoofKit BatteryState.swift
[25/39] Compiling OldMoofKit WriteRequest.swift
[26/39] Compiling OldMoofKit BluetoothConnection.swift
[27/39] Compiling OldMoofKit BluetoothError.swift
[28/39] Compiling OldMoofKit BluetoothNotification.swift
[29/39] Compiling OldMoofKit Electrified2018Profile.swift
[30/39] Compiling OldMoofKit SmartBike2016Profile.swift
[31/39] Compiling OldMoofKit SmartBike2018Profile.swift
[32/39] Compiling OldMoofKit ReadRequest.swift
[33/39] Compiling OldMoofKit Bike.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 BikeDetails.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 BikeError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 BikeHardware.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 {
[37/39] Compiling OldMoofKit Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 {
[38/39] Compiling OldMoofKit VanMoof.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 {
[39/39] Compiling OldMoofKit VanMoofError.swift
/Users/admin/builder/spi-builder-workspace/Sources/OldMoofKit/Bike/Bike.swift:81:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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:5: 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 {
Build of target: 'OldMoofKit' complete! (1.45s)
718
5 /Users/admin/builder/spi-builder-workspace/.docs/jegge/oldmoofkit/0.0.4
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/jegge/oldmoofkit/0.0.4
File count: 718
Doc size: 5.0MB
Preparing doc bundle ...
Uploading prod-jegge-oldmoofkit-0.0.4-bccb6761.zip to s3://spi-docs-inbox/prod-jegge-oldmoofkit-0.0.4-bccb6761.zip
Copying... [12%]
Copying... [24%]
Copying... [31%]
Copying... [43%]
Copying... [55%]
Copying... [61%]
Copying... [73%]
Copying... [86%]
Copying... [92%]
Copying... [100%]
Done.