The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build SwiftySensorsTrainers, reference master (93db8d), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 23:48:05 UTC.

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

========================================
RunAll
========================================
Builder version: 4.56.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
[1/1068] Fetching sensors-swift
Fetched https://github.com/kinetic-fit/sensors-swift from cache (1.08s)
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.69s)
Fetching https://github.com/artman/Signals
[1/1047] Fetching signals
Fetched https://github.com/artman/Signals from cache (0.89s)
Computing version for https://github.com/artman/Signals
Computed https://github.com/artman/Signals at 6.1.0 (2.73s)
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/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-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
[6/524] Fetching sensors-swift-trainers
Fetched https://github.com/codeinversion/sensors-swift-trainers.git from cache (1.22s)
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.49s)
Fetching https://github.com/artman/Signals from cache
Fetched https://github.com/artman/Signals from cache (0.46s)
Computing version for https://github.com/artman/Signals
Computed https://github.com/artman/Signals at 6.1.0 (0.02s)
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)
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 (334b9a4)
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)
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.0
Building package at path:  $PWD
https://github.com/codeinversion/sensors-swift-trainers.git
Running build ...
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
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version--7754E27361AE5C74.txt
[4/14] Compiling KineticSensors inRide.c
[5/14] Compiling KineticSensors SmartControl.c
[6/14] Compiling KineticSensors KineticSDK.m
[7/14] Compiling KineticSensors KineticInRide.m
[8/14] Compiling KineticSensors KineticControl.m
[10/14] Emitting module Signals
[11/14] Compiling Signals UIControl+Signals.swift
[12/14] Compiling Signals AssociatedObject.swift
[13/14] Compiling Signals UIBarButtonItem+Signals.swift
[14/14] Compiling Signals Signal.swift
[15/31] Compiling SwiftySensors HeartRateSerializer.swift
[16/31] Compiling SwiftySensors HeartRateService.swift
[17/31] Compiling SwiftySensors Operators.swift
[18/31] Compiling SwiftySensors RSSINormalizer.swift
[19/31] Compiling SwiftySensors SensorManager.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 CyclingSpeedCadenceService.swift
[23/32] Compiling SwiftySensors DeviceInformationService.swift
[24/32] Compiling SwiftySensors CyclingSerializer.swift
[25/32] Compiling SwiftySensors CyclingSpeedCadenceSerializer.swift
[26/32] Compiling SwiftySensors CyclingPowerSerializer.swift
[27/32] Compiling SwiftySensors CyclingPowerService.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 |         }
BUILD FAILURE 6.0 macosSpm