The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftySensors, reference master (334b9a), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 10:49:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codeinversion/sensors-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/codeinversion/sensors-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 334b9a4 Adding additional platforms to SPM Package file
Cloned https://github.com/codeinversion/sensors-swift.git
Revision (git rev-parse @):
334b9a4636501bc10daae26ecef23dd667fc3054
SUCCESS checkout https://github.com/codeinversion/sensors-swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/codeinversion/sensors-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/8] Compiling Signals UIControl+Signals.swift
[5/8] Compiling Signals UIBarButtonItem+Signals.swift
[6/8] Compiling Signals AssociatedObject.swift
[7/8] Emitting module Signals
[8/8] Compiling Signals Signal.swift
[9/25] Compiling SwiftySensors SensorManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftySensors/SensorManager.swift:144:48: warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
142 |
143 |     /// Bluetooth State Change Signal
144 |     public let onBluetoothStateChange = Signal<CBCentralManagerState>()
    |                                                `- warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
145 |
146 |     /// Sensor Discovered Signal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftySensors/SensorManager.swift:346:35: warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
344 |         }
345 |
346 |         onBluetoothStateChange => CBCentralManagerState(rawValue: central.state.rawValue)!
    |                                   `- warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
347 |     }
348 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[10/25] Compiling SwiftySensors Sensor.swift
/Users/admin/builder/spi-builder-workspace/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/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/26] Compiling SwiftySensors Service.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftySensors/Service.swift:15:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
13 |  The Service Protocol is used by the Sensor Manager to identify, organize and instantiate Services given a UUID string.
14 |  */
15 | public protocol ServiceProtocol: class {
   |                                  `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
16 |
17 |     /// UUID string of the Service.
[12/26] Compiling SwiftySensors Operators.swift
[13/26] Compiling SwiftySensors RSSINormalizer.swift
[14/26] Compiling SwiftySensors CyclingSpeedCadenceService.swift
[15/26] Compiling SwiftySensors DeviceInformationService.swift
[16/26] Compiling SwiftySensors HeartRateSerializer.swift
[17/26] Compiling SwiftySensors HeartRateService.swift
[18/26] Compiling SwiftySensors CyclingPowerSerializer.swift
[19/26] Compiling SwiftySensors CyclingPowerService.swift
[20/26] Compiling SwiftySensors CyclingSerializer.swift
[21/26] Compiling SwiftySensors CyclingSpeedCadenceSerializer.swift
[22/26] Emitting module SwiftySensors
/Users/admin/builder/spi-builder-workspace/Sources/SwiftySensors/SensorManager.swift:144:48: warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
142 |
143 |     /// Bluetooth State Change Signal
144 |     public let onBluetoothStateChange = Signal<CBCentralManagerState>()
    |                                                `- warning: 'CBCentralManagerState' was deprecated in macOS 10.13: Use CBManagerState instead [#DeprecatedDeclaration]
145 |
146 |     /// Sensor Discovered Signal
/Users/admin/builder/spi-builder-workspace/Sources/SwiftySensors/Service.swift:15:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
13 |  The Service Protocol is used by the Sensor Manager to identify, organize and instantiate Services given a UUID string.
14 |  */
15 | public protocol ServiceProtocol: class {
   |                                  `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
16 |
17 |     /// UUID string of the Service.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[23/26] Compiling SwiftySensors FitnessMachineSerializer.swift
[24/26] Compiling SwiftySensors FitnessMachineService.swift
[25/26] Compiling SwiftySensors Characteristic.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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 |         }
[26/26] Compiling SwiftySensors CoreBluetooth.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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 |         }
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 (2.75s)
Creating working copy for https://github.com/artman/Signals
Working copy of https://github.com/artman/Signals resolved at 6.1.0
BUILD FAILURE 6.2 macosSpm