The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Babylon, reference 1.0.0 (9698ed), with Swift 6.1 for macOS (SPM) on 26 Jul 2026 09:21:09 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RockxyApp/Babylon.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RockxyApp/Babylon
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 9698ed2 feat: initial public release of Babylon
Cloned https://github.com/RockxyApp/Babylon.git
Revision (git rev-parse @):
9698ed20a03baafbd748228b4c663b684b7c9723
SUCCESS checkout https://github.com/RockxyApp/Babylon.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RockxyApp/Babylon.git
https://github.com/RockxyApp/Babylon.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Babylon",
  "name" : "Babylon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Babylon",
      "targets" : [
        "Babylon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BabylonTests",
      "module_type" : "SwiftTarget",
      "name" : "BabylonTests",
      "path" : "BabylonTests",
      "sources" : [
        "BabylonCoreTests.swift",
        "BabylonHelperExpandedTests.swift",
        "BabylonManualTests.swift",
        "BabylonProtocolTests.swift",
        "BabylonRuntimeTests.swift",
        "BabylonTests.swift",
        "CaptureHardeningTests.swift",
        "ConfigurationExpandedTests.swift",
        "DataCompressionTests.swift",
        "DispatchQueueOnceTests.swift",
        "EdgeCaseTests.swift",
        "InjectorDelegateFlowTests.swift",
        "IntegrationTests.swift",
        "MessageTests.swift",
        "NetworkInjectorTests.swift",
        "PackageIdentifierTests.swift",
        "PackagesTests.swift",
        "RuntimePackageTests.swift",
        "RuntimeTests.swift",
        "SecurityFixTests.swift",
        "StreamReadingTests.swift",
        "TestHelpers.swift",
        "ThreadSafetyTests.swift",
        "TransporterExpandedTests.swift",
        "TransporterTests.swift",
        "URLSessionTaskExtensionTests.swift"
      ],
      "target_dependencies" : [
        "Babylon"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Babylon",
      "module_type" : "SwiftTarget",
      "name" : "Babylon",
      "path" : "Babylon",
      "product_memberships" : [
        "Babylon"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Babylon/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Babylon+Manual.swift",
        "Babylon+Runtime.swift",
        "Babylon.swift",
        "BabylonHelper.swift",
        "BabylonProtocol.swift",
        "Configuration.swift",
        "Constants.swift",
        "CorrelationContext.swift",
        "DataCompression.swift",
        "DispatchQueue+Once.swift",
        "Message.swift",
        "NetworkInjector+URLSession.swift",
        "NetworkInjector.swift",
        "PackageIdentifier.swift",
        "Packages.swift",
        "Runtime.swift",
        "RuntimePackage.swift",
        "TraceContextStore.swift",
        "Transporter.swift",
        "URLSessionTask+CurrentRequest.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/23] Emitting module Babylon
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:69:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     static var isEnabled = Atomic<Bool>(false)
 71 |     private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:70:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 68 | public final class Babylon: NSObject {
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private static let defaultRedactedHeaders: Set = [
 72 |         "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:255:13: warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
253 | }
254 |
255 | private var retainedTestTransporters: [Transporter] = []
    |             |- warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'retainedTestTransporters' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'retainedTestTransporters' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
256 | #endif
257 |
/Users/admin/builder/spi-builder-workspace/Babylon/PackageIdentifier.swift:8:24: warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | enum PackageIdentifier {
 8 |     private static var associationKey: UInt8 = 0
   |                        |- warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'associationKey' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'associationKey' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     private static let lock = NSLock()
10 |
/Users/admin/builder/spi-builder-workspace/Babylon/Runtime.swift:75:16: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | private enum InternalTaskMarker {
 75 |     static var key: UInt8 = 0
    |                |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 | }
 77 |
[5/25] Compiling Babylon DispatchQueue+Once.swift
[6/25] Compiling Babylon Message.swift
[7/25] Compiling Babylon NetworkInjector+URLSession.swift
[8/25] Compiling Babylon NetworkInjector.swift
[9/25] Compiling Babylon TraceContextStore.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:153:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
151 |         #if DEBUG
152 |         queue.async { [weak self] in
153 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
154 |             state.epoch &+= 1
155 |             shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:174:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
172 |     func stop() {
173 |         queue.async { [weak self] in
174 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
175 |             state.epoch &+= 1
176 |             shutDown(clearPending: true)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:182:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
180 |     func send(package: Serializable) {
181 |         queue.async { [weak self] in
182 |             guard let self, state.configuration?.hasValidAuthentication == true else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
183 |             if readyConnections.isEmpty {
184 |                 state.enqueue(package)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:184:31: warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
182 |             guard let self, state.configuration?.hasValidAuthentication == true else { return }
183 |             if readyConnections.isEmpty {
184 |                 state.enqueue(package)
    |                               `- warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
185 |             } else {
186 |                 broadcast(package)
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:22:10: note: protocol 'Serializable' does not conform to the 'Sendable' protocol
 20 | #endif
 21 |
 22 | protocol Serializable {
    |          `- note: protocol 'Serializable' does not conform to the 'Sendable' protocol
 23 |     func toData() -> Data?
 24 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:219:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
217 |         )
218 |         candidate.stateUpdateHandler = { [weak self, weak candidate] status in
219 |             guard let self, let candidate else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
220 |             browserChanged(status, source: candidate)
221 |         }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:223:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
221 |         }
222 |         candidate.browseResultsChangedHandler = { [weak self] _, changes in
223 |             self?.apply(changes)
    |             `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
224 |         }
225 |         browser = candidate
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:326:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
324 |         state.accumulators[ObjectIdentifier(connection)] = ProtocolFrameAccumulator()
325 |         connection.stateUpdateHandler = { [weak self] status in
326 |             self?.connectionChanged(connection, status: status, epoch: epoch)
    |             `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
327 |         }
328 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:428:17: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
426 |         connection.send(content: frame.data, completion: .contentProcessed { [weak self] error in
427 |             if let error {
428 |                 self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
    |                 `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
429 |             }
430 |         })
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:458:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
456 |     func scheduleRetry(_ messageID: String, epoch: UInt64) {
457 |         queue.asyncAfter(deadline: .now() + acknowledgementDelay) { [weak self] in
458 |             guard let self, epoch == state.epoch, var retained = state.retained[messageID] else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
459 |             let connections = readyConnections
460 |             if connections.isEmpty {
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:483:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
481 |             maximumLength: 65536
482 |         ) { [weak self] data, _, complete, error in
483 |             guard let self, epoch == state.epoch, connection.state == .ready else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
484 |             if let error {
485 |                 logger.error("Encrypted frame receive failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:569:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
567 |     func handleMemoryPressure() {
568 |         queue.async { [weak self] in
569 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
570 |             state.pending.removeAll()
571 |             state.retained.removeAll()
[10/25] Compiling Babylon Transporter.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:153:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
151 |         #if DEBUG
152 |         queue.async { [weak self] in
153 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
154 |             state.epoch &+= 1
155 |             shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:174:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
172 |     func stop() {
173 |         queue.async { [weak self] in
174 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
175 |             state.epoch &+= 1
176 |             shutDown(clearPending: true)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:182:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
180 |     func send(package: Serializable) {
181 |         queue.async { [weak self] in
182 |             guard let self, state.configuration?.hasValidAuthentication == true else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
183 |             if readyConnections.isEmpty {
184 |                 state.enqueue(package)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:184:31: warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
182 |             guard let self, state.configuration?.hasValidAuthentication == true else { return }
183 |             if readyConnections.isEmpty {
184 |                 state.enqueue(package)
    |                               `- warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
185 |             } else {
186 |                 broadcast(package)
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:22:10: note: protocol 'Serializable' does not conform to the 'Sendable' protocol
 20 | #endif
 21 |
 22 | protocol Serializable {
    |          `- note: protocol 'Serializable' does not conform to the 'Sendable' protocol
 23 |     func toData() -> Data?
 24 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:219:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
217 |         )
218 |         candidate.stateUpdateHandler = { [weak self, weak candidate] status in
219 |             guard let self, let candidate else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
220 |             browserChanged(status, source: candidate)
221 |         }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:223:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
221 |         }
222 |         candidate.browseResultsChangedHandler = { [weak self] _, changes in
223 |             self?.apply(changes)
    |             `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
224 |         }
225 |         browser = candidate
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:326:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
324 |         state.accumulators[ObjectIdentifier(connection)] = ProtocolFrameAccumulator()
325 |         connection.stateUpdateHandler = { [weak self] status in
326 |             self?.connectionChanged(connection, status: status, epoch: epoch)
    |             `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
327 |         }
328 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:428:17: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
426 |         connection.send(content: frame.data, completion: .contentProcessed { [weak self] error in
427 |             if let error {
428 |                 self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
    |                 `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
429 |             }
430 |         })
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:458:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
456 |     func scheduleRetry(_ messageID: String, epoch: UInt64) {
457 |         queue.asyncAfter(deadline: .now() + acknowledgementDelay) { [weak self] in
458 |             guard let self, epoch == state.epoch, var retained = state.retained[messageID] else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
459 |             let connections = readyConnections
460 |             if connections.isEmpty {
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:483:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
481 |             maximumLength: 65536
482 |         ) { [weak self] data, _, complete, error in
483 |             guard let self, epoch == state.epoch, connection.state == .ready else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
484 |             if let error {
485 |                 logger.error("Encrypted frame receive failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:569:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
128 | }
129 |
130 | final class NetServiceTransport: NSObject, Transporter {
    |             `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
131 |     private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
132 |     private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
    :
567 |     func handleMemoryPressure() {
568 |         queue.async { [weak self] in
569 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
570 |             state.pending.removeAll()
571 |             state.retained.removeAll()
[11/25] Compiling Babylon Runtime.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Runtime.swift:75:16: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | private enum InternalTaskMarker {
 75 |     static var key: UInt8 = 0
    |                |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 | }
 77 |
[12/25] Compiling Babylon RuntimePackage.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Runtime.swift:75:16: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | private enum InternalTaskMarker {
 75 |     static var key: UInt8 = 0
    |                |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 76 | }
 77 |
[13/25] Compiling Babylon Configuration.swift
[14/25] Compiling Babylon Constants.swift
[15/25] Compiling Babylon BabylonHelper.swift
[16/25] Compiling Babylon BabylonProtocol.swift
[17/25] Compiling Babylon Babylon+Manual.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:69:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     static var isEnabled = Atomic<Bool>(false)
 71 |     private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:70:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 68 | public final class Babylon: NSObject {
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private static let defaultRedactedHeaders: Set = [
 72 |         "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:255:13: warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
253 | }
254 |
255 | private var retainedTestTransporters: [Transporter] = []
    |             |- warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'retainedTestTransporters' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'retainedTestTransporters' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
256 | #endif
257 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:188:13: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
186 |         instance.transporter.stop()
187 |         instance.queue.async {
188 |             instance.configuration = .default()
    |             `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
189 |             instance.ledger.clear()
190 |             instance.traceContextStore.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:353:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
351 |         let generation = queue.sync { ledger.generation }
352 |         queue.async { [weak self] in
353 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:356:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
356 |             operation(traceContextStore.activeCorrelationContext())
    |             |- warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
357 |         }
358 |     }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:531:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
529 |         let snapshot = package.makeSnapshot()
530 |         encodingQueue.async { [weak self] in
531 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
532 |                   transportEnabled.value,
533 |                   activeClientID.value == clientID else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:536:65: warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
534 |             let message: Message? = switch type {
535 |             case .traffic:
536 |                 Message.buildTrafficMessage(id: clientID, item: snapshot)
    |                                                                 `- warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
537 |             case .websocket:
538 |                 Message.buildWebSocketMessage(id: clientID, item: snapshot)
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:94:20: note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 92 | }
 93 |
 94 | public final class TrafficPackage: Codable, CustomDebugStringConvertible, Serializable {
    |                    `- note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 95 |     public enum PackageType: String, Codable {
 96 |         case http
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:584:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
582 |     func handleMemoryPressure() {
583 |         queue.async { [weak self] in
584 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
585 |             ledger.traffic.keys.forEach { self.traceContextStore.removeCorrelationContext(forPackageId: $0) }
586 |             ledger.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                        |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                                                          |- warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: task-isolated 'package' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
[18/25] Compiling Babylon Babylon+Runtime.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:69:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     static var isEnabled = Atomic<Bool>(false)
 71 |     private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:70:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 68 | public final class Babylon: NSObject {
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private static let defaultRedactedHeaders: Set = [
 72 |         "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:255:13: warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
253 | }
254 |
255 | private var retainedTestTransporters: [Transporter] = []
    |             |- warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'retainedTestTransporters' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'retainedTestTransporters' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
256 | #endif
257 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:188:13: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
186 |         instance.transporter.stop()
187 |         instance.queue.async {
188 |             instance.configuration = .default()
    |             `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
189 |             instance.ledger.clear()
190 |             instance.traceContextStore.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:353:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
351 |         let generation = queue.sync { ledger.generation }
352 |         queue.async { [weak self] in
353 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:356:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
356 |             operation(traceContextStore.activeCorrelationContext())
    |             |- warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
357 |         }
358 |     }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:531:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
529 |         let snapshot = package.makeSnapshot()
530 |         encodingQueue.async { [weak self] in
531 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
532 |                   transportEnabled.value,
533 |                   activeClientID.value == clientID else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:536:65: warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
534 |             let message: Message? = switch type {
535 |             case .traffic:
536 |                 Message.buildTrafficMessage(id: clientID, item: snapshot)
    |                                                                 `- warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
537 |             case .websocket:
538 |                 Message.buildWebSocketMessage(id: clientID, item: snapshot)
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:94:20: note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 92 | }
 93 |
 94 | public final class TrafficPackage: Codable, CustomDebugStringConvertible, Serializable {
    |                    `- note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 95 |     public enum PackageType: String, Codable {
 96 |         case http
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:584:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
582 |     func handleMemoryPressure() {
583 |         queue.async { [weak self] in
584 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
585 |             ledger.traffic.keys.forEach { self.traceContextStore.removeCorrelationContext(forPackageId: $0) }
586 |             ledger.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                        |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                                                          |- warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: task-isolated 'package' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
[19/25] Compiling Babylon Babylon.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:69:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Babylon' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     static var isEnabled = Atomic<Bool>(false)
 71 |     private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:70:16: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 68 | public final class Babylon: NSObject {
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    |                |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     private static let defaultRedactedHeaders: Set = [
 72 |         "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:255:13: warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
253 | }
254 |
255 | private var retainedTestTransporters: [Transporter] = []
    |             |- warning: var 'retainedTestTransporters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'retainedTestTransporters' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'retainedTestTransporters' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
256 | #endif
257 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:188:13: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
186 |         instance.transporter.stop()
187 |         instance.queue.async {
188 |             instance.configuration = .default()
    |             `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
189 |             instance.ledger.clear()
190 |             instance.traceContextStore.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:353:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
351 |         let generation = queue.sync { ledger.generation }
352 |         queue.async { [weak self] in
353 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:356:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
354 |                   Babylon.isEnabled.value,
355 |                   generation == ledger.generation else { return }
356 |             operation(traceContextStore.activeCorrelationContext())
    |             |- warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
357 |         }
358 |     }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:531:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
529 |         let snapshot = package.makeSnapshot()
530 |         encodingQueue.async { [weak self] in
531 |             guard let self,
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
532 |                   transportEnabled.value,
533 |                   activeClientID.value == clientID else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:536:65: warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
534 |             let message: Message? = switch type {
535 |             case .traffic:
536 |                 Message.buildTrafficMessage(id: clientID, item: snapshot)
    |                                                                 `- warning: capture of 'snapshot' with non-sendable type 'TrafficPackage' in a '@Sendable' closure
537 |             case .websocket:
538 |                 Message.buildWebSocketMessage(id: clientID, item: snapshot)
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:94:20: note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 92 | }
 93 |
 94 | public final class TrafficPackage: Codable, CustomDebugStringConvertible, Serializable {
    |                    `- note: class 'TrafficPackage' does not conform to the 'Sendable' protocol
 95 |     public enum PackageType: String, Codable {
 96 |         case http
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:584:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
 66 |
 67 | @objc
 68 | public final class Babylon: NSObject {
    |                    `- note: class 'Babylon' does not conform to the 'Sendable' protocol
 69 |     static let shared = Babylon()
 70 |     static var isEnabled = Atomic<Bool>(false)
    :
582 |     func handleMemoryPressure() {
583 |         queue.async { [weak self] in
584 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
585 |             ledger.traffic.keys.forEach { self.traceContextStore.removeCorrelationContext(forPackageId: $0) }
586 |             ledger.clear()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                        |- warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: task-isolated 'delegate' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:489:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
487 |     func startSendingMessage(package: TrafficPackage) {
488 |         if let delegate {
489 |             DispatchQueue.main.async { delegate.babylonDidCapturePackage(package) }
    |                                                                          |- warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: task-isolated 'package' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
490 |         }
491 |         guard transportEnabled.value else { return }
[20/25] Compiling Babylon CorrelationContext.swift
[21/25] Compiling Babylon DataCompression.swift
[22/25] Compiling Babylon PackageIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Babylon/PackageIdentifier.swift:8:24: warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | enum PackageIdentifier {
 8 |     private static var associationKey: UInt8 = 0
   |                        |- warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'associationKey' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'associationKey' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     private static let lock = NSLock()
10 |
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:507:36: warning: main actor-isolated property 'applicationIconImage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
505 |         #if os(macOS)
506 |         return Thread.isMainThread
507 |             ? NSApplication.shared.applicationIconImage
    |                                    `- warning: main actor-isolated property 'applicationIconImage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
508 |             : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
509 |         #elseif targetEnvironment(macCatalyst)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:289:46: note: property declared here
287 | @property (nullable, strong) NSMenu *helpMenu API_AVAILABLE(macos(10.6));
288 |
289 | @property (null_resettable, strong) NSImage *applicationIconImage;
    |                                              `- note: property declared here
290 |
291 | /// @return The activation policy of the application.
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:507:29: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
505 |         #if os(macOS)
506 |         return Thread.isMainThread
507 |             ? NSApplication.shared.applicationIconImage
    |                             `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
508 |             : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
509 |         #elseif targetEnvironment(macCatalyst)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
[23/25] Compiling Babylon Packages.swift
/Users/admin/builder/spi-builder-workspace/Babylon/PackageIdentifier.swift:8:24: warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | enum PackageIdentifier {
 8 |     private static var associationKey: UInt8 = 0
   |                        |- warning: static property 'associationKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'associationKey' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'associationKey' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     private static let lock = NSLock()
10 |
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:507:36: warning: main actor-isolated property 'applicationIconImage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
505 |         #if os(macOS)
506 |         return Thread.isMainThread
507 |             ? NSApplication.shared.applicationIconImage
    |                                    `- warning: main actor-isolated property 'applicationIconImage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
508 |             : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
509 |         #elseif targetEnvironment(macCatalyst)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:289:46: note: property declared here
287 | @property (nullable, strong) NSMenu *helpMenu API_AVAILABLE(macos(10.6));
288 |
289 | @property (null_resettable, strong) NSImage *applicationIconImage;
    |                                              `- note: property declared here
290 |
291 | /// @return The activation policy of the application.
/Users/admin/builder/spi-builder-workspace/Babylon/Packages.swift:507:29: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
505 |         #if os(macOS)
506 |         return Thread.isMainThread
507 |             ? NSApplication.shared.applicationIconImage
    |                             `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
508 |             : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
509 |         #elseif targetEnvironment(macCatalyst)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
[24/25] Compiling Babylon URLSessionTask+CurrentRequest.swift
[25/25] Compiling Babylon resource_bundle_accessor.swift
Build complete! (10.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Babylon",
  "name" : "Babylon",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Babylon",
      "targets" : [
        "Babylon"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BabylonTests",
      "module_type" : "SwiftTarget",
      "name" : "BabylonTests",
      "path" : "BabylonTests",
      "sources" : [
        "BabylonCoreTests.swift",
        "BabylonHelperExpandedTests.swift",
        "BabylonManualTests.swift",
        "BabylonProtocolTests.swift",
        "BabylonRuntimeTests.swift",
        "BabylonTests.swift",
        "CaptureHardeningTests.swift",
        "ConfigurationExpandedTests.swift",
        "DataCompressionTests.swift",
        "DispatchQueueOnceTests.swift",
        "EdgeCaseTests.swift",
        "InjectorDelegateFlowTests.swift",
        "IntegrationTests.swift",
        "MessageTests.swift",
        "NetworkInjectorTests.swift",
        "PackageIdentifierTests.swift",
        "PackagesTests.swift",
        "RuntimePackageTests.swift",
        "RuntimeTests.swift",
        "SecurityFixTests.swift",
        "StreamReadingTests.swift",
        "TestHelpers.swift",
        "ThreadSafetyTests.swift",
        "TransporterExpandedTests.swift",
        "TransporterTests.swift",
        "URLSessionTaskExtensionTests.swift"
      ],
      "target_dependencies" : [
        "Babylon"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Babylon",
      "module_type" : "SwiftTarget",
      "name" : "Babylon",
      "path" : "Babylon",
      "product_memberships" : [
        "Babylon"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Babylon/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Babylon+Manual.swift",
        "Babylon+Runtime.swift",
        "Babylon.swift",
        "BabylonHelper.swift",
        "BabylonProtocol.swift",
        "Configuration.swift",
        "Constants.swift",
        "CorrelationContext.swift",
        "DataCompression.swift",
        "DispatchQueue+Once.swift",
        "Message.swift",
        "NetworkInjector+URLSession.swift",
        "NetworkInjector.swift",
        "PackageIdentifier.swift",
        "Packages.swift",
        "Runtime.swift",
        "RuntimePackage.swift",
        "TraceContextStore.swift",
        "Transporter.swift",
        "URLSessionTask+CurrentRequest.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.