Build Information
Successful build of CioAnalytics, reference 1.7.3+cio.1 (9c2cd6), with Swift 6.1 for Linux on 2 Apr 2026 13:38:58 UTC.
Swift 6 data race errors: 16
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1Build Log
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[37/79] Compiling CioAnalytics Analytics.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[38/79] Compiling CioAnalytics Configuration.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[39/79] Compiling CioAnalytics Deprecations.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[40/79] Compiling CioAnalytics Errors.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[41/79] Compiling CioAnalytics Events.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[42/79] Compiling CioAnalytics ObjCAnalytics.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[43/79] Compiling CioAnalytics ObjCConfiguration.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[44/79] Compiling CioAnalytics ObjCEvents.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:25:23: warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Enabled/disables debug logging to trace your data going through the SDK.
25 | public static var debugLogsEnabled = false
| |- warning: static property 'debugLogsEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogsEnabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30:30: warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | static internal let deadInstance = "DEADINSTANCE"
30 | static internal weak var firstInstance: Analytics? = nil
| |- warning: static property 'firstInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'firstInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'firstInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:32:33: warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | static internal weak var firstInstance: Analytics? = nil
31 |
32 | @Atomic static internal var activeWriteKeys = [String]()
| |- warning: static property 'activeWriteKeys' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'activeWriteKeys' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'activeWriteKeys' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /**
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:482:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
480 | case .asynchronous:
481 | queue.async {
482 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
483 | }
484 | case .synchronous:
[45/79] Compiling CioAnalytics HTTPClient.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[46/79] Compiling CioAnalytics HTTPSession+Apple.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[47/79] Compiling CioAnalytics HTTPSession.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[48/79] Compiling CioAnalytics Noncodable.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[49/79] Compiling CioAnalytics OutputFileStream.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[50/79] Compiling CioAnalytics CountBasedFlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[51/79] Compiling CioAnalytics FlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:65:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
63 |
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
67 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:66:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
64 | let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
65 | guard let self else { return }
66 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:90:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
88 |
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
92 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:91:102: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
89 | let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
90 | guard let self else { return }
91 | handleResponse(data: data, response: response, error: error, url: uploadURL, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | }
93 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:131:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
21 | private static let defaultAPIHost = "api.segment.io/v1"
22 | private static let defaultCDNHost = "cdn-settings.segment.com/v1"
:
129 | let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
| `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
132 | completion(false, nil)
133 | return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:132:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
130 | if let error = error {
131 | self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
132 | completion(false, nil)
| |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 | return
134 | }
[52/79] Compiling CioAnalytics IntervalBasedFlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[53/79] Compiling CioAnalytics QueueTimer.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[54/79] Compiling CioAnalytics DataStore.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[55/79] Compiling CioAnalytics Storage.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[56/79] Compiling CioAnalytics TransientDB.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[57/79] Compiling CioAnalytics DirectoryStore.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[58/79] Compiling CioAnalytics MemoryStore.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | @Atomic var state: State = .suspended
22 |
23 | static var timers = [QueueTimer]()
| |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class TransientDB {
| `- note: class 'TransientDB' does not conform to the 'Sendable' protocol
10 | // our data store
11 | internal let store: any DataStore
:
48 | if asyncAppend {
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
| `- warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
51 | store.append(data: data)
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:51:36: warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | syncQueue.async { [weak self] in
50 | guard let self else { return }
51 | store.append(data: data)
| `- warning: capture of 'data' with non-sendable type 'any RawEvent' in a '@Sendable' closure; this is an error in the Swift 6 language mode
52 | }
53 | } else {
/host/spi-builder-workspace/Sources/Segment/Types.swift:21:17: note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
19 | // MARK: - Event Types
20 |
21 | public protocol RawEvent: Codable {
| `- note: protocol 'RawEvent' does not conform to the 'Sendable' protocol
22 | var enrichments: [EnrichmentClosure]? { get set }
23 | var type: String? { get set }
/host/spi-builder-workspace/Sources/Segment/Utilities/Storage/Types/DirectoryStore.swift:11:25: warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public class DirectoryStore: DataStore {
11 | internal static var fileValidator: ((URL) -> Void)? = nil
| |- warning: static property 'fileValidator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fileValidator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'fileValidator' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | public typealias StoreConfiguration = Configuration
[59/79] Compiling CioAnalytics FileHandleExt.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[60/79] Compiling CioAnalytics LineStream.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[61/79] Compiling CioAnalytics Telemetry.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[62/79] Compiling CioAnalytics UserAgent.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[63/79] Compiling CioAnalytics Utils.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[64/79] Compiling CioAnalytics iso8601.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[65/79] Compiling CioAnalytics Version.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' 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
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
37 | public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
33 | /// All data is downsampled and no PII is collected.
34 | public class Telemetry: Subscriber {
| `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
35 | public static let shared = Telemetry(session: HTTPSessions.urlSession())
36 | private static let METRICS_BASE_TAG = "analytics_mobile"
:
207 | let task = session.dataTask(with: request) { data, response, error in
208 | if let error = error {
209 | self.errorHandler?(error)
| `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 | return
211 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | @Atomic internal static var _value: String = ""
| |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | /// Inquire as to whether we are within a Unit Testing environment.
27 | #if DEBUG
28 | internal var isUnitTesting: Bool = {
| |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | // this will work on apple platforms, but fail on linux.
30 | if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | #endif
49 |
50 | internal var isAppExtension: Bool = {
| |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | if Bundle.main.bundlePath.hasSuffix(".appex") {
52 | return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | func asyncAndWait(execute workItem: DispatchWorkItem) {
13 | async {
14 | workItem.perform()
| `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 | workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.10, iOS 8.0, *)
2 | public class DispatchWorkItem {
| `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
3 | public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
4 | public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
6 | //
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
9 |
10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | enum SegmentISO8601DateFormatter {
11 | static let shared: ISO8601DateFormatter = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' 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 | let formatter = ISO8601DateFormatter()
13 | formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[66/79] Compiling CioAnalytics watchOSLifecycleEvents.swift
[67/79] Compiling CioAnalytics watchOSLifecycleMonitor.swift
[68/79] Compiling CioAnalytics SegmentDestination.swift
[69/79] Compiling CioAnalytics StartupQueue.swift
[70/79] Compiling CioAnalytics Settings.swift
[71/79] Compiling CioAnalytics Startup.swift
[72/79] Compiling CioAnalytics State.swift
[73/79] Compiling CioAnalytics Timeline.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[74/79] Compiling CioAnalytics Types.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[75/79] Compiling CioAnalytics Atomic.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[76/79] Compiling CioAnalytics CompletionGroup.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[77/79] Compiling CioAnalytics JSON.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[78/79] Compiling CioAnalytics KeyPath.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
[79/79] Compiling CioAnalytics Logging.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | case object([String: JSON])
57 |
58 | static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
| |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 | static let trueValue = NSNumber(value: true)
564 | static let trueObjCType = trueValue.objCType
| |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 | static let trueObjCType = trueValue.objCType
565 | static let falseValue = NSNumber(value: false)
566 | static let falseObjCType = falseValue.objCType
| |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 | func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/KeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | }
47 |
48 | internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
| |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
50 | static func handlerFor(keyPath: KeyPath, input: Any?) -> KeyPathHandler? {
Build complete! (25.11s)
Build complete.
{
"dependencies" : [
{
"identity" : "sovran-swift",
"requirement" : {
"exact" : [
"1.1.2"
]
},
"type" : "sourceControl",
"url" : "https://github.com/segmentio/sovran-swift.git"
},
{
"identity" : "jsonsafeencoding-swift",
"requirement" : {
"exact" : [
"2.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/segmentio/jsonsafeencoding-swift.git"
}
],
"manifest_display_name" : "CioAnalytics",
"name" : "CioAnalytics",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.1"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "CioAnalytics",
"targets" : [
"CioAnalytics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CioAnalytics_Tests",
"module_type" : "SwiftTarget",
"name" : "CioAnalytics-Tests",
"path" : "Tests",
"sources" : [
"Segment-Tests/Analytics_Tests.swift",
"Segment-Tests/Atomic_Tests.swift",
"Segment-Tests/CompletionGroup_Tests.swift",
"Segment-Tests/FlushPolicy_Tests.swift",
"Segment-Tests/HTTPClient_Tests.swift",
"Segment-Tests/JSON_Tests.swift",
"Segment-Tests/KeyPath_Tests.swift",
"Segment-Tests/MemoryLeak_Tests.swift",
"Segment-Tests/ObjC_Tests.swift",
"Segment-Tests/Storage_Tests.swift",
"Segment-Tests/StressTests.swift",
"Segment-Tests/Support/TestUtilities.swift",
"Segment-Tests/Telemetry_Tests.swift",
"Segment-Tests/Timeline_Tests.swift",
"Segment-Tests/UserAgentTests.swift",
"Segment-Tests/WindowsVendorSystem_Tests.swift",
"Segment-Tests/XCTestManifests.swift",
"Segment-Tests/iOSLifecycle_Tests.swift"
],
"target_dependencies" : [
"CioAnalytics"
],
"type" : "test"
},
{
"c99name" : "CioAnalytics",
"module_type" : "SwiftTarget",
"name" : "CioAnalytics",
"path" : "Sources/Segment",
"product_dependencies" : [
"Sovran",
"JSONSafeEncoding"
],
"product_memberships" : [
"CioAnalytics"
],
"sources" : [
"Analytics.swift",
"Configuration.swift",
"Deprecations.swift",
"Errors.swift",
"Events.swift",
"ObjC/ObjCAnalytics.swift",
"ObjC/ObjCConfiguration.swift",
"ObjC/ObjCEvents.swift",
"ObjC/ObjCPlugin.swift",
"Plugins.swift",
"Plugins/Context.swift",
"Plugins/DestinationMetadataPlugin.swift",
"Plugins/DeviceToken.swift",
"Plugins/Platforms/Linux/LinuxLifecycleMonitor.swift",
"Plugins/Platforms/Mac/macOSLifecycleEvents.swift",
"Plugins/Platforms/Mac/macOSLifecycleMonitor.swift",
"Plugins/Platforms/Vendors/AppleUtils.swift",
"Plugins/Platforms/Vendors/LinuxUtils.swift",
"Plugins/Platforms/Vendors/VendorSystem.swift",
"Plugins/Platforms/Vendors/WindowsUtils.swift",
"Plugins/Platforms/iOS/iOSDelegation.swift",
"Plugins/Platforms/iOS/iOSLifecycleEvents.swift",
"Plugins/Platforms/iOS/iOSLifecycleMonitor.swift",
"Plugins/Platforms/watchOS/watchOSDelegation.swift",
"Plugins/Platforms/watchOS/watchOSLifecycleEvents.swift",
"Plugins/Platforms/watchOS/watchOSLifecycleMonitor.swift",
"Plugins/SegmentDestination.swift",
"Plugins/StartupQueue.swift",
"Settings.swift",
"Startup.swift",
"State.swift",
"Timeline.swift",
"Types.swift",
"Utilities/Atomic.swift",
"Utilities/CompletionGroup.swift",
"Utilities/JSON.swift",
"Utilities/KeyPath.swift",
"Utilities/Logging.swift",
"Utilities/Networking/HTTPClient.swift",
"Utilities/Networking/HTTPSession+Apple.swift",
"Utilities/Networking/HTTPSession.swift",
"Utilities/Noncodable.swift",
"Utilities/OutputFileStream.swift",
"Utilities/Policies/CountBasedFlushPolicy.swift",
"Utilities/Policies/FlushPolicy.swift",
"Utilities/Policies/IntervalBasedFlushPolicy.swift",
"Utilities/QueueTimer.swift",
"Utilities/Storage/DataStore.swift",
"Utilities/Storage/Storage.swift",
"Utilities/Storage/TransientDB.swift",
"Utilities/Storage/Types/DirectoryStore.swift",
"Utilities/Storage/Types/MemoryStore.swift",
"Utilities/Storage/Utilities/FileHandleExt.swift",
"Utilities/Storage/Utilities/LineStream.swift",
"Utilities/Telemetry.swift",
"Utilities/UserAgent.swift",
"Utilities/Utils.swift",
"Utilities/iso8601.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': Invalid Resource 'Segment/Resources': File not found.
Done.