The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Segment, reference main (729d6a), with Swift 6.1 for Linux on 30 Apr 2026 04:53:50 UTC.

Swift 6 data race errors: 23

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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>&1

Build Log

   |                                 |- 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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[58/87] Compiling Segment 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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[59/87] Compiling Segment 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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[60/87] Compiling Segment 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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[61/87] Compiling Segment Waiting.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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[62/87] Compiling Segment resource_bundle_accessor.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 }
/host/spi-builder-workspace/Sources/Segment/Waiting.swift:62:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |     internal func startProcessingAfterTimeout() {
61 |         DispatchQueue.main.async { [weak self] in
62 |             guard let self else { return }
   |                       |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                       `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
63 |             self.processingTimer?.cancel()
64 |             self.processingTimer = DispatchWorkItem { [weak self] in
[63/87] Compiling Segment Analytics.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[64/87] Compiling Segment Configuration.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[65/87] Compiling Segment Deprecations.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[66/87] Compiling Segment Errors.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[67/87] Compiling Segment Events.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[68/87] Compiling Segment ObjCAnalytics.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[69/87] Compiling Segment ObjCConfiguration.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[70/87] Compiling Segment ObjCEvents.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[71/87] Compiling Segment ObjCPlugin.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:23: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
 21 |
 22 |     /// Enabled/disables debug logging to trace your data going through the SDK.
 23 |     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
 24 |
 25 |     public var timeline: Timeline
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:28: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
 26 |
 27 |     static internal let deadInstance = "DEADINSTANCE"
 28 |     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
 29 |
 30 |     @Atomic static internal var activeWriteKeys = [String]()
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:30: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
 28 |     static internal weak var firstInstance: Analytics? = nil
 29 |
 30 |     @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
 31 |
 32 |     // Used for WaitingPlugin's, see waiting.swift
/host/spi-builder-workspace/Sources/Segment/Analytics.swift:546:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
544 |         case .asynchronous:
545 |             queue.async {
546 |                 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'
547 |             }
548 |         case .synchronous:
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:67:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 65 |     }
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
    |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:68:23: warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 66 |
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
    |                       |- warning: static property 'applicationInstalled' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationInstalled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:69:23: warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 67 |     public static let none: TrackedLifecycleEvent = []
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
    |                       |- warning: static property 'applicationUpdated' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationUpdated' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:70:23: warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 68 |     public static let applicationInstalled = TrackedLifecycleEvent(rawValue: 1 << 0)
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
    |                       |- warning: static property 'applicationOpened' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationOpened' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:71:23: warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 69 |     public static let applicationUpdated = TrackedLifecycleEvent(rawValue: 1 << 1)
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
    |                       |- warning: static property 'applicationBackgrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationBackgrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
 73 |     #if os(macOS)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:72:23: warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
 70 |     public static let applicationOpened = TrackedLifecycleEvent(rawValue: 1 << 2)
 71 |     public static let applicationBackgrounded = TrackedLifecycleEvent(rawValue: 1 << 3)
 72 |     public static let applicationForegrounded = TrackedLifecycleEvent(rawValue: 1 << 4)
    |                       |- warning: static property 'applicationForegrounded' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'applicationForegrounded' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |     #if os(macOS)
 74 |         public static let applicationUnhidden = TrackedLifecycleEvent(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/Segment/Configuration.swift:104:27: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
 50 | // MARK: - Internal Configuration
 51 |
 52 | public final class TrackedLifecycleEvent: NSObject, OptionSet {
    |                    `- note: class 'TrackedLifecycleEvent' does not conform to the 'Sendable' protocol
 53 |     public let rawValue: Int
 54 |
    :
102 |         ]
103 |     #else
104 |         public static let all = TrackedLifecycleEvent.none
    |                           |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrackedLifecycleEvent' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     #endif
106 | }
[72/87] Compiling Segment RetryTypes.swift
/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
[73/87] Compiling Segment TimeProvider.swift
/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
[74/87] Compiling Segment DataStore.swift
/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
[75/87] Compiling Segment Storage.swift
/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
[76/87] Compiling Segment TransientDB.swift
/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
[77/87] Compiling Segment DirectoryStore.swift
/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
[78/87] Compiling Segment MemoryStore.swift
/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
[79/87] Compiling Segment FileHandleExt.swift
/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
[80/87] Compiling Segment SegmentDestination.swift
[81/87] Compiling Segment StartupQueue.swift
[82/87] Compiling Segment Settings.swift
[83/87] Compiling Segment Startup.swift
[84/87] Compiling Segment State.swift
[85/87] Compiling Segment Timeline.swift
[86/87] Compiling Segment Types.swift
[87/87] Compiling Segment Atomic.swift
Build complete! (21.41s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "sovran-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/segmentio/sovran-swift.git"
    },
    {
      "identity" : "jsonsafeencoding-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/segmentio/jsonsafeencoding-swift.git"
    }
  ],
  "manifest_display_name" : "Segment",
  "name" : "Segment",
  "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" : "Segment",
      "targets" : [
        "Segment"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Segment_Tests",
      "module_type" : "SwiftTarget",
      "name" : "Segment-Tests",
      "path" : "Tests/Segment-Tests",
      "sources" : [
        "Analytics_Tests.swift",
        "Atomic_Tests.swift",
        "CompletionGroup_Tests.swift",
        "DirectoryStore_Hardening_Tests.swift",
        "FlushPolicy_Tests.swift",
        "HTTPClient_Tests.swift",
        "JSON_Tests.swift",
        "KeyPath_Tests.swift",
        "MemoryLeak_Tests.swift",
        "ObjC_Tests.swift",
        "Retry_Tests/FlushData_Tests.swift",
        "Retry_Tests/HttpConfig_Tests.swift",
        "Retry_Tests/RetryChain_Tests.swift",
        "Retry_Tests/RetryStateMachine_Tests.swift",
        "Retry_Tests/RetryState_Tests.swift",
        "Retry_Tests/RetryTypes_Tests.swift",
        "Retry_Tests/Storage_RetryState_Tests.swift",
        "Storage_Tests.swift",
        "StressTests.swift",
        "Support/TestUtilities.swift",
        "Telemetry_Tests.swift",
        "Timeline_Tests.swift",
        "UserAgentTests.swift",
        "Waiting_Tests.swift",
        "WindowsVendorSystem_Tests.swift",
        "XCTestManifests.swift",
        "iOSLifecycle_Tests.swift"
      ],
      "target_dependencies" : [
        "Segment"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Segment",
      "module_type" : "SwiftTarget",
      "name" : "Segment",
      "path" : "Sources/Segment",
      "product_dependencies" : [
        "Sovran",
        "JSONSafeEncoding"
      ],
      "product_memberships" : [
        "Segment"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Segment/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "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/JSONKeyPath.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/Retry/HttpConfig.swift",
        "Utilities/Retry/RetryState.swift",
        "Utilities/Retry/RetryStateMachine.swift",
        "Utilities/Retry/RetryTypes.swift",
        "Utilities/Retry/TimeProvider.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",
        "Waiting.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7bfd71e9384436264431030299dc8a2d42d0664a168cfa1a5dd84c9bc592ccf
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Done.