Build Information
Failed to build BerkananSDK, reference 2.2.8 (3ea4e8
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 07:45:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zssz/BerkananSDK.git
Reference: 2.2.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/zssz/BerkananSDK
* tag 2.2.8 -> FETCH_HEAD
HEAD is now at 3ea4e8c Update README.md
Cloned https://github.com/zssz/BerkananSDK.git
Revision (git rev-parse @):
3ea4e8ca0eb038c789c4be7ead0de0bd7954dec6
SUCCESS checkout https://github.com/zssz/BerkananSDK.git at 2.2.8
Fetching https://github.com/zssz/BerkananFoundation
Fetching https://github.com/zssz/BerkananCompression
Fetching https://github.com/apple/swift-protobuf.git
[3/23] Fetching berkananfoundation
[24/68] Fetching berkananfoundation, berkanancompression
[68/37895] Fetching berkananfoundation, berkanancompression, swift-protobuf
Fetched https://github.com/zssz/BerkananFoundation from cache (13.77s)
Fetched https://github.com/zssz/BerkananCompression from cache (13.77s)
Fetched https://github.com/apple/swift-protobuf.git from cache (13.77s)
Computing version for https://github.com/zssz/BerkananFoundation
Computed https://github.com/zssz/BerkananFoundation at 1.0.0 (0.62s)
Computing version for https://github.com/zssz/BerkananCompression
Computed https://github.com/zssz/BerkananCompression at 1.0.3 (0.60s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.28.2 (0.47s)
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/zssz/BerkananCompression
Working copy of https://github.com/zssz/BerkananCompression resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.28.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "berkanansdk",
"name": "BerkananSDK",
"url": "https://github.com/zssz/BerkananSDK.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BerkananSDK",
"dependencies": [
{
"identity": "swift-protobuf",
"name": "SwiftProtobuf",
"url": "https://github.com/apple/swift-protobuf.git",
"version": "1.28.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-protobuf",
"dependencies": [
]
},
{
"identity": "berkananfoundation",
"name": "BerkananFoundation",
"url": "https://github.com/zssz/BerkananFoundation",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BerkananFoundation",
"dependencies": [
]
},
{
"identity": "berkanancompression",
"name": "BerkananCompression",
"url": "https://github.com/zssz/BerkananCompression",
"version": "1.0.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BerkananCompression",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/zssz/BerkananSDK.git
[1/277] Fetching berkanansdk
Fetched https://github.com/zssz/BerkananSDK.git from cache (0.76s)
Fetching https://github.com/zssz/BerkananCompression from cache
Fetching https://github.com/apple/swift-protobuf.git from cache
Fetching https://github.com/zssz/BerkananFoundation from cache
Fetched https://github.com/zssz/BerkananCompression from cache (0.72s)
Fetched https://github.com/zssz/BerkananFoundation from cache (0.72s)
Fetched https://github.com/apple/swift-protobuf.git from cache (0.72s)
Computing version for https://github.com/zssz/BerkananFoundation
Computed https://github.com/zssz/BerkananFoundation at 1.0.0 (0.02s)
Computing version for https://github.com/zssz/BerkananCompression
Computed https://github.com/zssz/BerkananCompression at 1.0.3 (0.02s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.28.2 (0.02s)
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/zssz/BerkananCompression
Working copy of https://github.com/zssz/BerkananCompression resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.28.2
Creating working copy for https://github.com/zssz/BerkananSDK.git
Working copy of https://github.com/zssz/BerkananSDK.git resolved at 2.2.8 (3ea4e8c)
warning: '.resolve-product-dependencies': dependency 'berkanansdk' is not used by any target
Found 3 product dependencies
- SwiftProtobuf
- BerkananFoundation
- BerkananCompression
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/zssz/BerkananSDK.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/12] Write sources
[5/12] Copying PrivacyInfo.xcprivacy
[6/12] Write swift-version--7754E27361AE5C74.txt
[7/105] Compiling CBerkananSDK CBPeripheralManager+Init.m
[8/105] Compiling CBerkananSDK CBMutableService+Init.m
[9/105] Compiling CBerkananSDK CBMutableCharacteristic+Init.m
[11/105] Emitting module SwiftProtobuf
[12/114] Compiling BerkananCompression DataProtocol+Compression.swift
[13/114] Compiling BerkananCompression Data+Compression.swift
[14/114] Emitting module BerkananCompression
[15/114] Compiling BerkananCompression Algorithm+CustomStringConvertible.swift
[16/114] Emitting module BerkananFoundation
[17/114] Compiling BerkananFoundation String+Quotes.swift
[18/114] Compiling BerkananFoundation DataRepresentable.swift
[19/114] Compiling BerkananFoundation Types+DataRepresentable.swift
[20/114] Compiling SwiftProtobuf PathVisitor.swift
[21/114] Compiling SwiftProtobuf ProtoNameProviding.swift
[22/114] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[23/114] Compiling SwiftProtobuf ProtobufMap.swift
[24/114] Compiling SwiftProtobuf SelectiveVisitor.swift
[25/114] Compiling SwiftProtobuf SimpleExtensionMap.swift
[26/114] Compiling SwiftProtobuf StringUtils.swift
[27/114] Compiling SwiftProtobuf SwiftProtobufContiguousBytes.swift
[28/114] Compiling SwiftProtobuf SwiftProtobufError.swift
[29/114] Compiling SwiftProtobuf TextFormatDecoder.swift
[30/114] Compiling SwiftProtobuf TextFormatDecodingError.swift
[31/114] Compiling SwiftProtobuf TextFormatDecodingOptions.swift
[32/114] Compiling SwiftProtobuf TextFormatEncoder.swift
[33/114] Compiling SwiftProtobuf TextFormatEncodingOptions.swift
[34/114] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[35/114] Compiling SwiftProtobuf TextFormatScanner.swift
[36/114] Compiling SwiftProtobuf TimeUtils.swift
[37/114] Compiling SwiftProtobuf UnknownStorage.swift
[38/114] Compiling SwiftProtobuf Message+JSONAdditions.swift
[39/114] Compiling SwiftProtobuf Message+JSONAdditions_Data.swift
[40/114] Compiling SwiftProtobuf Message+JSONArrayAdditions.swift
[41/114] Compiling SwiftProtobuf Message+JSONArrayAdditions_Data.swift
[42/114] Compiling SwiftProtobuf Message+TextFormatAdditions.swift
[43/114] Compiling SwiftProtobuf Message.swift
[44/114] Compiling SwiftProtobuf MessageExtension.swift
[45/114] Compiling SwiftProtobuf NameMap.swift
[46/114] Compiling SwiftProtobuf PathDecoder.swift
[47/114] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[48/114] Compiling SwiftProtobuf Varint.swift
[49/114] Compiling SwiftProtobuf Version.swift
[50/114] Compiling SwiftProtobuf Visitor.swift
[51/114] Compiling SwiftProtobuf WireFormat.swift
[52/114] Compiling SwiftProtobuf ZigZag.swift
[53/114] Compiling SwiftProtobuf any.pb.swift
[54/114] Compiling SwiftProtobuf api.pb.swift
[55/114] Compiling SwiftProtobuf descriptor.pb.swift
[56/114] Compiling SwiftProtobuf JSONEncodingOptions.swift
[57/114] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[58/114] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[59/114] Compiling SwiftProtobuf JSONScanner.swift
[60/114] Compiling SwiftProtobuf MathUtils.swift
[61/114] Compiling SwiftProtobuf Message+AnyAdditions.swift
[62/114] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[63/114] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[64/114] Compiling SwiftProtobuf Message+FieldMask.swift
[65/114] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[66/114] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[67/114] Compiling SwiftProtobuf HashVisitor.swift
[68/114] Compiling SwiftProtobuf Internal.swift
[69/114] Compiling SwiftProtobuf JSONDecoder.swift
[70/114] Compiling SwiftProtobuf JSONDecodingError.swift
[71/114] Compiling SwiftProtobuf JSONDecodingOptions.swift
[72/114] Compiling SwiftProtobuf JSONEncoder.swift
[73/114] Compiling SwiftProtobuf JSONEncodingError.swift
[74/114] Compiling SwiftProtobuf FieldTag.swift
[75/114] Compiling SwiftProtobuf FieldTypes.swift
[76/114] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[77/114] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[78/114] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[79/114] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[80/114] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[81/114] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[82/114] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[83/114] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[84/114] Compiling SwiftProtobuf BinaryEncodingSizeVisitor.swift
[85/114] Compiling SwiftProtobuf BinaryEncodingVisitor.swift
[86/114] Compiling SwiftProtobuf CustomJSONCodable.swift
[87/114] Compiling SwiftProtobuf Decoder.swift
[88/114] Compiling SwiftProtobuf DoubleParser.swift
[89/114] Compiling SwiftProtobuf Enum.swift
[90/114] Compiling SwiftProtobuf ExtensibleMessage.swift
[91/114] Compiling SwiftProtobuf ExtensionFieldValueSet.swift
[92/114] Compiling SwiftProtobuf ExtensionFields.swift
[93/114] Compiling SwiftProtobuf ExtensionMap.swift
[94/114] Compiling SwiftProtobuf AnyMessageStorage.swift
[95/114] Compiling SwiftProtobuf AnyUnpackError.swift
[96/114] Compiling SwiftProtobuf AsyncMessageSequence.swift
[97/114] Compiling SwiftProtobuf BinaryDecoder.swift
[98/114] Compiling SwiftProtobuf BinaryDecodingError.swift
[99/114] Compiling SwiftProtobuf BinaryDecodingOptions.swift
[100/114] Compiling SwiftProtobuf BinaryDelimited.swift
[101/114] Compiling SwiftProtobuf BinaryEncoder.swift
[102/114] Compiling SwiftProtobuf BinaryEncodingError.swift
[103/114] Compiling SwiftProtobuf BinaryEncodingOptions.swift
[104/114] Compiling SwiftProtobuf duration.pb.swift
[105/114] Compiling SwiftProtobuf empty.pb.swift
[106/114] Compiling SwiftProtobuf field_mask.pb.swift
[107/114] Compiling SwiftProtobuf source_context.pb.swift
[108/114] Compiling SwiftProtobuf struct.pb.swift
[109/114] Compiling SwiftProtobuf timestamp.pb.swift
[110/114] Compiling SwiftProtobuf type.pb.swift
[111/114] Compiling SwiftProtobuf wrappers.pb.swift
[112/114] Compiling SwiftProtobuf resource_bundle_accessor.swift
[113/133] 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/PublicMessage.pb.swift:67:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
65 | public init() {}
66 |
67 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
68 | }
69 |
:
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
/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 nonisolated 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 nonisolated 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)
[114/133] 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/PublicMessage.pb.swift:67:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
65 | public init() {}
66 |
67 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
68 | }
69 |
:
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
/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 nonisolated 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 nonisolated 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)
[115/133] Compiling BerkananSDK PBUUID+Additions.swift
[116/133] Compiling BerkananSDK PBUUID+PayloadTypes.swift
[117/133] 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/Configuration.pb.swift:69:50: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
67 | fileprivate class _StorageClass {
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
70 |
71 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:55:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
53 | public init() {}
54 |
55 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
56 | }
57 |
:
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
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message+Additions.swift:45:54: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
43 | self.payloadType = payloadType
44 | }
45 | self.payload = payload ?? SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
46 | }
47 |
/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() {}
[118/133] 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/Configuration.pb.swift:69:50: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
67 | fileprivate class _StorageClass {
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
70 |
71 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:55:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
53 | public init() {}
54 |
55 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
56 | }
57 |
:
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
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message+Additions.swift:45:54: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
43 | self.payloadType = payloadType
44 | }
45 | self.payload = payload ?? SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
46 | }
47 |
/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/133] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 | }
[120/133] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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/133] Compiling BerkananSDK Message+PDU.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message+PDU.swift:27:14: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
25 | throw CBATTError(.invalidPdu)
26 | }
27 | try self.init(serializedData: result)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
28 | }
29 |
/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/Message.pb.swift:128:49: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
126 | var _destinationAddress: PBUUID? = nil
127 | var _payloadType: PBUUID? = nil
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
129 |
130 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:106:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
104 | public init() {}
105 |
106 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
107 | }
108 |
:
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
[122/133] Compiling BerkananSDK Message.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message+PDU.swift:27:14: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
25 | throw CBATTError(.invalidPdu)
26 | }
27 | try self.init(serializedData: result)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
28 | }
29 |
/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/Message.pb.swift:128:49: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
126 | var _destinationAddress: PBUUID? = nil
127 | var _payloadType: PBUUID? = nil
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
129 |
130 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:106:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
104 | public init() {}
105 |
106 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
107 | }
108 |
:
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
[123/133] Compiling BerkananSDK CBPeripheral+Notifications.swift
[124/133] Compiling BerkananSDK UUID+Protobuf.swift
[125/133] Compiling BerkananSDK PBUUID.pb.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:35:51: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
33 |
34 | /// The required 16 bytes value of the UUID in little endian order.
35 | public var value: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
36 |
37 | public var unknownFields = SwiftProtobuf.UnknownStorage()
/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 nonisolated 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 nonisolated 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() {}
[126/133] Compiling BerkananSDK PublicMessage+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:35:51: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
33 |
34 | /// The required 16 bytes value of the UUID in little endian order.
35 | public var value: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
36 |
37 | public var unknownFields = SwiftProtobuf.UnknownStorage()
/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 nonisolated 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 nonisolated 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() {}
[127/133] Compiling BerkananSDK Configuration+Additions.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration+Additions.swift:18:56: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
16 | public init(identifier: UUID, userInfo: Data? = nil) {
17 | self.identifier = identifier.protobufValue()
18 | self.userInfo = userInfo ?? SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration+PDU.swift:27:14: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
25 | throw CBATTError(.invalidPdu)
26 | }
27 | try self.init(serializedData: result)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
28 | }
29 |
/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() {}
[128/133] Compiling BerkananSDK Configuration+PDU.swift
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration+Additions.swift:18:56: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
16 | public init(identifier: UUID, userInfo: Data? = nil) {
17 | self.identifier = identifier.protobufValue()
18 | self.userInfo = userInfo ?? SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration+PDU.swift:27:14: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
25 | throw CBATTError(.invalidPdu)
26 | }
27 | try self.init(serializedData: result)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)'
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
28 | }
29 |
/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() {}
error: emit-module command failed with exit code 1 (use -v to see invocation)
[129/134] 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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/Configuration.pb.swift:69:50: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
67 | fileprivate class _StorageClass {
68 | var _identifier: PBUUID? = nil
69 | var _userInfo: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
70 |
71 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Configuration.pb.swift:55:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
53 | public init() {}
54 |
55 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Configuration' has non-sendable type 'Configuration._StorageClass'; this is an error in the Swift 6 language mode
56 | }
57 |
:
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
/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/Message.pb.swift:128:49: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
126 | var _destinationAddress: PBUUID? = nil
127 | var _payloadType: PBUUID? = nil
128 | var _payload: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
129 |
130 | static let defaultInstance = _StorageClass()
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/Message.pb.swift:106:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
104 | public init() {}
105 |
106 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'Message' has non-sendable type 'Message._StorageClass'; this is an error in the Swift 6 language mode
107 | }
108 |
:
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
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/PBUUID.pb.swift:35:51: warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
33 |
34 | /// The required 16 bytes value of the UUID in little endian order.
35 | public var value: Data = SwiftProtobuf.Internal.emptyData
| `- warning: 'emptyData' is deprecated: Internal.emptyData isn't used any longer in newer versions of the generator. Generate code with a version later than 1.10.2 to get performance improvements. See https://github.com/apple/swift-protobuf/pull/1028 for more information.
36 |
37 | public var unknownFields = SwiftProtobuf.UnknownStorage()
/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/PublicMessage.pb.swift:67:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
65 | public init() {}
66 |
67 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'PublicMessage' has non-sendable type 'PublicMessage._StorageClass'; this is an error in the Swift 6 language mode
68 | }
69 |
:
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
/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 nonisolated 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 nonisolated 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() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User.pb.swift:54:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'User' has non-sendable type 'User._StorageClass'; this is an error in the Swift 6 language mode
52 | public init() {}
53 |
54 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'User' has non-sendable type 'User._StorageClass'; this is an error in the Swift 6 language mode
55 | }
56 |
:
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()
[130/134] 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: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: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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 | }
[131/134] 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: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: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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 | }
[132/134] 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() {}
/Users/admin/builder/spi-builder-workspace/Sources/BerkananSDK/Protobuf/User.pb.swift:54:19: warning: stored property '_storage' of 'Sendable'-conforming struct 'User' has non-sendable type 'User._StorageClass'; this is an error in the Swift 6 language mode
52 | public init() {}
53 |
54 | fileprivate var _storage = _StorageClass.defaultInstance
| `- warning: stored property '_storage' of 'Sendable'-conforming struct 'User' has non-sendable type 'User._StorageClass'; this is an error in the Swift 6 language mode
55 | }
56 |
:
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()
BUILD FAILURE 6.0 macosSpm