Build Information
Failed to build SwiftySensorsTrainers, reference master (93db8d
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 19:07:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeinversion/sensors-swift-trainers.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/codeinversion/sensors-swift-trainers
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 93db8dd Removing old functions on Kinetic Smart Control
Cloned https://github.com/codeinversion/sensors-swift-trainers.git
Revision (git rev-parse @):
93db8dd000e47233435a41ba061c23541ee18bb4
SUCCESS checkout https://github.com/codeinversion/sensors-swift-trainers.git at master
Fetching https://github.com/kinetic-fit/sensors-swift
[11/1068] Fetching sensors-swift
Fetched https://github.com/kinetic-fit/sensors-swift from cache (0.85s)
Fetching https://github.com/kinetic-fit/sensors-swift-kinetic
[1/26] Fetching sensors-swift-kinetic
Fetched https://github.com/kinetic-fit/sensors-swift-kinetic from cache (0.59s)
Fetching https://github.com/artman/Signals
[1/1052] Fetching signals
Fetched https://github.com/artman/Signals from cache (0.83s)
Computing version for https://github.com/artman/Signals
Computed https://github.com/artman/Signals at 6.1.0 (3.66s)
Creating working copy for https://github.com/artman/Signals
Working copy of https://github.com/artman/Signals resolved at 6.1.0
Creating working copy for https://github.com/kinetic-fit/sensors-swift
Working copy of https://github.com/kinetic-fit/sensors-swift resolved at master (4525ec6)
Creating working copy for https://github.com/kinetic-fit/sensors-swift-kinetic
Working copy of https://github.com/kinetic-fit/sensors-swift-kinetic resolved at master (9335f10)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "sensors-swift-trainers",
"name": "SwiftySensorsTrainers",
"url": "https://github.com/codeinversion/sensors-swift-trainers.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sensors-swift-trainers",
"dependencies": [
{
"identity": "sensors-swift",
"name": "SwiftySensors",
"url": "https://github.com/kinetic-fit/sensors-swift",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sensors-swift",
"dependencies": [
{
"identity": "signals",
"name": "Signals",
"url": "https://github.com/artman/Signals",
"version": "6.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Signals",
"dependencies": [
]
}
]
},
{
"identity": "sensors-swift-kinetic",
"name": "KineticSensors",
"url": "https://github.com/kinetic-fit/sensors-swift-kinetic",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sensors-swift-kinetic",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/codeinversion/sensors-swift-trainers.git
[1/524] Fetching sensors-swift-trainers
Fetched https://github.com/codeinversion/sensors-swift-trainers.git from cache (1.00s)
Fetching https://github.com/kinetic-fit/sensors-swift from cache
Fetched https://github.com/kinetic-fit/sensors-swift from cache (0.46s)
Fetching https://github.com/kinetic-fit/sensors-swift-kinetic from cache
Fetched https://github.com/kinetic-fit/sensors-swift-kinetic from cache (0.41s)
Fetching https://github.com/artman/Signals from cache
Fetched https://github.com/artman/Signals from cache (0.45s)
Computing version for https://github.com/artman/Signals
Computed https://github.com/artman/Signals at 6.1.0 (0.50s)
Creating working copy for https://github.com/kinetic-fit/sensors-swift-kinetic
Working copy of https://github.com/kinetic-fit/sensors-swift-kinetic resolved at master (9335f10)
Creating working copy for https://github.com/kinetic-fit/sensors-swift
Working copy of https://github.com/kinetic-fit/sensors-swift resolved at master (334b9a4)
Creating working copy for https://github.com/artman/Signals
Working copy of https://github.com/artman/Signals resolved at 6.1.0
Creating working copy for https://github.com/codeinversion/sensors-swift-trainers.git
Working copy of https://github.com/codeinversion/sensors-swift-trainers.git resolved at master (93db8dd)
warning: '.resolve-product-dependencies': dependency 'sensors-swift-trainers' is not used by any target
Found 2 product dependencies
- SwiftySensors
- KineticSensors
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/codeinversion/sensors-swift-trainers.git
https://github.com/codeinversion/sensors-swift-trainers.git
{
"dependencies" : [
{
"identity" : "sensors-swift",
"requirement" : {
"branch" : [
"master"
]
},
"type" : "sourceControl",
"url" : "https://github.com/kinetic-fit/sensors-swift"
},
{
"identity" : "sensors-swift-kinetic",
"requirement" : {
"branch" : [
"master"
]
},
"type" : "sourceControl",
"url" : "https://github.com/kinetic-fit/sensors-swift-kinetic"
}
],
"manifest_display_name" : "SwiftySensorsTrainers",
"name" : "SwiftySensorsTrainers",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftySensorsTrainers",
"targets" : [
"SwiftySensorsTrainers"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftySensorsTrainers",
"module_type" : "SwiftTarget",
"name" : "SwiftySensorsTrainers",
"path" : "Sources/SwiftySensorsTrainers",
"product_dependencies" : [
"SwiftySensors",
"KineticSensors"
],
"product_memberships" : [
"SwiftySensorsTrainers"
],
"sources" : [
"CycleOpsSerializer.swift",
"CycleOpsService.swift",
"EliteTrainerSerializer.swift",
"EliteTrainerService.swift",
"InRide2Service.swift",
"JetBlackSerializer.swift",
"JetBlackService.swift",
"KineticSerializer.swift",
"KineticService.swift",
"SmartControlService.swift",
"TacxSerializer.swift",
"TacxService.swift",
"WahooAdvancedFitnessMachineSerializer.swift",
"WahooAdvancedFitnessMachineService.swift",
"WahooTrainerCharacteristic.swift",
"WahooTrainerSerializer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-2F0A5646E1D333AE.txt
[4/14] Compiling KineticSensors inRide.c
[5/14] Compiling KineticSensors SmartControl.c
[6/14] Compiling KineticSensors KineticSDK.m
[7/14] Compiling KineticSensors KineticControl.m
[8/14] Compiling KineticSensors KineticInRide.m
[10/14] Compiling Signals UIBarButtonItem+Signals.swift
[11/14] Compiling Signals UIControl+Signals.swift
[12/14] Compiling Signals AssociatedObject.swift
[13/14] Emitting module Signals
[14/14] Compiling Signals Signal.swift
[15/31] Compiling SwiftySensors SensorManager.swift
[16/31] Compiling SwiftySensors HeartRateSerializer.swift
[17/31] Compiling SwiftySensors HeartRateService.swift
[18/31] Compiling SwiftySensors Operators.swift
[19/31] Compiling SwiftySensors RSSINormalizer.swift
[20/31] Compiling SwiftySensors Sensor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/Sensor.swift:278:53: error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
276 | /// :nodoc:
277 | public func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {
278 | guard let service = services[characteristic.service.uuid.uuidString] else { return }
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'uuid' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
279 | guard let char = service.characteristics[characteristic.uuid.uuidString] else { return }
280 | if char.cbCharacteristic !== characteristic {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/Sensor.swift:289:53: error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
287 | /// :nodoc:
288 | public func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?) {
289 | guard let service = services[characteristic.service.uuid.uuidString] else { return }
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'uuid' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
290 | guard let char = service.characteristics[characteristic.uuid.uuidString] else { return }
291 | if char.cbCharacteristic !== characteristic {
[21/32] Compiling SwiftySensors Service.swift
[22/32] Compiling SwiftySensors CyclingPowerSerializer.swift
[23/32] Compiling SwiftySensors CyclingPowerService.swift
[24/32] Compiling SwiftySensors CyclingSpeedCadenceService.swift
[25/32] Compiling SwiftySensors DeviceInformationService.swift
[26/32] Compiling SwiftySensors CyclingSerializer.swift
[27/32] Compiling SwiftySensors CyclingSpeedCadenceSerializer.swift
[28/32] Compiling SwiftySensors FitnessMachineSerializer.swift
[29/32] Compiling SwiftySensors FitnessMachineService.swift
[30/32] Emitting module SwiftySensors
[31/32] Compiling SwiftySensors Characteristic.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'setNotifyValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'readValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:12: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:20: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'state' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:13: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
39 | return true
40 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:21: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'writeValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
39 | return true
40 | }
[32/32] Compiling SwiftySensors CoreBluetooth.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'setNotifyValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'readValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:12: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:20: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'state' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:13: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
39 | return true
40 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:21: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'writeValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
39 | return true
40 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling Signals UIControl+Signals.swift
[3/6] Compiling Signals UIBarButtonItem+Signals.swift
[4/6] Compiling Signals AssociatedObject.swift
[5/6] Compiling Signals Signal.swift
[6/6] Emitting module Signals
[7/23] Compiling SwiftySensors Operators.swift
[8/23] Compiling SwiftySensors RSSINormalizer.swift
[9/23] Compiling SwiftySensors SensorManager.swift
[10/23] Compiling SwiftySensors Sensor.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/Sensor.swift:278:53: error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
276 | /// :nodoc:
277 | public func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {
278 | guard let service = services[characteristic.service.uuid.uuidString] else { return }
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'uuid' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
279 | guard let char = service.characteristics[characteristic.uuid.uuidString] else { return }
280 | if char.cbCharacteristic !== characteristic {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/Sensor.swift:289:53: error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
287 | /// :nodoc:
288 | public func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?) {
289 | guard let service = services[characteristic.service.uuid.uuidString] else { return }
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'uuid' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'uuid' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
290 | guard let char = service.characteristics[characteristic.uuid.uuidString] else { return }
291 | if char.cbCharacteristic !== characteristic {
[11/24] Compiling SwiftySensors HeartRateSerializer.swift
[12/24] Compiling SwiftySensors HeartRateService.swift
[13/24] Compiling SwiftySensors Service.swift
[14/24] Compiling SwiftySensors CyclingSpeedCadenceService.swift
[15/24] Compiling SwiftySensors DeviceInformationService.swift
[16/24] Compiling SwiftySensors CyclingPowerSerializer.swift
[17/24] Compiling SwiftySensors CyclingPowerService.swift
[18/24] Compiling SwiftySensors CyclingSerializer.swift
[19/24] Compiling SwiftySensors CyclingSpeedCadenceSerializer.swift
[20/24] Emitting module SwiftySensors
[21/24] Compiling SwiftySensors FitnessMachineSerializer.swift
[22/24] Compiling SwiftySensors FitnessMachineService.swift
[23/24] Compiling SwiftySensors Characteristic.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'setNotifyValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'readValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:12: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:20: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'state' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:13: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
39 | return true
40 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:21: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'writeValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
39 | return true
40 | }
[24/24] Compiling SwiftySensors CoreBluetooth.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:20:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
18 | */
19 | public func notify(_ enabled: Bool) {
20 | service.peripheral.setNotifyValue(enabled, for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'setNotifyValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'setNotifyValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:9: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:25:17: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
23 | /// Read the value of the Characteristic
24 | public func read() {
25 | service.peripheral.readValue(for: self)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'readValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'readValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:12: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:37:20: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
35 | */
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'state' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'state' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
38 | service.peripheral.writeValue(data, for: self, type: writeType)
39 | return true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:13: error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'peripheral' of wrapped base type 'CBService'
| `- note: chain the optional using '?' to access member 'peripheral' only for non-'nil' base values
39 | return true
40 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/sensors-swift/Sources/SwiftySensors/CoreBluetooth.swift:38:21: error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
36 | @discardableResult public func write(_ data: Data, writeType: CBCharacteristicWriteType) -> Bool {
37 | if service.peripheral.state == .connected {
38 | service.peripheral.writeValue(data, for: self, type: writeType)
| |- error: value of optional type 'CBPeripheral?' must be unwrapped to refer to member 'writeValue' of wrapped base type 'CBPeripheral'
| |- note: chain the optional using '?' to access member 'writeValue' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
39 | return true
40 | }
BUILD FAILURE 6.1 macosSpm