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 bluetooth-law-energy-swift, reference 1.1.2 (b67f7a), with Swift 5.9 for macOS (SPM) on 12 Dec 2024 17:47:07 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.59.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/bluetooth-law-energy-swift.git
Reference: 1.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swiftuiux/bluetooth-law-energy-swift
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at b67f7ad Update README.md
Cloned https://github.com/swiftuiux/bluetooth-law-energy-swift.git
Revision (git rev-parse @):
b67f7ad04f85efcb5d2ede70c30dd57c9e02736c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/bluetooth-law-energy-swift.git at 1.1.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD
https://github.com/swiftuiux/bluetooth-law-energy-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/4] Compiling retry_policy_service Strategy.swift
[2/4] Compiling retry_policy_service DispatchTimeInterval.swift
[3/4] Emitting module retry_policy_service
[4/4] Compiling retry_policy_service RetryService.swift
[5/21] Compiling bluetooth_law_energy_swift CacheServices.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[6/21] Compiling bluetooth_law_energy_swift ServiceRegistration.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[7/21] Compiling bluetooth_law_energy_swift StreamFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[8/21] Compiling bluetooth_law_energy_swift State.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/22] Emitting module bluetooth_law_energy_swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[10/22] Compiling bluetooth_law_energy_swift CBPeripheral+.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[11/22] Compiling bluetooth_law_energy_swift Task+.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[12/22] Compiling bluetooth_law_energy_swift BluetoothLEManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[13/22] Compiling bluetooth_law_energy_swift Publisher+.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[14/22] Compiling bluetooth_law_energy_swift BluetoothDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[15/22] Compiling bluetooth_law_energy_swift PeripheralDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[16/22] Compiling bluetooth_law_energy_swift Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[17/22] Compiling bluetooth_law_energy_swift ServiceType.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[18/22] Compiling bluetooth_law_energy_swift ILogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[19/22] Compiling bluetooth_law_energy_swift AppleLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[20/22] Compiling bluetooth_law_energy_swift BLEState.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[21/22] Compiling bluetooth_law_energy_swift IBluetoothLEManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

[22/22] Compiling bluetooth_law_energy_swift StreamRegistration.swift
/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/BluetoothLEManager.swift:14:69: error: attribute can only be applied to declarations, not types
public final class BluetoothLEManager: NSObject, ObservableObject, @preconcurrency IBluetoothLEManager {
                                                                   ~^~~~~~~~~~~~~~~

/Users/admin/builder/spi-builder-workspace/Sources/bluetooth-law-energy-swift/service/StreamRegistration.swift:104:38: error: reference to captured var 'self' in concurrently-executing code
                    guard let self = self else { return }
                                     ^
error: fatalError
Fetching https://github.com/swiftuiux/retry-policy-service.git
[2/101] Fetching retry-policy-service
Fetched https://github.com/swiftuiux/retry-policy-service.git (1.13s)
Computing version for https://github.com/swiftuiux/retry-policy-service.git
Computed https://github.com/swiftuiux/retry-policy-service.git at 1.0.1 (0.45s)
Creating working copy for https://github.com/swiftuiux/retry-policy-service.git
Working copy of https://github.com/swiftuiux/retry-policy-service.git resolved at 1.0.1
BUILD FAILURE 5.9 macosSpm