The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftyNats, reference main (f3ec39), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 00:15:26 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aus-der-Technik/SwiftyNats
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f3ec391 NatsServer is a Codable now
Cloned https://github.com/aus-der-Technik/SwiftyNats.git
Revision (git rev-parse @):
f3ec3918499537709884c11d365926466d9dda7f
SUCCESS checkout https://github.com/aus-der-Technik/SwiftyNats.git at main
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 (4.43s)
Fetched https://github.com/apple/swift-nio.git from cache (4.43s)
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.81s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1569] Fetching swift-atomics
[49/5470] Fetching swift-atomics, swift-system
[2369/20945] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (2.03s)
Fetched https://github.com/apple/swift-collections.git from cache (2.03s)
Fetched https://github.com/apple/swift-atomics.git from cache (2.03s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.51s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.51s)
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-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-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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
========================================
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.84s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.68s)
Fetched https://github.com/apple/swift-nio.git from cache (0.68s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.02s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.03s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.55s)
Fetched https://github.com/apple/swift-system.git from cache (0.55s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.02s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.03s)
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-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-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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
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 main (f3ec391)
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
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
[11/23] Copying PrivacyInfo.xcprivacy
[12/23] Write swift-version--7754E27361AE5C74.txt
[13/23] Write sources
[14/23] Compiling CNIOWindows WSAStartup.c
[14/23] Compiling CNIOWASI CNIOWASI.c
[14/23] Compiling CNIOWindows shim.c
[17/23] Compiling CNIOLinux shim.c
[18/23] Compiling CNIOLinux liburing_shims.c
[19/43] Compiling _AtomicsShims.c
[20/71] Compiling CNIODarwin shim.c
[21/71] Compiling c-nioatomics.c
[22/71] Compiling c-atomics.c
[24/77] Emitting module _NIOBase64
[25/77] Compiling _NIOBase64 Base64.swift
[26/77] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[27/78] Compiling Atomics Primitives.shims.swift
[28/78] Compiling Atomics AtomicInteger.swift
[29/78] Compiling Atomics AtomicBool.swift
[30/78] Compiling Atomics IntegerConformances.swift
[31/78] Compiling Atomics UnsafeAtomic.swift
[32/78] Compiling Atomics UnsafeAtomicLazyReference.swift
[33/78] Emitting module InternalCollectionsUtilities
[34/78] Compiling Atomics AtomicStorage.swift
[35/78] Compiling Atomics AtomicValue.swift
[36/78] Compiling Atomics AtomicOptionalWrappable.swift
[37/78] Compiling Atomics AtomicReference.swift
[38/78] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[39/78] Compiling Atomics ManagedAtomic.swift
[40/78] Compiling Atomics ManagedAtomicLazyReference.swift
[43/80] Compiling Logging MetadataProvider.swift
[48/80] Compiling Atomics AtomicMemoryOrderings.swift
[49/80] Compiling Atomics DoubleWord.swift
[50/80] Compiling Atomics OptionalRawRepresentable.swift
[51/80] Compiling Atomics RawRepresentable.swift
[54/80] Compiling Atomics PointerConformances.swift
[55/80] Compiling Atomics Primitives.native.swift
[56/80] Compiling _NIODataStructures PriorityQueue.swift
[57/96] Compiling Atomics IntegerOperations.swift
[58/96] Compiling Atomics Unmanaged extensions.swift
[59/96] Emitting module _NIODataStructures
[60/96] Compiling _NIODataStructures Heap.swift
[61/96] Compiling _NIODataStructures _TinyArray.swift
[62/96] Compiling DequeModule _DequeBuffer.swift
[63/97] Compiling DequeModule _DequeSlot.swift
[64/97] Compiling DequeModule _DequeBufferHeader.swift
[65/97] Compiling DequeModule Deque+Extras.swift
[66/97] Compiling DequeModule Deque+Hashable.swift
[67/97] Compiling DequeModule _UnsafeWrappedBuffer.swift
[68/97] Compiling Logging LogHandler.swift
[69/97] Emitting module Logging
[70/97] Compiling Logging Locks.swift
[71/97] Compiling Logging Logging.swift
[72/97] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[73/97] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[74/97] Compiling NIOConcurrencyHelpers NIOLock.swift
[75/97] Emitting module NIOConcurrencyHelpers
[76/97] Compiling NIOConcurrencyHelpers lock.swift
[77/97] Compiling NIOConcurrencyHelpers atomics.swift
[78/97] Compiling DequeModule Deque+Testing.swift
[79/97] Compiling DequeModule Deque._Storage.swift
[80/97] Compiling DequeModule Deque._UnsafeHandle.swift
[81/97] Compiling DequeModule Deque.swift
[82/97] Compiling DequeModule Deque+CustomReflectable.swift
[83/97] Compiling DequeModule Deque+Descriptions.swift
[84/97] Compiling DequeModule Deque+Codable.swift
[85/97] Compiling DequeModule Deque+Collection.swift
[86/97] Emitting module DequeModule
[87/97] Compiling DequeModule Deque+Equatable.swift
[88/97] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[97/97] Emitting module Atomics
[98/159] Compiling NIOCore NIOScheduledCallback.swift
[99/159] Compiling NIOCore NIOSendable.swift
[100/159] Compiling NIOCore PointerHelpers.swift
[101/159] Compiling NIOCore RecvByteBufferAllocator.swift
[102/159] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[103/159] Compiling NIOCore SocketAddresses.swift
[104/159] Compiling NIOCore Linux.swift
[105/159] Compiling NIOCore MarkedCircularBuffer.swift
[106/159] Compiling NIOCore MulticastChannel.swift
[107/159] Compiling NIOCore NIOAny.swift
[108/159] Compiling NIOCore NIOCloseOnErrorHandler.swift
[109/159] Compiling NIOCore NIOLoopBound.swift
[110/165] Compiling NIOCore AddressedEnvelope.swift
[111/165] Compiling NIOCore AsyncAwaitSupport.swift
[112/165] Compiling NIOCore AsyncChannel.swift
[113/165] Compiling NIOCore AsyncChannelHandler.swift
[114/165] Compiling NIOCore AsyncChannelInboundStream.swift
[115/165] Compiling NIOCore AsyncChannelOutboundWriter.swift
[116/165] Compiling NIOCore NIOAsyncSequenceProducer.swift
[117/165] Compiling NIOCore SocketOptionProvider.swift
[118/165] Compiling NIOCore SystemCallHelpers.swift
[119/165] Compiling NIOCore TimeAmount+Duration.swift
[120/165] Compiling NIOCore TypeAssistedChannelHandler.swift
[121/165] Compiling NIOCore UniversalBootstrapSupport.swift
[122/165] Compiling NIOCore Utilities.swift
[123/165] Compiling NIOCore GlobalSingletons.swift
[124/165] Compiling NIOCore IO.swift
[125/165] Compiling NIOCore IOData.swift
[126/165] Compiling NIOCore IPProtocol.swift
[127/165] Compiling NIOCore IntegerBitPacking.swift
[128/165] Compiling NIOCore IntegerTypes.swift
[129/165] Compiling NIOCore Interfaces.swift
[130/165] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[131/165] Compiling NIOCore EventLoopFuture+Deprecated.swift
[132/165] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[133/165] Compiling NIOCore EventLoopFuture.swift
[134/165] Compiling NIOCore FileDescriptor.swift
[135/165] Compiling NIOCore FileHandle.swift
[136/165] Compiling NIOCore FileRegion.swift
[137/165] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[138/165] Compiling NIOCore NIOAsyncWriter.swift
[139/165] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[140/165] Compiling NIOCore BSDSocketAPI.swift
[141/165] Compiling NIOCore ByteBuffer-aux.swift
[142/165] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[143/165] Compiling NIOCore ByteBuffer-conversions.swift
[144/165] Compiling NIOCore Channel.swift
[145/165] Compiling NIOCore ChannelHandler.swift
[146/165] Compiling NIOCore ChannelHandlers.swift
[147/165] Compiling NIOCore ChannelInvoker.swift
[148/165] Compiling NIOCore ChannelOption.swift
[149/165] Compiling NIOCore ChannelPipeline.swift
[150/165] Compiling NIOCore CircularBuffer.swift
[151/165] Compiling NIOCore Codec.swift
[152/165] Compiling NIOCore ConvenienceOptionSupport.swift
[153/165] Compiling NIOCore DeadChannel.swift
[154/165] Compiling NIOCore DispatchQueue+WithFuture.swift
[155/165] Compiling NIOCore EventLoop+Deprecated.swift
[156/165] Compiling NIOCore EventLoop+SerialExecutor.swift
[157/165] Compiling NIOCore EventLoop.swift
[158/165] Compiling NIOCore ByteBuffer-core.swift
[159/165] Compiling NIOCore ByteBuffer-hex.swift
[160/165] Compiling NIOCore ByteBuffer-int.swift
[161/165] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[162/165] Compiling NIOCore ByteBuffer-multi-int.swift
[163/165] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[164/165] Compiling NIOCore ByteBuffer-views.swift
[165/165] Emitting module NIOCore
[166/219] Emitting module NIOEmbedded
[167/219] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[168/219] Compiling NIOEmbedded Embedded.swift
[169/219] Compiling NIOEmbedded AsyncTestingChannel.swift
[170/219] Compiling NIOPosix PendingWritesManager.swift
[171/219] Compiling NIOPosix PipeChannel.swift
[172/219] Compiling NIOPosix PipePair.swift
[173/219] Compiling NIOPosix PointerHelpers.swift
[174/219] Compiling NIOPosix Pool.swift
[175/224] Compiling NIOPosix PooledRecvBufferAllocator.swift
[176/224] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[177/224] Compiling NIOPosix PosixSingletons.swift
[178/224] Compiling NIOPosix RawSocketBootstrap.swift
[179/224] Compiling NIOPosix Resolver.swift
[180/224] Compiling NIOPosix GetaddrinfoResolver.swift
[181/224] Compiling NIOPosix HappyEyeballs.swift
[182/224] Compiling NIOPosix IO.swift
[183/224] Compiling NIOPosix IntegerBitPacking.swift
[184/224] Compiling NIOPosix IntegerTypes.swift
[185/224] Compiling NIOPosix Linux.swift
[186/224] Compiling NIOPosix SocketProtocols.swift
[187/224] Compiling NIOPosix System.swift
[188/224] Compiling NIOPosix Thread.swift
[189/224] Compiling NIOPosix ThreadPosix.swift
[190/224] Compiling NIOPosix ThreadWindows.swift
[191/224] Compiling NIOPosix SelectorKqueue.swift
[192/224] Compiling NIOPosix SelectorUring.swift
[193/224] Compiling NIOPosix ServerSocket.swift
[194/224] Compiling NIOPosix Socket.swift
[195/224] Compiling NIOPosix SocketChannel.swift
[196/224] Emitting module NIOPosix
[197/224] Compiling NIOPosix BSDSocketAPICommon.swift
[198/224] Compiling NIOPosix BSDSocketAPIPosix.swift
[199/224] Compiling NIOPosix BSDSocketAPIWindows.swift
[200/224] Compiling NIOPosix BaseSocket.swift
[201/224] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[202/224] Compiling NIOPosix BaseSocketChannel.swift
[203/224] Compiling NIOPosix BaseStreamSocketChannel.swift
[204/224] Compiling NIOPosix Bootstrap.swift
[205/224] Compiling NIOPosix ControlMessage.swift
[206/224] Compiling NIOPosix DatagramVectorReadManager.swift
[207/224] Compiling NIOPosix Errors+Any.swift
[208/224] Compiling NIOPosix FileDescriptor.swift
[209/224] Compiling NIOPosix LinuxCPUSet.swift
[210/224] Compiling NIOPosix LinuxUring.swift
[211/224] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[212/224] Compiling NIOPosix NIOThreadPool.swift
[213/224] Compiling NIOPosix NonBlockingFileIO.swift
[214/224] Compiling NIOPosix PendingDatagramWritesManager.swift
[215/224] Compiling NIOPosix Selectable.swift
[216/224] Compiling NIOPosix SelectableChannel.swift
[217/224] Compiling NIOPosix SelectableEventLoop.swift
[218/224] Compiling NIOPosix SelectorEpoll.swift
[219/224] Compiling NIOPosix SelectorGeneric.swift
[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 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 |
[228/244] 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 |
[229/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?
[230/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?
[231/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:154:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |                 logger.error("Server returned an error while trying to connect")
153 |             } else {
154 |                 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
155 |             }
156 |         })
/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:150:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
148 |         })
149 |         futureConnection.whenSuccess({channel in
150 |             if hasErrored {
    |                `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
151 |                 //throw NatsConnectionError("Server returned an error while trying to connect")
152 |                 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 |
[232/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:154:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |                 logger.error("Server returned an error while trying to connect")
153 |             } else {
154 |                 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
155 |             }
156 |         })
/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:150:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
148 |         })
149 |         futureConnection.whenSuccess({channel in
150 |             if hasErrored {
    |                `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
151 |                 //throw NatsConnectionError("Server returned an error while trying to connect")
152 |                 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 |
[233/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 |
[234/245] Compiling SwiftyNats Data+String.swift
[235/245] Compiling SwiftyNats Streams+Read+Write.swift
[236/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 |
[237/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 |
[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 NatsServer.swift
[241/245] 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 |
[242/245] 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 |
[243/245] Compiling SwiftyNats NatsError.swift
[244/245] Compiling SwiftyNats NatsEventHandler.swift
[245/245] Compiling SwiftyNats NatsSubject.swift
Build complete! (38.99s)
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.