Build Information
Failed to build BerkananSDK with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zssz/BerkananSDK.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/zssz/BerkananSDK
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7bcbad7 Update README.md
Cloned https://github.com/zssz/BerkananSDK.git
Revision (git rev-parse @):
7bcbad726aa451e09860a0a9ae77414ded9a0f4f
SUCCESS checkout https://github.com/zssz/BerkananSDK.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/zssz/BerkananSDK.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/12] Write sources
[1/12] Copying PrivacyInfo.xcprivacy
[2/12] Write sources
[6/12] Write swift-version-6F35C1178C84523A.txt
[7/99] Compiling CBerkananSDK CBPeripheralManager+Init.m
[8/99] Compiling CBerkananSDK CBMutableService+Init.m
[9/99] Compiling CBerkananSDK CBMutableCharacteristic+Init.m
[11/99] Emitting module SwiftProtobuf
[12/107] Compiling BerkananCompression DataProtocol+Compression.swift
[13/107] Emitting module BerkananCompression
[14/107] Compiling BerkananCompression Data+Compression.swift
[15/107] Compiling BerkananCompression Algorithm+CustomStringConvertible.swift
[16/107] Compiling BerkananFoundation Types+DataRepresentable.swift
[17/107] Compiling BerkananFoundation String+Quotes.swift
[18/107] Compiling BerkananFoundation DataRepresentable.swift
[19/107] Emitting module BerkananFoundation
[20/107] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[21/107] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[22/107] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[23/107] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[24/107] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[25/107] Compiling SwiftProtobuf HashVisitor.swift
[26/107] Compiling SwiftProtobuf Internal.swift
[27/107] Compiling SwiftProtobuf JSONDecoder.swift
[28/107] Compiling SwiftProtobuf JSONDecodingError.swift
[29/107] Compiling SwiftProtobuf JSONDecodingOptions.swift
[30/107] Compiling SwiftProtobuf JSONEncoder.swift
[31/107] Compiling SwiftProtobuf JSONEncodingError.swift
[32/107] Compiling SwiftProtobuf JSONEncodingOptions.swift
[33/107] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[34/107] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[35/107] Compiling SwiftProtobuf JSONScanner.swift
[36/107] Compiling SwiftProtobuf MathUtils.swift
[37/107] Compiling SwiftProtobuf Message+AnyAdditions.swift
[38/107] Compiling SwiftProtobuf AnyMessageStorage.swift
[39/107] Compiling SwiftProtobuf AnyUnpackError.swift
[40/107] Compiling SwiftProtobuf BinaryDecoder.swift
[41/107] Compiling SwiftProtobuf BinaryDecodingError.swift
[42/107] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[43/107] Compiling SwiftProtobuf BinaryDelimited.swift
[44/107] Compiling SwiftProtobuf BinaryEncoder.swift
[45/107] Compiling SwiftProtobuf BinaryEncodingError.swift
[46/107] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[47/107] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[48/107] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[49/107] Compiling SwiftProtobuf CustomJSONCodable.swift
[50/107] Compiling SwiftProtobuf Data+Extensions.swift
[51/107] Compiling SwiftProtobuf Decoder.swift
[52/107] Compiling SwiftProtobuf DoubleParser.swift
[53/107] Compiling SwiftProtobuf Enum.swift
[54/107] Compiling SwiftProtobuf ExtensibleMessage.swift
[55/107] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[56/107] Compiling SwiftProtobuf ExtensionFields.swift
[57/107] Compiling SwiftProtobuf ExtensionMap.swift
[58/107] Compiling SwiftProtobuf FieldTag.swift
[59/107] Compiling SwiftProtobuf FieldTypes.swift
[60/107] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[61/107] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[62/107] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[63/107] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[64/107] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[65/107] Compiling SwiftProtobuf ProtobufMap.swift
[66/107] Compiling SwiftProtobuf SelectiveVisitor.swift
[67/107] Compiling SwiftProtobuf SimpleExtensionMap.swift
[68/107] Compiling SwiftProtobuf StringUtils.swift
[69/107] Compiling SwiftProtobuf TextFormatDecoder.swift
[70/107] Compiling SwiftProtobuf TextFormatDecodingError.swift
[71/107] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[72/107] Compiling SwiftProtobuf TextFormatEncoder.swift
[73/107] Compiling SwiftProtobuf empty.pb.swift
[74/107] Compiling SwiftProtobuf field_mask.pb.swift
[75/107] Compiling SwiftProtobuf source_context.pb.swift
[76/107] Compiling SwiftProtobuf struct.pb.swift
[77/107] Compiling SwiftProtobuf timestamp.pb.swift
[78/107] Compiling SwiftProtobuf type.pb.swift
[79/107] Compiling SwiftProtobuf wrappers.pb.swift
[80/107] Compiling SwiftProtobuf resource_bundle_accessor.swift
[81/107] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[82/107] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[83/107] Compiling SwiftProtobuf TextFormatScanner.swift
[84/107] Compiling SwiftProtobuf TimeUtils.swift
[85/107] Compiling SwiftProtobuf UnknownStorage.swift
[86/107] Compiling SwiftProtobuf UnsafeBufferPointer+Shims.swift
[87/107] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[88/107] Compiling SwiftProtobuf Varint.swift
[89/107] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[90/107] Compiling SwiftProtobuf Message+JSONAdditions.swift
[91/107] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[92/107] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[93/107] Compiling SwiftProtobuf Message.swift
[94/107] Compiling SwiftProtobuf MessageExtension.swift
[95/107] Compiling SwiftProtobuf NameMap.swift
[96/107] Compiling SwiftProtobuf ProtoNameProviding.swift
[97/107] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[98/107] Compiling SwiftProtobuf Version.swift
[99/107] Compiling SwiftProtobuf Visitor.swift
[100/107] Compiling SwiftProtobuf WireFormat.swift
[101/107] Compiling SwiftProtobuf ZigZag.swift
[102/107] Compiling SwiftProtobuf any.pb.swift
[103/107] Compiling SwiftProtobuf api.pb.swift
[104/107] Compiling SwiftProtobuf descriptor.pb.swift
[105/107] Compiling SwiftProtobuf duration.pb.swift
[106/126] Compiling BerkananSDK PublicMessage.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PublicMessage.pb.swift:85:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
78 | ]
79 |
80 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
81 | var _identifier: PBUUID? = nil
82 | var _sourceUser: User? = nil
83 | var _text: String = String()
84 |
85 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User+Additions.swift:19:21: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// On systems with UIKit it uses `UIDevice.current.identifierForVendor` for `identifier`
18 | /// and `UIDevice.current.name` for `name`.
19 | public static var current: User = {
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | return .with {
21 | #if canImport(UIKit) && !os(watchOS)
[107/126] Compiling BerkananSDK User+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PublicMessage.pb.swift:85:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
78 | ]
79 |
80 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
81 | var _identifier: PBUUID? = nil
82 | var _sourceUser: User? = nil
83 | var _text: String = String()
84 |
85 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User+Additions.swift:19:21: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// On systems with UIKit it uses `UIDevice.current.identifierForVendor` for `identifier`
18 | /// and `UIDevice.current.name` for `name`.
19 | public static var current: User = {
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | return .with {
21 | #if canImport(UIKit) && !os(watchOS)
[108/126] Compiling BerkananSDK PBUUID.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User+Additions.swift:19:21: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// On systems with UIKit it uses `UIDevice.current.identifierForVendor` for `identifier`
18 | /// and `UIDevice.current.name` for `name`.
19 | public static var current: User = {
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | return .with {
21 | #if canImport(UIKit) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PublicMessage.pb.swift:85:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
78 | ]
79 |
80 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
81 | var _identifier: PBUUID? = nil
82 | var _sourceUser: User? = nil
83 | var _text: String = String()
84 |
85 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | private init() {}
[109/126] Compiling BerkananSDK PublicMessage+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User+Additions.swift:19:21: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// On systems with UIKit it uses `UIDevice.current.identifierForVendor` for `identifier`
18 | /// and `UIDevice.current.name` for `name`.
19 | public static var current: User = {
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | return .with {
21 | #if canImport(UIKit) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PublicMessage.pb.swift:85:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
78 | ]
79 |
80 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
81 | var _identifier: PBUUID? = nil
82 | var _sourceUser: User? = nil
83 | var _text: String = String()
84 |
85 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | private init() {}
[110/126] Compiling BerkananSDK PBUUID+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:14:14: warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// The payload type identifier used when notifying services in range when the configuration of the local
13 | /// service was updated.
14 | static let updatedConfiguration =
| |- warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'updatedConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | UUID(uuidString: "90500473-2FE5-4B65-AA4E-1EFD61063E16")!.protobufValue()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:18:21: warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// The `payloadType` identifier when using `PublicMessage` as the `payload` of a `Message`.
18 | public static let publicMessage: PBUUID =
| |- warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'publicMessage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | UUID(uuidString: "6113B8CC-6D42-4AA6-83F1-98B81752A698")!.protobufValue()
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
[111/126] Compiling BerkananSDK PBUUID+PayloadTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:14:14: warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// The payload type identifier used when notifying services in range when the configuration of the local
13 | /// service was updated.
14 | static let updatedConfiguration =
| |- warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'updatedConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | UUID(uuidString: "90500473-2FE5-4B65-AA4E-1EFD61063E16")!.protobufValue()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:18:21: warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// The `payloadType` identifier when using `PublicMessage` as the `payload` of a `Message`.
18 | public static let publicMessage: PBUUID =
| |- warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'publicMessage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | UUID(uuidString: "6113B8CC-6D42-4AA6-83F1-98B81752A698")!.protobufValue()
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
[112/126] Compiling BerkananSDK Configuration.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:71:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ]
66 |
67 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
70 |
71 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:130:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
120 | ]
121 |
122 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
123 | var _identifier: PBUUID? = nil
124 | var _timeToLive: Int32 = 0
:
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
129 |
130 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | private init() {}
[113/126] Compiling BerkananSDK Message+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:71:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ]
66 |
67 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
70 |
71 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:130:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
120 | ]
121 |
122 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
123 | var _identifier: PBUUID? = nil
124 | var _timeToLive: Int32 = 0
:
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
129 |
130 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | private init() {}
[114/127] Compiling BerkananSDK Configuration+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:71:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ]
66 |
67 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
70 |
71 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | private init() {}
[115/127] Compiling BerkananSDK Configuration+PDU.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:71:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ]
66 |
67 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
70 |
71 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | private init() {}
[116/127] Compiling BerkananSDK CBPeripheral+Notifications.swift
[117/127] Compiling BerkananSDK UUID+Protobuf.swift
[118/127] Compiling BerkananSDK Message+PDU.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:130:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
120 | ]
121 |
122 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
123 | var _identifier: PBUUID? = nil
124 | var _timeToLive: Int32 = 0
:
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
129 |
130 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | private init() {}
[119/127] Compiling BerkananSDK Message.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:130:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
120 | ]
121 |
122 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
123 | var _identifier: PBUUID? = nil
124 | var _timeToLive: Int32 = 0
:
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
129 |
130 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | private init() {}
error: emit-module command failed with exit code 1 (use -v to see invocation)
[120/127] Compiling BerkananSDK BluetoothService+CoreBluetooth.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:13:21: warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// The string representation of the UUID for the primary peripheral service.
13 | public static var UUIDPeripheralServiceString =
| |- warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDPeripheralServiceString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDPeripheralServiceString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | "BE92D831-6750-4EBF-B83F-E42801AB1A13"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:17:21: warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The string representation of the UUID for the message characteristic.
17 | public static var UUIDMessageCharacteristicString: String =
| |- warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDMessageCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDMessageCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "FFD50BE8-082C-45BC-87D9-E46B4C0F31F6"
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:21:21: warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// The string representation of the UUID for the configuration characteristic.
21 | public static var UUIDConfigurationCharacteristicString: String =
| |- warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDConfigurationCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDConfigurationCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | "C0ED3A5B-57FD-49C7-9995-5017E8202DB9"
23 | }
[121/127] Compiling BerkananSDK BluetoothService.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:13:21: warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// The string representation of the UUID for the primary peripheral service.
13 | public static var UUIDPeripheralServiceString =
| |- warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDPeripheralServiceString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDPeripheralServiceString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | "BE92D831-6750-4EBF-B83F-E42801AB1A13"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:17:21: warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The string representation of the UUID for the message characteristic.
17 | public static var UUIDMessageCharacteristicString: String =
| |- warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDMessageCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDMessageCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "FFD50BE8-082C-45BC-87D9-E46B4C0F31F6"
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:21:21: warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// The string representation of the UUID for the configuration characteristic.
21 | public static var UUIDConfigurationCharacteristicString: String =
| |- warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDConfigurationCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDConfigurationCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | "C0ED3A5B-57FD-49C7-9995-5017E8202DB9"
23 | }
[122/127] Emitting module BerkananSDK
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:17:51: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 | /// A protocol defining methods that local Berkanan Bluetooth service instances call on their delegates to
16 | /// handle events like receiving messages.
17 | public protocol BerkananBluetoothServiceDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 |
19 | /// Tells the delegate that the local Berkanan Bluetooth `service` discovered `remoteService` with
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:73:4: error: stored properties cannot be marked potentially unavailable with '@available'
71 | ///
72 | /// Note: Events are not delivered on the main thread.
73 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
74 | lazy public private(set) var discoverServiceSubject =
75 | PassthroughSubject<BerkananBluetoothService, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:80:4: error: stored properties cannot be marked potentially unavailable with '@available'
78 | ///
79 | /// Note: Events are not delivered on the main thread.
80 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
81 | lazy public private(set) var numberOfServicesInRangeSubject =
82 | PassthroughSubject<Int, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:87:4: error: stored properties cannot be marked potentially unavailable with '@available'
85 | ///
86 | /// Note: Events are not delivered on the main thread.
87 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
88 | lazy public private(set) var receiveMessageSubject =
89 | PassthroughSubject<Message, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:13:21: warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// The string representation of the UUID for the primary peripheral service.
13 | public static var UUIDPeripheralServiceString =
| |- warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDPeripheralServiceString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDPeripheralServiceString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | "BE92D831-6750-4EBF-B83F-E42801AB1A13"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:17:21: warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The string representation of the UUID for the message characteristic.
17 | public static var UUIDMessageCharacteristicString: String =
| |- warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDMessageCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDMessageCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "FFD50BE8-082C-45BC-87D9-E46B4C0F31F6"
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:21:21: warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// The string representation of the UUID for the configuration characteristic.
21 | public static var UUIDConfigurationCharacteristicString: String =
| |- warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDConfigurationCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDConfigurationCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | "C0ED3A5B-57FD-49C7-9995-5017E8202DB9"
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:71:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ]
66 |
67 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
70 |
71 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Configuration._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:130:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
120 | ]
121 |
122 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
123 | var _identifier: PBUUID? = nil
124 | var _timeToLive: Int32 = 0
:
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
129 |
130 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'Message._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:14:14: warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// The payload type identifier used when notifying services in range when the configuration of the local
13 | /// service was updated.
14 | static let updatedConfiguration =
| |- warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'updatedConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | UUID(uuidString: "90500473-2FE5-4B65-AA4E-1EFD61063E16")!.protobufValue()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:18:21: warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | /// The `payloadType` identifier when using `PublicMessage` as the `payload` of a `Message`.
18 | public static let publicMessage: PBUUID =
| |- warning: static property 'publicMessage' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'publicMessage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | UUID(uuidString: "6113B8CC-6D42-4AA6-83F1-98B81752A698")!.protobufValue()
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PublicMessage.pb.swift:85:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
78 | ]
79 |
80 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
81 | var _identifier: PBUUID? = nil
82 | var _sourceUser: User? = nil
83 | var _text: String = String()
84 |
85 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'PublicMessage._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | private init() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User+Additions.swift:19:21: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
17 | /// On systems with UIKit it uses `UIDevice.current.identifierForVendor` for `identifier`
18 | /// and `UIDevice.current.name` for `name`.
19 | public static var current: User = {
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | return .with {
21 | #if canImport(UIKit) && !os(watchOS)
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User.pb.swift:70:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'User._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
64 | ]
65 |
66 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
67 | var _identifier: PBUUID? = nil
68 | var _name: String = String()
69 |
70 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'User._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | private init() {}
[123/127] Compiling BerkananSDK BerkananBluetoothService.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:17:51: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 | /// A protocol defining methods that local Berkanan Bluetooth service instances call on their delegates to
16 | /// handle events like receiving messages.
17 | public protocol BerkananBluetoothServiceDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 |
19 | /// Tells the delegate that the local Berkanan Bluetooth `service` discovered `remoteService` with
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:73:4: error: stored properties cannot be marked potentially unavailable with '@available'
71 | ///
72 | /// Note: Events are not delivered on the main thread.
73 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
74 | lazy public private(set) var discoverServiceSubject =
75 | PassthroughSubject<BerkananBluetoothService, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:80:4: error: stored properties cannot be marked potentially unavailable with '@available'
78 | ///
79 | /// Note: Events are not delivered on the main thread.
80 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
81 | lazy public private(set) var numberOfServicesInRangeSubject =
82 | PassthroughSubject<Int, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:87:4: error: stored properties cannot be marked potentially unavailable with '@available'
85 | ///
86 | /// Note: Events are not delivered on the main thread.
87 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
88 | lazy public private(set) var receiveMessageSubject =
89 | PassthroughSubject<Message, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:108:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
106 | }
107 | self.dispatchQueue.async {
108 | self.configuration = configuration
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | if self.isStarted {
110 | if let peripheralManager = self.peripheralManager {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:108:28: warning: capture of 'configuration' with non-sendable type 'Configuration' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | self.dispatchQueue.async {
108 | self.configuration = configuration
| `- warning: capture of 'configuration' with non-sendable type 'Configuration' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | if self.isStarted {
110 | if let peripheralManager = self.peripheralManager {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:30:15: note: consider making struct 'Configuration' conform to the 'Sendable' protocol
28 | /// `Configuration` is used for configuring a Berkanan Bluetooth
29 | /// service and describing it for others.
30 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
31 | // SwiftProtobuf.Message conformance is added in an extension below. See the
32 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:14:14: warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// The payload type identifier used when notifying services in range when the configuration of the local
13 | /// service was updated.
14 | static let updatedConfiguration =
| |- warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'updatedConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | UUID(uuidString: "90500473-2FE5-4B65-AA4E-1EFD61063E16")!.protobufValue()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:214:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
212 | ) {
213 | self.dispatchQueue.async { [weak self] in
214 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | self.discoveryTimeoutTimersForPeripheralIdentifiers.values.forEach {
216 | $0.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:226:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
224 | ) {
225 | self.dispatchQueue.async { [weak self] in
226 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | self.discoveredPeripherals.forEach {
228 | self.setupDiscoveryTimeoutTimer(for: $0)
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:250:13: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
248 | func start() {
249 | self.dispatchQueue.async {
250 | guard self.centralManager == nil else {
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:290:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
288 | func stop() {
289 | self.dispatchQueue.async {
290 | self.stopCentralManager()
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | self.centralManager?.delegate = nil
292 | self.centralManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:18: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:45:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
43 | /// the `payload`, if it knows how to do that by looking at
44 | /// `payload_type`.
45 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
46 | // SwiftProtobuf.Message conformance is added in an extension below. See the
47 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:32: warning: capture of 'services' with non-sendable type '[BerkananBluetoothService]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'services' with non-sendable type '[BerkananBluetoothService]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:61:14: note: class 'BerkananBluetoothService' does not conform to the 'Sendable' protocol
59 | /// Be prepared to receive messages that your app doesn't know how to handle —
60 | /// examine the `payloadType` of the received `Message`.
61 | public class BerkananBluetoothService: NSObject {
| `- note: class 'BerkananBluetoothService' does not conform to the 'Sendable' protocol
62 |
63 | /// The delegate assigned with this object.
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:520:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
518 | let userInfo = timer.userInfo
519 | self.dispatchQueue.async { [weak self] in
520 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
521 | guard let userInfo = userInfo as? [AnyHashable : Any],
522 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:521:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
519 | self.dispatchQueue.async { [weak self] in
520 | guard let self = self else { return }
521 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
522 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
523 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:540:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
538 | let userInfo = timer.userInfo
539 | self.dispatchQueue.async { [weak self] in
540 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
541 | guard let userInfo = userInfo as? [AnyHashable : Any],
542 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:541:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
539 | self.dispatchQueue.async { [weak self] in
540 | guard let self = self else { return }
541 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
543 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:562:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
560 | let userInfo = timer.userInfo
561 | self.dispatchQueue.async { [weak self] in
562 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
563 | guard let userInfo = userInfo as? [AnyHashable : Any],
564 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:563:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
561 | self.dispatchQueue.async { [weak self] in
562 | guard let self = self else { return }
563 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
564 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
565 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:13:21: warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// The string representation of the UUID for the primary peripheral service.
13 | public static var UUIDPeripheralServiceString =
| |- warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDPeripheralServiceString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDPeripheralServiceString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | "BE92D831-6750-4EBF-B83F-E42801AB1A13"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:17:21: warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The string representation of the UUID for the message characteristic.
17 | public static var UUIDMessageCharacteristicString: String =
| |- warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDMessageCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDMessageCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "FFD50BE8-082C-45BC-87D9-E46B4C0F31F6"
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:21:21: warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// The string representation of the UUID for the configuration characteristic.
21 | public static var UUIDConfigurationCharacteristicString: String =
| |- warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDConfigurationCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDConfigurationCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | "C0ED3A5B-57FD-49C7-9995-5017E8202DB9"
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1084:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1082 | peripheral.name ?? "",
1083 | characteristic.description,
1084 | characteristic.service.description,
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1085 | error as CVarArg
1086 | )
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1097:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1095 | peripheral.name ?? "",
1096 | characteristic.description,
1097 | characteristic.service.description
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1098 | )
1099 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1117:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1115 | peripheral.name ?? "",
1116 | characteristic.description,
1117 | characteristic.service.description,
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1118 | error as CVarArg
1119 | )
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1131:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1129 | characteristic.value?.count ?? 0,
1130 | characteristic.description,
1131 | characteristic.service.description
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1132 | )
1133 | }
[124/127] Compiling BerkananSDK BluetoothController.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:17:51: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 | /// A protocol defining methods that local Berkanan Bluetooth service instances call on their delegates to
16 | /// handle events like receiving messages.
17 | public protocol BerkananBluetoothServiceDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 |
19 | /// Tells the delegate that the local Berkanan Bluetooth `service` discovered `remoteService` with
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:73:4: error: stored properties cannot be marked potentially unavailable with '@available'
71 | ///
72 | /// Note: Events are not delivered on the main thread.
73 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
74 | lazy public private(set) var discoverServiceSubject =
75 | PassthroughSubject<BerkananBluetoothService, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:80:4: error: stored properties cannot be marked potentially unavailable with '@available'
78 | ///
79 | /// Note: Events are not delivered on the main thread.
80 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
81 | lazy public private(set) var numberOfServicesInRangeSubject =
82 | PassthroughSubject<Int, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:87:4: error: stored properties cannot be marked potentially unavailable with '@available'
85 | ///
86 | /// Note: Events are not delivered on the main thread.
87 | @available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
| `- error: stored properties cannot be marked potentially unavailable with '@available'
88 | lazy public private(set) var receiveMessageSubject =
89 | PassthroughSubject<Message, Never>()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:108:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
106 | }
107 | self.dispatchQueue.async {
108 | self.configuration = configuration
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | if self.isStarted {
110 | if let peripheralManager = self.peripheralManager {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:108:28: warning: capture of 'configuration' with non-sendable type 'Configuration' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | self.dispatchQueue.async {
108 | self.configuration = configuration
| `- warning: capture of 'configuration' with non-sendable type 'Configuration' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | if self.isStarted {
110 | if let peripheralManager = self.peripheralManager {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:30:15: note: consider making struct 'Configuration' conform to the 'Sendable' protocol
28 | /// `Configuration` is used for configuring a Berkanan Bluetooth
29 | /// service and describing it for others.
30 | public struct Configuration {
| `- note: consider making struct 'Configuration' conform to the 'Sendable' protocol
31 | // SwiftProtobuf.Message conformance is added in an extension below. See the
32 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID+PayloadTypes.swift:14:14: warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// The payload type identifier used when notifying services in range when the configuration of the local
13 | /// service was updated.
14 | static let updatedConfiguration =
| |- warning: static property 'updatedConfiguration' is not concurrency-safe because non-'Sendable' type 'PBUUID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'updatedConfiguration' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | UUID(uuidString: "90500473-2FE5-4B65-AA4E-1EFD61063E16")!.protobufValue()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:29:15: note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
27 |
28 | /// `PBUUID` is used for efficiently representing UUIDs.
29 | public struct PBUUID {
| `- note: consider making struct 'PBUUID' conform to the 'Sendable' protocol
30 | // SwiftProtobuf.Message conformance is added in an extension below. See the
31 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:214:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
212 | ) {
213 | self.dispatchQueue.async { [weak self] in
214 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | self.discoveryTimeoutTimersForPeripheralIdentifiers.values.forEach {
216 | $0.invalidate()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:226:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
224 | ) {
225 | self.dispatchQueue.async { [weak self] in
226 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
227 | self.discoveredPeripherals.forEach {
228 | self.setupDiscoveryTimeoutTimer(for: $0)
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:250:13: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
248 | func start() {
249 | self.dispatchQueue.async {
250 | guard self.centralManager == nil else {
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | return
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:290:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
288 | func stop() {
289 | self.dispatchQueue.async {
290 | self.stopCentralManager()
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | self.centralManager?.delegate = nil
292 | self.centralManager = nil
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:7: warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'self' with non-sendable type 'BluetoothController' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:18: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:45:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
43 | /// the `payload`, if it knows how to do that by looking at
44 | /// `payload_type`.
45 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
46 | // SwiftProtobuf.Message conformance is added in an extension below. See the
47 | // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:350:32: warning: capture of 'services' with non-sendable type '[BerkananBluetoothService]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | ) {
349 | self.dispatchQueue.async {
350 | self._send(message, via: services, broadcastTimeToLive: timeToLive)
| `- warning: capture of 'services' with non-sendable type '[BerkananBluetoothService]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
351 | }
352 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/BerkananBluetoothService.swift:61:14: note: class 'BerkananBluetoothService' does not conform to the 'Sendable' protocol
59 | /// Be prepared to receive messages that your app doesn't know how to handle —
60 | /// examine the `payloadType` of the received `Message`.
61 | public class BerkananBluetoothService: NSObject {
| `- note: class 'BerkananBluetoothService' does not conform to the 'Sendable' protocol
62 |
63 | /// The delegate assigned with this object.
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:520:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
518 | let userInfo = timer.userInfo
519 | self.dispatchQueue.async { [weak self] in
520 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
521 | guard let userInfo = userInfo as? [AnyHashable : Any],
522 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:521:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
519 | self.dispatchQueue.async { [weak self] in
520 | guard let self = self else { return }
521 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
522 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
523 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:540:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
538 | let userInfo = timer.userInfo
539 | self.dispatchQueue.async { [weak self] in
540 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
541 | guard let userInfo = userInfo as? [AnyHashable : Any],
542 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:541:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
539 | self.dispatchQueue.async { [weak self] in
540 | guard let self = self else { return }
541 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
542 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
543 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:562:24: warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | /// The controller responsible for the Bluetooth communication.
26 | class BluetoothController: NSObject {
| `- note: class 'BluetoothController' does not conform to the 'Sendable' protocol
27 |
28 | public let label = UUID().uuidString
:
560 | let userInfo = timer.userInfo
561 | self.dispatchQueue.async { [weak self] in
562 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'BluetoothController?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
563 | guard let userInfo = userInfo as? [AnyHashable : Any],
564 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:563:28: warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
561 | self.dispatchQueue.async { [weak self] in
562 | guard let self = self else { return }
563 | guard let userInfo = userInfo as? [AnyHashable : Any],
| `- warning: capture of 'userInfo' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
564 | let peripheral = userInfo["peripheral"] as? CBPeripheral else {
565 | return
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:13:21: warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// The string representation of the UUID for the primary peripheral service.
13 | public static var UUIDPeripheralServiceString =
| |- warning: static property 'UUIDPeripheralServiceString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDPeripheralServiceString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDPeripheralServiceString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | "BE92D831-6750-4EBF-B83F-E42801AB1A13"
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:17:21: warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// The string representation of the UUID for the message characteristic.
17 | public static var UUIDMessageCharacteristicString: String =
| |- warning: static property 'UUIDMessageCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDMessageCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDMessageCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "FFD50BE8-082C-45BC-87D9-E46B4C0F31F6"
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothService.swift:21:21: warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | /// The string representation of the UUID for the configuration characteristic.
21 | public static var UUIDConfigurationCharacteristicString: String =
| |- warning: static property 'UUIDConfigurationCharacteristicString' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'UUIDConfigurationCharacteristicString' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'UUIDConfigurationCharacteristicString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | "C0ED3A5B-57FD-49C7-9995-5017E8202DB9"
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1084:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1082 | peripheral.name ?? "",
1083 | characteristic.description,
1084 | characteristic.service.description,
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1085 | error as CVarArg
1086 | )
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1097:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1095 | peripheral.name ?? "",
1096 | characteristic.description,
1097 | characteristic.service.description
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1098 | )
1099 | }
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1117:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1115 | peripheral.name ?? "",
1116 | characteristic.description,
1117 | characteristic.service.description,
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1118 | error as CVarArg
1119 | )
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Bluetooth/BluetoothController.swift:1131:26: error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
1129 | characteristic.value?.count ?? 0,
1130 | characteristic.description,
1131 | characteristic.service.description
| |- error: value of optional type 'CBService?' must be unwrapped to refer to member 'description' of wrapped base type 'CBService'
| |- note: chain the optional using '?' to access member 'description' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
1132 | )
1133 | }
[125/127] Compiling BerkananSDK User.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User.pb.swift:70:16: warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'User._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
64 | ]
65 |
66 | fileprivate class _StorageClass {
| `- note: class '_StorageClass' does not conform to the 'Sendable' protocol
67 | var _identifier: PBUUID? = nil
68 | var _name: String = String()
69 |
70 | static let defaultInstance = _StorageClass()
| |- warning: static property 'defaultInstance' is not concurrency-safe because non-'Sendable' type 'User._StorageClass' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | private init() {}
Fetching https://github.com/zssz/BerkananFoundation
Fetching https://github.com/zssz/BerkananCompression
Fetching https://github.com/apple/swift-protobuf.git
[1/23] Fetching berkananfoundation
[24/68] Fetching berkananfoundation, berkanancompression
Fetched https://github.com/zssz/BerkananFoundation from cache (0.73s)
[1/36182] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf.git from cache (7.32s)
Fetched https://github.com/zssz/BerkananCompression from cache (7.32s)
Computing version for https://github.com/zssz/BerkananFoundation
Computed https://github.com/zssz/BerkananFoundation at 1.0.0 (0.67s)
Computing version for https://github.com/zssz/BerkananCompression
Computed https://github.com/zssz/BerkananCompression at 1.0.3 (0.66s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.26.0 (0.68s)
Creating working copy for https://github.com/zssz/BerkananFoundation
Working copy of https://github.com/zssz/BerkananFoundation resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.26.0
Creating working copy for https://github.com/zssz/BerkananCompression
Working copy of https://github.com/zssz/BerkananCompression resolved at 1.0.3
warning: 'swift-protobuf': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-protobuf/Sources/SwiftProtobuf/CMakeLists.txt
BUILD FAILURE 6.0 macosSpm