Build Information
Successful build of Babylon, reference main (1f1f5a), with Swift 6.1 for macOS (SPM) on 20 Oct 2026 04:40:13 UTC.
Swift 6 data race errors: 6
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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RockxyApp/Babylon.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RockxyApp/Babylon
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1f1f5af Merge pull request #16 from RockxyApp/feat/transport-lifecycle-events
Cloned https://github.com/RockxyApp/Babylon.git
Revision (git rev-parse @):
1f1f5af6765dbfe2a1c14aa1c8a92c5bd23ccbcc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/RockxyApp/Babylon.git at main
========================================
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",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/BabylonTests/Fixtures/RockxyProtocol",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BabylonCoreTests.swift",
"BabylonHelperExpandedTests.swift",
"BabylonManualTests.swift",
"BabylonProtocolTests.swift",
"BabylonRuntimeTests.swift",
"BabylonTests.swift",
"CaptureHardeningTests.swift",
"CapturePolicyTests.swift",
"ConfigurationExpandedTests.swift",
"DataCompressionTests.swift",
"DispatchQueueOnceTests.swift",
"EdgeCaseTests.swift",
"GRPCCaptureTests.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",
"TransportRecoveryIntegrationTests.swift",
"TransportReliabilityTests.swift",
"TransporterExpandedTests.swift",
"TransporterTests.swift",
"URLSessionTaskExtensionTests.swift",
"URLSessionTimingIntegrationTests.swift",
"URLSessionTimingTests.swift",
"WebSocketCaptureLifecycleTests.swift",
"WebSocketLoopbackIntegrationTests.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",
"CaptureMemoryBudget.swift",
"CapturePolicy.swift",
"Configuration.swift",
"Constants.swift",
"CorrelationContext.swift",
"DataCompression.swift",
"DispatchQueue+Once.swift",
"GRPCCapture.swift",
"Message.swift",
"NetworkInjector+URLSession.swift",
"NetworkInjector.swift",
"PackageIdentifier.swift",
"Packages.swift",
"Runtime.swift",
"RuntimePackage.swift",
"TraceContextStore.swift",
"TransportReliability.swift",
"Transporter.swift",
"URLSessionTask+CurrentRequest.swift",
"URLSessionTiming.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
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/28] Emitting module Babylon
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:133: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
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | 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
134 | static var isEnabled = Atomic<Bool>(false)
135 | private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:134: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
132 | public final class Babylon: NSObject {
133 | static let shared = Babylon()
134 | 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
135 | private static let defaultRedactedHeaders: Set = [
136 | "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:412: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
410 | }
411 |
412 | 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
413 | #endif
414 |
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Estimates include headroom for JSON/base64 encoding, protocol wrapping, and
9 | /// encrypted-frame copies. Leases follow retained objects and release on drop.
10 | final class CaptureMemoryBudget {
| `- note: class 'CaptureMemoryBudget' does not conform to the 'Sendable' protocol
11 | static let shared = CaptureMemoryBudget(limit: BabylonConstants.maximumCaptureMemoryBytes)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' 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
12 |
13 | private let lock = NSLock()
/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:86: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
84 |
85 | private enum InternalTaskMarker {
86 | 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
87 | }
88 |
[5/30] Compiling Babylon URLSessionTiming.swift
[6/30] Compiling Babylon resource_bundle_accessor.swift
[7/30] Compiling Babylon TraceContextStore.swift
[8/30] Compiling Babylon TransportReliability.swift
[9/30] Compiling Babylon CorrelationContext.swift
[10/30] Compiling Babylon DataCompression.swift
[11/30] Compiling Babylon DispatchQueue+Once.swift
[12/30] Compiling Babylon GRPCCapture.swift
[13/30] Compiling Babylon Message.swift
[14/30] Compiling Babylon NetworkInjector+URLSession.swift
[15/30] Compiling Babylon Runtime.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Runtime.swift:86: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
84 |
85 | private enum InternalTaskMarker {
86 | 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
87 | }
88 |
[16/30] Compiling Babylon RuntimePackage.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Runtime.swift:86: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
84 |
85 | private enum InternalTaskMarker {
86 | 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
87 | }
88 |
[17/30] Compiling Babylon BabylonHelper.swift
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Estimates include headroom for JSON/base64 encoding, protocol wrapping, and
9 | /// encrypted-frame copies. Leases follow retained objects and release on drop.
10 | final class CaptureMemoryBudget {
| `- note: class 'CaptureMemoryBudget' does not conform to the 'Sendable' protocol
11 | static let shared = CaptureMemoryBudget(limit: BabylonConstants.maximumCaptureMemoryBytes)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' 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
12 |
13 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:117:42: warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
87 | }
88 |
89 | final class BoundedCaptureWorkQueue {
| `- note: class 'BoundedCaptureWorkQueue' does not conform to the 'Sendable' protocol
90 | private let lock = NSLock()
91 | private let queue: DispatchQueue
:
115 | lock.unlock()
116 | if shouldStart {
117 | queue.async { [weak self] in self?.drain() }
| `- warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
118 | }
119 | return true
[18/30] Compiling Babylon BabylonProtocol.swift
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Estimates include headroom for JSON/base64 encoding, protocol wrapping, and
9 | /// encrypted-frame copies. Leases follow retained objects and release on drop.
10 | final class CaptureMemoryBudget {
| `- note: class 'CaptureMemoryBudget' does not conform to the 'Sendable' protocol
11 | static let shared = CaptureMemoryBudget(limit: BabylonConstants.maximumCaptureMemoryBytes)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' 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
12 |
13 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:117:42: warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
87 | }
88 |
89 | final class BoundedCaptureWorkQueue {
| `- note: class 'BoundedCaptureWorkQueue' does not conform to the 'Sendable' protocol
90 | private let lock = NSLock()
91 | private let queue: DispatchQueue
:
115 | lock.unlock()
116 | if shouldStart {
117 | queue.async { [weak self] in self?.drain() }
| `- warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
118 | }
119 | return true
[19/30] Compiling Babylon CaptureMemoryBudget.swift
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' may have shared mutable state; this is an error in the Swift 6 language mode
8 | /// Estimates include headroom for JSON/base64 encoding, protocol wrapping, and
9 | /// encrypted-frame copies. Leases follow retained objects and release on drop.
10 | final class CaptureMemoryBudget {
| `- note: class 'CaptureMemoryBudget' does not conform to the 'Sendable' protocol
11 | static let shared = CaptureMemoryBudget(limit: BabylonConstants.maximumCaptureMemoryBytes)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CaptureMemoryBudget' 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
12 |
13 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:117:42: warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
87 | }
88 |
89 | final class BoundedCaptureWorkQueue {
| `- note: class 'BoundedCaptureWorkQueue' does not conform to the 'Sendable' protocol
90 | private let lock = NSLock()
91 | private let queue: DispatchQueue
:
115 | lock.unlock()
116 | if shouldStart {
117 | queue.async { [weak self] in self?.drain() }
| `- warning: capture of 'self' with non-sendable type 'BoundedCaptureWorkQueue?' in a '@Sendable' closure
118 | }
119 | return true
[20/30] Compiling Babylon CapturePolicy.swift
[21/30] Compiling Babylon Configuration.swift
[22/30] Compiling Babylon Constants.swift
[23/30] Compiling Babylon Babylon+Manual.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:133: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
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | 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
134 | static var isEnabled = Atomic<Bool>(false)
135 | private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:134: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
132 | public final class Babylon: NSObject {
133 | static let shared = Babylon()
134 | 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
135 | private static let defaultRedactedHeaders: Set = [
136 | "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:412: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
410 | }
411 |
412 | 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
413 | #endif
414 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:326:33: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
324 | instance.invalidateEncodingWork()
325 | instance.queue.async {
326 | let configuration = instance.configuration
| `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
327 | for pending in instance.pendingMetricsCompletions.values {
328 | pending.workItem.cancel()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:344:13: warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
342 | instance.pendingWebSocketCompletions.removeAll()
343 | instance.traceContextStore.clear()
344 | transport.stop(
| `- warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
345 | afterSending: closingMessages,
346 | deadline: BabylonConstants.gracefulTransportDrainDeadline
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:12:10: note: protocol 'Transporter' does not conform to the 'Sendable' protocol
10 | #endif
11 |
12 | protocol Transporter {
| `- note: protocol 'Transporter' does not conform to the 'Sendable' protocol
13 | func start(_ config: Configuration)
14 | func stop()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:544:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
542 | }
543 | queue.async { [weak self] in
544 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:547:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
547 | operation(context)
| |- 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'
548 | }
549 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:956:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
954 | func handleMemoryPressure() {
955 | queue.async { [weak self] in
956 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
957 | pendingMetricsCompletions.values.forEach { $0.workItem.cancel() }
958 | pendingMetricsCompletions.removeAll()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
[24/30] Compiling Babylon Babylon+Runtime.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:133: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
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | 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
134 | static var isEnabled = Atomic<Bool>(false)
135 | private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:134: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
132 | public final class Babylon: NSObject {
133 | static let shared = Babylon()
134 | 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
135 | private static let defaultRedactedHeaders: Set = [
136 | "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:412: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
410 | }
411 |
412 | 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
413 | #endif
414 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:326:33: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
324 | instance.invalidateEncodingWork()
325 | instance.queue.async {
326 | let configuration = instance.configuration
| `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
327 | for pending in instance.pendingMetricsCompletions.values {
328 | pending.workItem.cancel()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:344:13: warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
342 | instance.pendingWebSocketCompletions.removeAll()
343 | instance.traceContextStore.clear()
344 | transport.stop(
| `- warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
345 | afterSending: closingMessages,
346 | deadline: BabylonConstants.gracefulTransportDrainDeadline
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:12:10: note: protocol 'Transporter' does not conform to the 'Sendable' protocol
10 | #endif
11 |
12 | protocol Transporter {
| `- note: protocol 'Transporter' does not conform to the 'Sendable' protocol
13 | func start(_ config: Configuration)
14 | func stop()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:544:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
542 | }
543 | queue.async { [weak self] in
544 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:547:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
547 | operation(context)
| |- 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'
548 | }
549 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:956:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
954 | func handleMemoryPressure() {
955 | queue.async { [weak self] in
956 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
957 | pendingMetricsCompletions.values.forEach { $0.workItem.cancel() }
958 | pendingMetricsCompletions.removeAll()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
[25/30] Compiling Babylon Babylon.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:133: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
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | 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
134 | static var isEnabled = Atomic<Bool>(false)
135 | private static let defaultRedactedHeaders: Set = [
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:134: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
132 | public final class Babylon: NSObject {
133 | static let shared = Babylon()
134 | 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
135 | private static let defaultRedactedHeaders: Set = [
136 | "authorization",
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:412: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
410 | }
411 |
412 | 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
413 | #endif
414 |
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:326:33: warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
324 | instance.invalidateEncodingWork()
325 | instance.queue.async {
326 | let configuration = instance.configuration
| `- warning: capture of 'instance' with non-sendable type 'Babylon' in a '@Sendable' closure
327 | for pending in instance.pendingMetricsCompletions.values {
328 | pending.workItem.cancel()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:344:13: warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
342 | instance.pendingWebSocketCompletions.removeAll()
343 | instance.traceContextStore.clear()
344 | transport.stop(
| `- warning: capture of 'transport' with non-sendable type 'any Transporter' in a '@Sendable' closure
345 | afterSending: closingMessages,
346 | deadline: BabylonConstants.gracefulTransportDrainDeadline
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:12:10: note: protocol 'Transporter' does not conform to the 'Sendable' protocol
10 | #endif
11 |
12 | protocol Transporter {
| `- note: protocol 'Transporter' does not conform to the 'Sendable' protocol
13 | func start(_ config: Configuration)
14 | func stop()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:544:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
542 | }
543 | queue.async { [weak self] in
544 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:547:13: warning: capture of 'operation' with non-sendable type '(CorrelationContext?) -> Void' in a '@Sendable' closure
545 | Babylon.isEnabled.value,
546 | generation == ledger.generation else { return }
547 | operation(context)
| |- 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'
548 | }
549 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:956:23: warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
130 |
131 | @objc
132 | public final class Babylon: NSObject {
| `- note: class 'Babylon' does not conform to the 'Sendable' protocol
133 | static let shared = Babylon()
134 | static var isEnabled = Atomic<Bool>(false)
:
954 | func handleMemoryPressure() {
955 | queue.async { [weak self] in
956 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'Babylon?' in a '@Sendable' closure
957 | pendingMetricsCompletions.values.forEach { $0.workItem.cancel() }
958 | pendingMetricsCompletions.removeAll()
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:40: warning: sending 'delegate' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
/Users/admin/builder/spi-builder-workspace/Babylon/Babylon.swift:791:74: warning: sending 'package' risks causing data races; this is an error in the Swift 6 language mode
789 | func startSendingMessage(package: TrafficPackage) {
790 | if let delegate {
791 | 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
792 | }
793 | guard transportEnabled.value else { return }
[26/30] Compiling Babylon NetworkInjector.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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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 |
[27/30] 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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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 |
[28/30] 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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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:1085: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
1083 | #if os(macOS)
1084 | return Thread.isMainThread
1085 | ? 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
1086 | : DispatchQueue.main.sync { NSApplication.shared.applicationIconImage }
1087 | #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 |
[29/30] Compiling Babylon Transporter.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:251:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
249 | #if DEBUG
250 | queue.async { [weak self] in
251 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
252 | state.epoch &+= 1
253 | shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:273:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
271 | func startForTesting(_ config: Configuration, endpoint: NWEndpoint) {
272 | queue.async { [weak self] in
273 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
274 | state.epoch &+= 1
275 | shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:286:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
284 | func updateDiscoveredEndpointForTesting(_ endpoint: NWEndpoint, discovered: Bool) {
285 | queue.async { [weak self] in
286 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
287 | if discovered {
288 | state.discoveredEndpoints.insert(endpoint)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:310:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
308 | func stop() {
309 | queue.async { [weak self] in
310 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
311 | state.epoch &+= 1
312 | shutDown(clearPending: true)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:318:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
316 | func stop(afterSending packages: [Serializable], deadline: TimeInterval) {
317 | queue.async { [weak self] in
318 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
319 | guard !packages.isEmpty, state.configuration?.hasValidAuthentication == true else {
320 | state.epoch &+= 1
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:319:20: warning: capture of 'packages' with non-sendable type '[any Serializable]' in a '@Sendable' closure
317 | queue.async { [weak self] in
318 | guard let self else { return }
319 | guard !packages.isEmpty, state.configuration?.hasValidAuthentication == true else {
| `- warning: capture of 'packages' with non-sendable type '[any Serializable]' in a '@Sendable' closure
320 | state.epoch &+= 1
321 | shutDown(clearPending: true)
/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:336:27: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
334 | state.endpointRetryTokens.removeAll()
335 | queue.asyncAfter(deadline: .now() + max(0, deadline)) { [weak self] in
336 | guard let self, state.drainDeadlineToken == token else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
337 | logger.info("Graceful transport drain reached its deadline")
338 | finishDrain()
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:346:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
344 | func send(package: Serializable) {
345 | queue.async { [weak self] in
346 | guard let self, state.configuration?.hasValidAuthentication == true else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
347 | if readyConnections.isEmpty {
348 | state.enqueue(package, now: Date().timeIntervalSince1970)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:348:31: warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
346 | guard let self, state.configuration?.hasValidAuthentication == true else { return }
347 | if readyConnections.isEmpty {
348 | state.enqueue(package, now: Date().timeIntervalSince1970)
| `- warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
349 | } else {
350 | 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:384:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
382 | )
383 | candidate.stateUpdateHandler = { [weak self, weak candidate] status in
384 | 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
385 | browserChanged(status, source: candidate, epoch: expectedEpoch)
386 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:388:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
386 | }
387 | candidate.browseResultsChangedHandler = { [weak self, weak candidate] _, changes in
388 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
389 | let candidate,
390 | browser === candidate,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:516:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
514 | state.discoveryRetryToken = token
515 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
516 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
517 | epoch == state.epoch,
518 | state.discoveryRetryToken == token,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:536:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
534 | state.accumulators[ObjectIdentifier(connection)] = ProtocolFrameAccumulator()
535 | connection.stateUpdateHandler = { [weak self] status in
536 | 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
537 | }
538 | connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:629:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
627 | state.endpointRetryTokens[endpoint] = token
628 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
629 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
630 | epoch == state.epoch,
631 | state.endpointRetryTokens[endpoint] == token,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:749:17: warning: capture of 'sendLease' with non-sendable type 'CaptureMemoryLease' in a '@Sendable' closure
747 | let data = frame.data
748 | connection.send(content: data, completion: .contentProcessed { [weak self, sendLease] error in
749 | _ = sendLease
| `- warning: capture of 'sendLease' with non-sendable type 'CaptureMemoryLease' in a '@Sendable' closure
750 | if let error {
751 | self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:71:13: note: class 'CaptureMemoryLease' does not conform to the 'Sendable' protocol
69 | }
70 |
71 | final class CaptureMemoryLease {
| `- note: class 'CaptureMemoryLease' does not conform to the 'Sendable' protocol
72 | private let budget: CaptureMemoryBudget
73 | fileprivate var bytes: Int
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:751:17: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
749 | _ = sendLease
750 | if let error {
751 | self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
752 | }
753 | })
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:787:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
785 | func scheduleRetry(_ messageID: String, epoch: UInt64) {
786 | queue.asyncAfter(deadline: .now() + acknowledgementDelay) { [weak self] in
787 | 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
788 | if Date().timeIntervalSince1970 - retained.createdAt >= maximumAcknowledgementLifetime {
789 | state.removeRetained(messageID)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:814:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
812 | maximumLength: 65536
813 | ) { [weak self] data, _, complete, error in
814 | guard let self, epoch == state.epoch, connection.state == .ready else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
815 | if let error {
816 | logger.error("Encrypted frame receive failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:942:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
940 | func handleMemoryPressure() {
941 | queue.async { [weak self] in
942 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
943 | state.pending.removeAll()
944 | state.retained.removeAll()
[30/30] Compiling Babylon URLSessionTask+CurrentRequest.swift
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:251:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
249 | #if DEBUG
250 | queue.async { [weak self] in
251 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
252 | state.epoch &+= 1
253 | shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:273:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
271 | func startForTesting(_ config: Configuration, endpoint: NWEndpoint) {
272 | queue.async { [weak self] in
273 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
274 | state.epoch &+= 1
275 | shutDown(clearPending: false)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:286:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
284 | func updateDiscoveredEndpointForTesting(_ endpoint: NWEndpoint, discovered: Bool) {
285 | queue.async { [weak self] in
286 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
287 | if discovered {
288 | state.discoveredEndpoints.insert(endpoint)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:310:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
308 | func stop() {
309 | queue.async { [weak self] in
310 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
311 | state.epoch &+= 1
312 | shutDown(clearPending: true)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:318:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
316 | func stop(afterSending packages: [Serializable], deadline: TimeInterval) {
317 | queue.async { [weak self] in
318 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
319 | guard !packages.isEmpty, state.configuration?.hasValidAuthentication == true else {
320 | state.epoch &+= 1
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:319:20: warning: capture of 'packages' with non-sendable type '[any Serializable]' in a '@Sendable' closure
317 | queue.async { [weak self] in
318 | guard let self else { return }
319 | guard !packages.isEmpty, state.configuration?.hasValidAuthentication == true else {
| `- warning: capture of 'packages' with non-sendable type '[any Serializable]' in a '@Sendable' closure
320 | state.epoch &+= 1
321 | shutDown(clearPending: true)
/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:336:27: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
334 | state.endpointRetryTokens.removeAll()
335 | queue.asyncAfter(deadline: .now() + max(0, deadline)) { [weak self] in
336 | guard let self, state.drainDeadlineToken == token else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
337 | logger.info("Graceful transport drain reached its deadline")
338 | finishDrain()
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:346:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
344 | func send(package: Serializable) {
345 | queue.async { [weak self] in
346 | guard let self, state.configuration?.hasValidAuthentication == true else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
347 | if readyConnections.isEmpty {
348 | state.enqueue(package, now: Date().timeIntervalSince1970)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:348:31: warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
346 | guard let self, state.configuration?.hasValidAuthentication == true else { return }
347 | if readyConnections.isEmpty {
348 | state.enqueue(package, now: Date().timeIntervalSince1970)
| `- warning: capture of 'package' with non-sendable type 'any Serializable' in a '@Sendable' closure
349 | } else {
350 | 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:384:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
382 | )
383 | candidate.stateUpdateHandler = { [weak self, weak candidate] status in
384 | 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
385 | browserChanged(status, source: candidate, epoch: expectedEpoch)
386 | }
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:388:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
386 | }
387 | candidate.browseResultsChangedHandler = { [weak self, weak candidate] _, changes in
388 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
389 | let candidate,
390 | browser === candidate,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:516:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
514 | state.discoveryRetryToken = token
515 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
516 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
517 | epoch == state.epoch,
518 | state.discoveryRetryToken == token,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:536:13: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
534 | state.accumulators[ObjectIdentifier(connection)] = ProtocolFrameAccumulator()
535 | connection.stateUpdateHandler = { [weak self] status in
536 | 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
537 | }
538 | connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:629:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
627 | state.endpointRetryTokens[endpoint] = token
628 | queue.asyncAfter(deadline: .now() + delay) { [weak self] in
629 | guard let self,
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
630 | epoch == state.epoch,
631 | state.endpointRetryTokens[endpoint] == token,
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:749:17: warning: capture of 'sendLease' with non-sendable type 'CaptureMemoryLease' in a '@Sendable' closure
747 | let data = frame.data
748 | connection.send(content: data, completion: .contentProcessed { [weak self, sendLease] error in
749 | _ = sendLease
| `- warning: capture of 'sendLease' with non-sendable type 'CaptureMemoryLease' in a '@Sendable' closure
750 | if let error {
751 | self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/CaptureMemoryBudget.swift:71:13: note: class 'CaptureMemoryLease' does not conform to the 'Sendable' protocol
69 | }
70 |
71 | final class CaptureMemoryLease {
| `- note: class 'CaptureMemoryLease' does not conform to the 'Sendable' protocol
72 | private let budget: CaptureMemoryBudget
73 | fileprivate var bytes: Int
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:751:17: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
749 | _ = sendLease
750 | if let error {
751 | self?.logger.error("Encrypted frame send failed: \(error.localizedDescription)")
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
752 | }
753 | })
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:787:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
785 | func scheduleRetry(_ messageID: String, epoch: UInt64) {
786 | queue.asyncAfter(deadline: .now() + acknowledgementDelay) { [weak self] in
787 | 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
788 | if Date().timeIntervalSince1970 - retained.createdAt >= maximumAcknowledgementLifetime {
789 | state.removeRetained(messageID)
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:814:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
812 | maximumLength: 65536
813 | ) { [weak self] data, _, complete, error in
814 | guard let self, epoch == state.epoch, connection.state == .ready else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
815 | if let error {
816 | logger.error("Encrypted frame receive failed: \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Babylon/Transporter.swift:942:23: warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
209 | }
210 |
211 | final class NetServiceTransport: NSObject, Transporter {
| `- note: class 'NetServiceTransport' does not conform to the 'Sendable' protocol
212 | private let logger = Logger(subsystem: "com.amunx.Babylon", category: "Transport")
213 | private let queue = DispatchQueue(label: "com.amunx.babylon.transport")
:
940 | func handleMemoryPressure() {
941 | queue.async { [weak self] in
942 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'NetServiceTransport?' in a '@Sendable' closure
943 | state.pending.removeAll()
944 | state.retained.removeAll()
Build complete! (11.65s)
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",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/BabylonTests/Fixtures/RockxyProtocol",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BabylonCoreTests.swift",
"BabylonHelperExpandedTests.swift",
"BabylonManualTests.swift",
"BabylonProtocolTests.swift",
"BabylonRuntimeTests.swift",
"BabylonTests.swift",
"CaptureHardeningTests.swift",
"CapturePolicyTests.swift",
"ConfigurationExpandedTests.swift",
"DataCompressionTests.swift",
"DispatchQueueOnceTests.swift",
"EdgeCaseTests.swift",
"GRPCCaptureTests.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",
"TransportRecoveryIntegrationTests.swift",
"TransportReliabilityTests.swift",
"TransporterExpandedTests.swift",
"TransporterTests.swift",
"URLSessionTaskExtensionTests.swift",
"URLSessionTimingIntegrationTests.swift",
"URLSessionTimingTests.swift",
"WebSocketCaptureLifecycleTests.swift",
"WebSocketLoopbackIntegrationTests.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",
"CaptureMemoryBudget.swift",
"CapturePolicy.swift",
"Configuration.swift",
"Constants.swift",
"CorrelationContext.swift",
"DataCompression.swift",
"DispatchQueue+Once.swift",
"GRPCCapture.swift",
"Message.swift",
"NetworkInjector+URLSession.swift",
"NetworkInjector.swift",
"PackageIdentifier.swift",
"Packages.swift",
"Runtime.swift",
"RuntimePackage.swift",
"TraceContextStore.swift",
"TransportReliability.swift",
"Transporter.swift",
"URLSessionTask+CurrentRequest.swift",
"URLSessionTiming.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.