Build Information
Successful build of SwiftyNats, reference 2.2.0 (85d0bf
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 00:15:36 UTC.
Swift 6 data race errors: 2
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/aus-der-Technik/SwiftyNats.git
Reference: 2.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aus-der-Technik/SwiftyNats
* tag 2.2.0 -> FETCH_HEAD
HEAD is now at 85d0bf4 Merge pull request #1 from aus-der-Technik/release/2.2.0
Cloned https://github.com/aus-der-Technik/SwiftyNats.git
Revision (git rev-parse @):
85d0bf40dbb4a0408b7a4e7cefcc67010b0478bd
SUCCESS checkout https://github.com/aus-der-Technik/SwiftyNats.git at 2.2.0
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
[3661/74801] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (6.04s)
Fetched https://github.com/apple/swift-nio.git from cache (6.04s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.50s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.68s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/3901] Fetching swift-system
[80/5470] Fetching swift-system, swift-atomics
[2369/20945] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (3.05s)
Fetched https://github.com/apple/swift-collections.git from cache (3.05s)
Fetched https://github.com/apple/swift-atomics.git from cache (3.05s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.46s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.76s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
========================================
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": "swiftynats",
"name": "SwiftyNats",
"url": "https://github.com/aus-der-Technik/SwiftyNats.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyNats",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/aus-der-Technik/SwiftyNats.git
[1/837] Fetching swiftynats
Fetched https://github.com/aus-der-Technik/SwiftyNats.git from cache (0.88s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-nio.git from cache (0.77s)
Fetched https://github.com/apple/swift-log.git from cache (0.77s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.03s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.04s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.58s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.58s)
Fetched https://github.com/apple/swift-collections.git from cache (0.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.03s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.04s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.03s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/aus-der-Technik/SwiftyNats.git
Working copy of https://github.com/aus-der-Technik/SwiftyNats.git resolved at 2.2.0 (85d0bf4)
warning: '.resolve-product-dependencies': dependency 'swiftynats' is not used by any target
Found 2 product dependencies
- swift-nio
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/aus-der-Technik/SwiftyNats.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/23] Write sources
[1/23] Copying PrivacyInfo.xcprivacy
[4/23] Write sources
[12/23] Write swift-version--7754E27361AE5C74.txt
[13/23] Write sources
[14/23] Compiling CNIOWindows WSAStartup.c
[14/23] Compiling CNIOWASI CNIOWASI.c
[16/23] Compiling CNIOWindows shim.c
[17/23] Compiling CNIOLinux liburing_shims.c
[18/23] Compiling CNIOLinux shim.c
[19/52] Compiling _AtomicsShims.c
[20/71] Compiling CNIODarwin shim.c
[21/71] Compiling c-nioatomics.c
[22/71] Compiling c-atomics.c
[24/77] Compiling Atomics UnsafeAtomic.swift
[25/77] Compiling Atomics UnsafeAtomicLazyReference.swift
[26/77] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[27/78] Compiling Atomics ManagedAtomic.swift
[28/78] Compiling Atomics ManagedAtomicLazyReference.swift
[31/80] Compiling Atomics PointerConformances.swift
[32/80] Compiling Atomics Primitives.native.swift
[33/80] Emitting module InternalCollectionsUtilities
[34/80] Compiling Atomics OptionalRawRepresentable.swift
[35/80] Compiling Atomics RawRepresentable.swift
[36/80] Compiling Atomics AtomicBool.swift
[37/80] Compiling Atomics IntegerConformances.swift
[38/80] Compiling _NIOBase64 Base64.swift
[39/80] Emitting module _NIOBase64
[42/80] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[43/80] Compiling Atomics Primitives.shims.swift
[44/80] Compiling Atomics AtomicInteger.swift
[45/80] Compiling Atomics IntegerOperations.swift
[46/80] Compiling Atomics Unmanaged extensions.swift
[47/80] Compiling Logging MetadataProvider.swift
[48/80] Compiling Atomics AtomicStorage.swift
[49/80] Compiling Atomics AtomicValue.swift
[50/80] Compiling Atomics AtomicMemoryOrderings.swift
[51/80] Compiling Atomics DoubleWord.swift
[52/80] Compiling _NIODataStructures PriorityQueue.swift
[53/80] Emitting module _NIODataStructures
[54/96] Compiling _NIODataStructures _TinyArray.swift
[55/96] Compiling _NIODataStructures Heap.swift
[56/96] Compiling DequeModule Deque+Testing.swift
[57/96] Compiling DequeModule Deque._Storage.swift
[58/96] Compiling DequeModule Deque+Extras.swift
[59/96] Compiling DequeModule Deque+Hashable.swift
[60/96] Compiling Atomics AtomicOptionalWrappable.swift
[61/96] Compiling Atomics AtomicReference.swift
[62/96] Compiling DequeModule _DequeBufferHeader.swift
[63/96] Compiling DequeModule _DequeSlot.swift
[64/97] Compiling DequeModule _UnsafeWrappedBuffer.swift
[65/97] Compiling Logging Locks.swift
[66/97] Compiling Logging LogHandler.swift
[67/97] Emitting module Logging
[68/97] Compiling Logging Logging.swift
[69/97] Compiling DequeModule Deque+Equatable.swift
[70/97] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[71/97] Compiling DequeModule _DequeBuffer.swift
[76/97] Compiling DequeModule Deque._UnsafeHandle.swift
[77/97] Compiling DequeModule Deque.swift
[78/97] Compiling NIOConcurrencyHelpers NIOLock.swift
[79/97] Compiling NIOConcurrencyHelpers lock.swift
[80/97] Emitting module NIOConcurrencyHelpers
[81/97] Compiling NIOConcurrencyHelpers atomics.swift
[82/97] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[83/97] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[84/97] Emitting module DequeModule
[85/97] Compiling DequeModule Deque+CustomReflectable.swift
[86/97] Compiling DequeModule Deque+Descriptions.swift
[87/97] Compiling DequeModule Deque+Codable.swift
[88/97] Compiling DequeModule Deque+Collection.swift
[95/97] Emitting module Atomics
[98/159] Compiling NIOCore AddressedEnvelope.swift
[99/159] Compiling NIOCore AsyncAwaitSupport.swift
[100/159] Compiling NIOCore AsyncChannel.swift
[101/159] Compiling NIOCore AsyncChannelHandler.swift
[102/159] Compiling NIOCore AsyncChannelInboundStream.swift
[103/159] Compiling NIOCore AsyncChannelOutboundWriter.swift
[104/159] Compiling NIOCore NIOAsyncSequenceProducer.swift
[105/165] Compiling NIOCore Linux.swift
[106/165] Compiling NIOCore MarkedCircularBuffer.swift
[107/165] Compiling NIOCore MulticastChannel.swift
[108/165] Compiling NIOCore NIOAny.swift
[109/165] Compiling NIOCore NIOCloseOnErrorHandler.swift
[110/165] Compiling NIOCore NIOLoopBound.swift
[111/165] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[112/165] Compiling NIOCore EventLoopFuture+Deprecated.swift
[113/165] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[114/165] Compiling NIOCore EventLoopFuture.swift
[115/165] Compiling NIOCore FileDescriptor.swift
[116/165] Compiling NIOCore FileHandle.swift
[117/165] Compiling NIOCore FileRegion.swift
[118/165] Compiling NIOCore Codec.swift
[119/165] Compiling NIOCore ConvenienceOptionSupport.swift
[120/165] Compiling NIOCore DeadChannel.swift
[121/165] Compiling NIOCore DispatchQueue+WithFuture.swift
[122/165] Compiling NIOCore EventLoop+Deprecated.swift
[123/165] Compiling NIOCore EventLoop+SerialExecutor.swift
[124/165] Compiling NIOCore EventLoop.swift
[125/165] Compiling NIOCore SocketOptionProvider.swift
[126/165] Compiling NIOCore SystemCallHelpers.swift
[127/165] Compiling NIOCore TimeAmount+Duration.swift
[128/165] Compiling NIOCore TypeAssistedChannelHandler.swift
[129/165] Compiling NIOCore UniversalBootstrapSupport.swift
[130/165] Compiling NIOCore Utilities.swift
[131/165] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[132/165] Compiling NIOCore NIOAsyncWriter.swift
[133/165] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[134/165] Compiling NIOCore BSDSocketAPI.swift
[135/165] Compiling NIOCore ByteBuffer-aux.swift
[136/165] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[137/165] Compiling NIOCore ByteBuffer-conversions.swift
[138/165] Compiling NIOCore GlobalSingletons.swift
[139/165] Compiling NIOCore IO.swift
[140/165] Compiling NIOCore IOData.swift
[141/165] Compiling NIOCore IPProtocol.swift
[142/165] Compiling NIOCore IntegerBitPacking.swift
[143/165] Compiling NIOCore IntegerTypes.swift
[144/165] Compiling NIOCore Interfaces.swift
[145/165] Compiling NIOCore ByteBuffer-core.swift
[146/165] Compiling NIOCore ByteBuffer-hex.swift
[147/165] Compiling NIOCore ByteBuffer-int.swift
[148/165] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[149/165] Compiling NIOCore ByteBuffer-multi-int.swift
[150/165] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[151/165] Compiling NIOCore ByteBuffer-views.swift
[152/165] Compiling NIOCore NIOScheduledCallback.swift
[153/165] Compiling NIOCore NIOSendable.swift
[154/165] Compiling NIOCore PointerHelpers.swift
[155/165] Compiling NIOCore RecvByteBufferAllocator.swift
[156/165] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[157/165] Compiling NIOCore SocketAddresses.swift
[158/165] Compiling NIOCore Channel.swift
[159/165] Compiling NIOCore ChannelHandler.swift
[160/165] Compiling NIOCore ChannelHandlers.swift
[161/165] Compiling NIOCore ChannelInvoker.swift
[162/165] Compiling NIOCore ChannelOption.swift
[163/165] Compiling NIOCore ChannelPipeline.swift
[164/165] Compiling NIOCore CircularBuffer.swift
[165/165] Emitting module NIOCore
[166/219] Compiling NIOEmbedded AsyncTestingChannel.swift
[167/219] Compiling NIOEmbedded Embedded.swift
[168/219] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[169/219] Emitting module NIOEmbedded
[170/219] Compiling NIOPosix GetaddrinfoResolver.swift
[171/219] Compiling NIOPosix HappyEyeballs.swift
[172/219] Compiling NIOPosix IO.swift
[173/219] Compiling NIOPosix IntegerBitPacking.swift
[174/219] Compiling NIOPosix IntegerTypes.swift
[175/219] Compiling NIOPosix Linux.swift
[176/224] Compiling NIOPosix PendingWritesManager.swift
[177/224] Compiling NIOPosix PipeChannel.swift
[178/224] Compiling NIOPosix PipePair.swift
[179/224] Compiling NIOPosix PointerHelpers.swift
[180/224] Compiling NIOPosix Pool.swift
[181/224] Compiling NIOPosix SocketProtocols.swift
[182/224] Compiling NIOPosix System.swift
[183/224] Compiling NIOPosix Thread.swift
[184/224] Compiling NIOPosix ThreadPosix.swift
[185/224] Compiling NIOPosix ThreadWindows.swift
[186/224] Compiling NIOPosix BSDSocketAPICommon.swift
[187/224] Compiling NIOPosix BSDSocketAPIPosix.swift
[188/224] Compiling NIOPosix BSDSocketAPIWindows.swift
[189/224] Compiling NIOPosix BaseSocket.swift
[190/224] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[191/224] Compiling NIOPosix BaseSocketChannel.swift
[192/224] Compiling NIOPosix SelectorKqueue.swift
[193/224] Compiling NIOPosix SelectorUring.swift
[194/224] Compiling NIOPosix ServerSocket.swift
[195/224] Compiling NIOPosix Socket.swift
[196/224] Compiling NIOPosix SocketChannel.swift
[197/224] Compiling NIOPosix PooledRecvBufferAllocator.swift
[198/224] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[199/224] Compiling NIOPosix PosixSingletons.swift
[200/224] Compiling NIOPosix RawSocketBootstrap.swift
[201/224] Compiling NIOPosix Resolver.swift
[202/224] Compiling NIOPosix Selectable.swift
[203/224] Compiling NIOPosix SelectableChannel.swift
[204/224] Compiling NIOPosix SelectableEventLoop.swift
[205/224] Compiling NIOPosix SelectorEpoll.swift
[206/224] Compiling NIOPosix SelectorGeneric.swift
[207/224] Compiling NIOPosix BaseStreamSocketChannel.swift
[208/224] Compiling NIOPosix Bootstrap.swift
[209/224] Compiling NIOPosix ControlMessage.swift
[210/224] Compiling NIOPosix DatagramVectorReadManager.swift
[211/224] Compiling NIOPosix Errors+Any.swift
[212/224] Compiling NIOPosix FileDescriptor.swift
[213/224] Compiling NIOPosix LinuxCPUSet.swift
[214/224] Compiling NIOPosix LinuxUring.swift
[215/224] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[216/224] Compiling NIOPosix NIOThreadPool.swift
[217/224] Compiling NIOPosix NonBlockingFileIO.swift
[218/224] Compiling NIOPosix PendingDatagramWritesManager.swift
[219/224] Emitting module NIOPosix
[220/224] Compiling NIOPosix UnsafeTransfer.swift
[221/224] Compiling NIOPosix Utilities.swift
[222/224] Compiling NIOPosix VsockAddress.swift
[223/224] Compiling NIOPosix VsockChannelEvents.swift
[224/224] Compiling NIOPosix resource_bundle_accessor.swift
[225/226] Emitting module NIO
[226/226] Compiling NIO Exports.swift
[227/244] Compiling SwiftyNats NatsClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Nats events
17 | public enum NatsEvent: String {
| `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
18 | case connected = "connected"
19 | case disconnected = "disconnected"
:
23 | case reconnecting = "reconnecting"
24 | case informed = "informed"
25 | static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[228/244] Compiling SwiftyNats NatsClientConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Nats events
17 | public enum NatsEvent: String {
| `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
18 | case connected = "connected"
19 | case disconnected = "disconnected"
:
23 | case reconnecting = "reconnecting"
24 | case informed = "informed"
25 | static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[229/245] Compiling SwiftyNats NatsClient+ServerInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | @discardableResult
14 | open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
15 | logger.info("subscribe to subject \(subject)")
16 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |
25 | @discardableResult
26 | open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
27 | logger.info("subscribe to subject \(subject)")
28 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func unsubscribe(from subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 | logger.info("unsubscribe from subject \(subject)")
40 | self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
43 | }
44 |
45 | open func unsubscribeSync(from subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
46 | logger.info("unsubscribe syncrnon from subject \(subject)")
47 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 |
69 | @discardableResult
70 | open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
71 | return try subSync(to: subject, asPartOf: "", handler)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
73 |
74 | @discardableResult
75 | open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
76 | return try subSync(to: subject, asPartOf: queue, handler)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[230/245] Compiling SwiftyNats NatsClient+Subscribe.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | @discardableResult
14 | open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
15 | logger.info("subscribe to subject \(subject)")
16 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |
25 | @discardableResult
26 | open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
27 | logger.info("subscribe to subject \(subject)")
28 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func unsubscribe(from subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 | logger.info("unsubscribe from subject \(subject)")
40 | self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
43 | }
44 |
45 | open func unsubscribeSync(from subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
46 | logger.info("unsubscribe syncrnon from subject \(subject)")
47 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 |
69 | @discardableResult
70 | open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
71 | return try subSync(to: subject, asPartOf: "", handler)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
73 |
74 | @discardableResult
75 | open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
76 | return try subSync(to: subject, asPartOf: queue, handler)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[231/245] Compiling SwiftyNats NatsError.swift
[232/245] Compiling SwiftyNats NatsEventHandler.swift
[233/245] Compiling SwiftyNats NatsMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[234/245] Compiling SwiftyNats NatsResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[235/245] Compiling SwiftyNats NatsServer.swift
[236/245] Compiling SwiftyNats NatsClient+Publish.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 | // MARK: - Implement NatsPublish Protocol
12 |
13 | open func publish(_ payload: String, to subject: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 | logger.info("publish \(payload.count) characters to subject \(subject)")
15 | sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | }
17 |
18 | open func publish(_ payload: String, to subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 | publish(payload, to: subject.subject)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 | }
21 |
22 | open func reply(to message: NatsMessage, withPayload payload: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 | guard let replySubject = message.replySubject else { return }
24 | logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 | }
27 |
28 | open func publishSync(_ payload: String, to subject: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 | }
49 |
50 | open func publishSync(_ payload: String, to subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 | try publishSync(payload, to: subject.subject)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open func replySync(to message: NatsMessage, withPayload payload: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 | guard let replySubject = message.replySubject else { return }
56 | try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 | }
18 |
19 | open func flushQueue(maxWait: TimeInterval? = nil) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 | let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:26:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | DispatchQueue.global(qos: .default).async { [weak self] in
26 | self?.messageQueue.waitUntilAllOperationsAreFinished()
| `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
[237/245] Compiling SwiftyNats NatsClient+Queue.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 | // MARK: - Implement NatsPublish Protocol
12 |
13 | open func publish(_ payload: String, to subject: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 | logger.info("publish \(payload.count) characters to subject \(subject)")
15 | sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | }
17 |
18 | open func publish(_ payload: String, to subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 | publish(payload, to: subject.subject)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 | }
21 |
22 | open func reply(to message: NatsMessage, withPayload payload: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 | guard let replySubject = message.replySubject else { return }
24 | logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 | }
27 |
28 | open func publishSync(_ payload: String, to subject: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 | }
49 |
50 | open func publishSync(_ payload: String, to subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 | try publishSync(payload, to: subject.subject)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open func replySync(to message: NatsMessage, withPayload payload: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 | guard let replySubject = message.replySubject else { return }
56 | try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 | }
18 |
19 | open func flushQueue(maxWait: TimeInterval? = nil) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 | let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:26:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 | DispatchQueue.global(qos: .default).async { [weak self] in
26 | self?.messageQueue.waitUntilAllOperationsAreFinished()
| `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
[238/245] Compiling SwiftyNats String+Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 | self.messageQueue.addOperation {
116 | handler(message)
| |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 | self.messageQueue.addOperation {
116 | handler(message)
| `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:8:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public struct NatsMessage {
| `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
9 |
10 | public let payload: String?
[239/245] Compiling SwiftyNats NatsClient+ChannelHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 | self.messageQueue.addOperation {
116 | handler(message)
| |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 | self.messageQueue.addOperation {
116 | handler(message)
| `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:8:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
6 | import Foundation
7 |
8 | public struct NatsMessage {
| `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
9 |
10 | public let payload: String?
[240/245] Compiling SwiftyNats Data+String.swift
[241/245] Compiling SwiftyNats Streams+Read+Write.swift
[242/245] Emitting module SwiftyNats
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |
14 | /// Connect to the NATS server
15 | open func connect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | logger.debug("Try to connect.")
17 | guard self.state != .connected else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
42 |
43 | /// Disconnect from the NATS server
44 | open func disconnect() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
45 | logger.debug("Try to disconnect.")
46 | do {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
59 | // MARK: - Internal Methods
60 |
61 | open func reconnect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
62 | self.fire(.reconnecting)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
9 |
10 | @discardableResult
11 | open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 | @discardableResult
18 | open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 | return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 | @discardableResult
25 | open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 | return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 | @discardableResult
32 | open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 | return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func off(_ id: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 | self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 | // MARK: - Implement NatsPublish Protocol
12 |
13 | open func publish(_ payload: String, to subject: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 | logger.info("publish \(payload.count) characters to subject \(subject)")
15 | sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | }
17 |
18 | open func publish(_ payload: String, to subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 | publish(payload, to: subject.subject)
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 | }
21 |
22 | open func reply(to message: NatsMessage, withPayload payload: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 | guard let replySubject = message.replySubject else { return }
24 | logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 | }
27 |
28 | open func publishSync(_ payload: String, to subject: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 | }
49 |
50 | open func publishSync(_ payload: String, to subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 | try publishSync(payload, to: subject.subject)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open func replySync(to message: NatsMessage, withPayload payload: String) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 | guard let replySubject = message.replySubject else { return }
56 | try publishSync(payload, to: replySubject.subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 | }
18 |
19 | open func flushQueue(maxWait: TimeInterval? = nil) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 | let startTimestamp = Date().timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | @discardableResult
14 | open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
15 | logger.info("subscribe to subject \(subject)")
16 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
24 |
25 | @discardableResult
26 | open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
27 | logger.info("subscribe to subject \(subject)")
28 | let nsub = NatsSubject(subject: subject)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func unsubscribe(from subject: NatsSubject) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 | logger.info("unsubscribe from subject \(subject)")
40 | self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
43 | }
44 |
45 | open func unsubscribeSync(from subject: NatsSubject) throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
46 | logger.info("unsubscribe syncrnon from subject \(subject)")
47 | let group = DispatchGroup()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
68 |
69 | @discardableResult
70 | open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
71 | return try subSync(to: subject, asPartOf: "", handler)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
73 |
74 | @discardableResult
75 | open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
76 | return try subSync(to: subject, asPartOf: queue, handler)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Nats events
17 | public enum NatsEvent: String {
| `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
18 | case connected = "connected"
19 | case disconnected = "disconnected"
:
23 | case reconnecting = "reconnecting"
24 | case informed = "informed"
25 | static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
[243/245] Compiling SwiftyNats NatsClient+Connection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |
14 | /// Connect to the NATS server
15 | open func connect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | logger.debug("Try to connect.")
17 | guard self.state != .connected else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
42 |
43 | /// Disconnect from the NATS server
44 | open func disconnect() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
45 | logger.debug("Try to disconnect.")
46 | do {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
59 | // MARK: - Internal Methods
60 |
61 | open func reconnect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
62 | self.fire(.reconnecting)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:141:45: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
140 | .channelInitializer { channel in
141 | channel.pipeline.addHandler(self)
| `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 | }.connectTimeout( TimeAmount.seconds(5) )
143 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:153:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | logger.error("Server returned an error while trying to connect")
152 | } else {
153 | self.channel = channel
| `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | }
155 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:149:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | })
148 | futureConnection.whenSuccess({channel in
149 | if hasErrored {
| `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
150 | //throw NatsConnectionError("Server returned an error while trying to connect")
151 | logger.error("Server returned an error while trying to connect")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
9 |
10 | @discardableResult
11 | open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 | @discardableResult
18 | open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 | return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 | @discardableResult
25 | open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 | return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 | @discardableResult
32 | open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 | return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func off(_ id: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 | self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Nats events
17 | public enum NatsEvent: String {
| `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
18 | case connected = "connected"
19 | case disconnected = "disconnected"
:
23 | case reconnecting = "reconnecting"
24 | case informed = "informed"
25 | static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
26 | }
27 |
[244/245] Compiling SwiftyNats NatsClient+EventBus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
13 |
14 | /// Connect to the NATS server
15 | open func connect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 | logger.debug("Try to connect.")
17 | guard self.state != .connected else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
42 |
43 | /// Disconnect from the NATS server
44 | open func disconnect() {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
45 | logger.debug("Try to disconnect.")
46 | do {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
59 | // MARK: - Internal Methods
60 |
61 | open func reconnect() throws {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
62 | self.fire(.reconnecting)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | import Logging
8 |
9 | var logger = Logger(label: "SwiftyNats")
| |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
10 | public let libVersion = "2.2"
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:141:45: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
140 | .channelInitializer { channel in
141 | channel.pipeline.addHandler(self)
| `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 | }.connectTimeout( TimeAmount.seconds(5) )
143 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:153:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | logger.error("Server returned an error while trying to connect")
152 | } else {
153 | self.channel = channel
| `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | }
155 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
40 |
41 | /// a Nats client
42 | open class NatsClient: NSObject {
| `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
43 | var urls = [String]()
44 | var connectedUrl: URL?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:149:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | })
148 | futureConnection.whenSuccess({channel in
149 | if hasErrored {
| `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
150 | //throw NatsConnectionError("Server returned an error while trying to connect")
151 | logger.error("Server returned an error while trying to connect")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
9 |
10 | @discardableResult
11 | open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 | return self.addListeners(for: events, using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 | @discardableResult
18 | open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 | return self.addListeners(for: [event], using: handler)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 | @discardableResult
25 | open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 | return self.addListeners(for: [event], using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 | @discardableResult
32 | open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 | return self.addListeners(for: events, using: handler, autoOff)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 | }
37 |
38 | open func off(_ id: String) {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 | self.removeListener(id)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// Nats events
17 | public enum NatsEvent: String {
| `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
18 | case connected = "connected"
19 | case disconnected = "disconnected"
:
23 | case reconnecting = "reconnecting"
24 | case informed = "informed"
25 | static let all = [ connected, disconnected, response, error, dropped, reconnecting ]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
26 | }
27 |
[245/245] Compiling SwiftyNats NatsSubject.swift
Build complete! (37.83s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.33.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "SwiftyNats",
"name" : "SwiftyNats",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftyNats",
"targets" : [
"SwiftyNats"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftyNatsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftyNatsTests",
"path" : "Tests/SwiftyNatsTests",
"sources" : [
"Extensions/StringExtensionTests.swift",
"Integration/ConnectionTests.swift",
"Integration/EventBusTests.swift",
"Integration/LoopTests.swift",
"Integration/PublishTests.swift",
"Integration/ServerInformationTest.swift",
"Integration/SubscribeTests.swift",
"TestSettings.swift",
"Unit/NatsMessageTests.swift"
],
"target_dependencies" : [
"SwiftyNats"
],
"type" : "test"
},
{
"c99name" : "SwiftyNats",
"module_type" : "SwiftTarget",
"name" : "SwiftyNats",
"path" : "Sources/SwiftyNats",
"product_dependencies" : [
"NIO",
"Logging"
],
"product_memberships" : [
"SwiftyNats"
],
"sources" : [
"Extensions/Data+String.swift",
"Extensions/Streams+Read+Write.swift",
"Extensions/String+Utilities.swift",
"NatsClient/NatsClient+ChannelHandler.swift",
"NatsClient/NatsClient+Connection.swift",
"NatsClient/NatsClient+EventBus.swift",
"NatsClient/NatsClient+Publish.swift",
"NatsClient/NatsClient+Queue.swift",
"NatsClient/NatsClient+ServerInfo.swift",
"NatsClient/NatsClient+Subscribe.swift",
"NatsClient/NatsClient.swift",
"NatsClientConfig.swift",
"NatsError.swift",
"NatsEventHandler.swift",
"NatsMessage.swift",
"NatsResponse.swift",
"NatsServer.swift",
"NatsSubject.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.