Build Information
Successful build of cometblue, reference master (5ac149
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:10:39 UTC.
Swift 6 data race errors: 1
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/vaddieg/cometblue.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vaddieg/cometblue
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 5ac1492 Merge branch 'master' of https://github.com/vaddieg/cometblue
Cloned https://github.com/vaddieg/cometblue.git
Revision (git rev-parse @):
5ac14926617b0b0a598eea2cd89c1897e10508f5
SUCCESS checkout https://github.com/vaddieg/cometblue.git at master
========================================
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": "cometblue",
"name": "cometblue",
"url": "https://github.com/vaddieg/cometblue.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/cometblue",
"dependencies": [
]
}
]
}
Fetching https://github.com/vaddieg/cometblue.git
[1/145] Fetching cometblue
Fetched https://github.com/vaddieg/cometblue.git from cache (0.69s)
Creating working copy for https://github.com/vaddieg/cometblue.git
Working copy of https://github.com/vaddieg/cometblue.git resolved at master (5ac1492)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/vaddieg/cometblue.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/6] Write sources
[1/6] Write cometblue-entitlement.plist
[2/6] Write swift-version--7754E27361AE5C74.txt
[4/10] Compiling cometblue main.swift
[5/10] Compiling cometblue CometBlueDevice.swift
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/CometBlueDevice.swift:25:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | public protocol CometBlueDeviceDelegate : class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | func cometBlue(_ device:CometBlueDevice, discoveredCharacteristics chars:[CometBlueDevice.Characteristics])
27 | func cometBlueAuthorized(_ device:CometBlueDevice) //from that point you can read and write
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/CometBlueDevice.swift:423:8: warning: associated value 'notDiscovered(char:)' of 'Sendable'-conforming enum 'DeviceError' has non-sendable type 'CometBlueDevice.Characteristics'; this is an error in the Swift 6 language mode
280 | public static let discoveryUUID = "47e9ee00-47e9-11e4-8939-164230d1df67"
281 | public static let standardInfoUUID = "180a" // to read GATT-standard manufacturer, fmw. version, etc.
282 | public enum Characteristics : String, CaseIterable { //Unfortunatelly enum of CBUUIDs isn't possible
| `- note: consider making enum 'Characteristics' conform to the 'Sendable' protocol
283 | case sendPin = "47e9ee30-47e9-11e4-8939-164230d1df67"
284 | case day = "47e9ee10-47e9-11e4-8939-164230d1df67" //not yet supported
:
421 | /// MARK: - Errors
422 | public enum DeviceError : Error {
423 | case notDiscovered(char : Characteristics)
| `- warning: associated value 'notDiscovered(char:)' of 'Sendable'-conforming enum 'DeviceError' has non-sendable type 'CometBlueDevice.Characteristics'; this is an error in the Swift 6 language mode
424 | }
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/CometBlueDevice.swift:232:15: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
230 | var buf = Array<UInt8>(repeating: 0, count: 4)
231 | data.copyBytes(to: &buf, count: 3)
232 | let intb = UnsafeRawPointer(buf).assumingMemoryBound(to: UInt.self).pointee.littleEndian
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
233 | status = StatusOptions(rawValue: intb)
234 | DLog("current opts \(status!)")
[6/10] Compiling cometblue cli.swift
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/cli.swift:122:12: warning: capture of 'self' with non-sendable type 'CLIProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 |
12 | /// Parses command-line arguments and serves CB delegate
13 | class CLIProvider : NSObject, CBCentralManagerDelegate, CometBlueDeviceDelegate {
| `- note: class 'CLIProvider' does not conform to the 'Sendable' protocol
14 | /// Supported commands
15 | enum Command : String {
:
120 | if let timeout = deadline {
121 | queue.asyncAfter(deadline: .now() + Double(timeout)) {
122 | switch self.command {
| `- warning: capture of 'self' with non-sendable type 'CLIProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | case .discover: /// Timeout - normal interrupt for DISCOVER command
124 | print(self.printJSON ? "}" : "--- Discovery finished in \(Int(timeout)) sec ----")
[7/10] Emitting module cometblue
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/CometBlueDevice.swift:25:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | public protocol CometBlueDeviceDelegate : class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | func cometBlue(_ device:CometBlueDevice, discoveredCharacteristics chars:[CometBlueDevice.Characteristics])
27 | func cometBlueAuthorized(_ device:CometBlueDevice) //from that point you can read and write
/Users/admin/builder/spi-builder-workspace/Sources/cometblue/CometBlueDevice.swift:423:8: warning: associated value 'notDiscovered(char:)' of 'Sendable'-conforming enum 'DeviceError' has non-sendable type 'CometBlueDevice.Characteristics'; this is an error in the Swift 6 language mode
280 | public static let discoveryUUID = "47e9ee00-47e9-11e4-8939-164230d1df67"
281 | public static let standardInfoUUID = "180a" // to read GATT-standard manufacturer, fmw. version, etc.
282 | public enum Characteristics : String, CaseIterable { //Unfortunatelly enum of CBUUIDs isn't possible
| `- note: consider making enum 'Characteristics' conform to the 'Sendable' protocol
283 | case sendPin = "47e9ee30-47e9-11e4-8939-164230d1df67"
284 | case day = "47e9ee10-47e9-11e4-8939-164230d1df67" //not yet supported
:
421 | /// MARK: - Errors
422 | public enum DeviceError : Error {
423 | case notDiscovered(char : Characteristics)
| `- warning: associated value 'notDiscovered(char:)' of 'Sendable'-conforming enum 'DeviceError' has non-sendable type 'CometBlueDevice.Characteristics'; this is an error in the Swift 6 language mode
424 | }
425 | }
[7/10] Write Objects.LinkFileList
[8/10] Linking cometblue
[9/10] Applying cometblue
Build complete! (6.96s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "cometblue",
"name" : "cometblue",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "cometblue",
"targets" : [
"cometblue"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "cometblueTests",
"module_type" : "SwiftTarget",
"name" : "cometblueTests",
"path" : "Tests/cometblueTests",
"sources" : [
"XCTestManifests.swift",
"cometblueTests.swift"
],
"target_dependencies" : [
"cometblue"
],
"type" : "test"
},
{
"c99name" : "cometblue",
"module_type" : "SwiftTarget",
"name" : "cometblue",
"path" : "Sources/cometblue",
"product_memberships" : [
"cometblue"
],
"sources" : [
"CometBlueDevice.swift",
"cli.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.1"
}
Done.