The Swift Package Index logo.Swift Package Index

Build Information

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

Swift 6 data race errors: 23

Build Command

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

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
[49/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
[50/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
[51/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
[52/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
[53/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
[54/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
[55/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
[56/87] Compiling Segment CompletionGroup.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[57/87] Compiling Segment JSON.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[58/87] Compiling Segment JSONKeyPath.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[59/87] Compiling Segment Logging.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[60/87] Compiling Segment HTTPClient.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[61/87] Compiling Segment HTTPSession+Apple.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[62/87] Compiling Segment HTTPSession.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[63/87] Compiling Segment Noncodable.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
48 |         case .asynchronous:
49 |             queue.async {
50 |                 task()
   |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 |             }
52 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:58:16: warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 56 |     case object([String: JSON])
 57 |
 58 |     static var jsonNonConformingNumberStrategy: JSONSafeEncoder.NonConformingFloatEncodingStrategy = .zero
    |                |- warning: static property 'jsonNonConformingNumberStrategy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'jsonNonConformingNumberStrategy' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'jsonNonConformingNumberStrategy' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |
 60 |     internal enum JSONError: Error {
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
562 | fileprivate extension NSNumber {
563 |     static let trueValue = NSNumber(value: true)
564 |     static let trueObjCType = trueValue.objCType
    |                |- warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'trueObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
564 |     static let trueObjCType = trueValue.objCType
565 |     static let falseValue = NSNumber(value: false)
566 |     static let falseObjCType = falseValue.objCType
    |                |- warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<Int8>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'falseObjCType' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
567 |
568 |     func isBool() -> Bool {
Swift.UnsafePointer:1:23: note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/host/spi-builder-workspace/Sources/Segment/Utilities/JSONKeyPath.swift:48:25: warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |     }
 47 |
 48 |     internal static var handlers: [KeyPathHandler] = [PathHandler(), IfHandler(), BasicHandler()]
    |                         |- warning: static property 'handlers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'handlers' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: add '@MainActor' to make static property 'handlers' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |     static func register(_ handler: KeyPathHandler) { handlers.insert(handler, at: 0) }
 50 |     static func handlerFor(keyPath: JSONKeyPath, input: Any?) -> KeyPathHandler? {
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:110:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
108 |
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
112 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:111:128: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
109 |         let dataTask = session.uploadTask(with: urlRequest, fromFile: batch) { [weak self] (data, response, error) in
110 |             guard let self else { return }
111 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchFileName, completion: completion)
    |                                                                                                                                |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                                `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
112 |         }
113 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:143:23: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
141 |
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
    |                       `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
145 |         }
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:144:122: warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
142 |         let dataTask = session.uploadTask(with: urlRequest, from: data) { [weak self] (data, response, error) in
143 |             guard let self else { return }
144 |             handleResponse(data: data, response: response, error: error, url: uploadURL, batchFile: batchId, completion: completion)
    |                                                                                                                          |- warning: capture of 'completion' with non-sendable type '(Result<Bool, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                                                                          `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 |         }
146 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:200:17: warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 20 | }
 21 |
 22 | public class HTTPClient {
    |              `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 23 |     private static let defaultAPIHost = "api.segment.io/v1"
 24 |     private static let defaultCDNHost = "cdn-settings.segment.com/v1"
    :
198 |         let dataTask = session.dataTask(with: urlRequest) { [weak self] (data, response, error) in
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
201 |                 completion(false, nil)
202 |                 return
/host/spi-builder-workspace/Sources/Segment/Utilities/Networking/HTTPClient.swift:201:17: warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
199 |             if let error = error {
200 |                 self?.analytics?.reportInternalError(AnalyticsError.settingsFail(AnalyticsError.networkUnknown(settingsURL, error)))
201 |                 completion(false, nil)
    |                 |- warning: capture of 'completion' with non-sendable type '(Bool, Settings?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
202 |                 return
203 |             }
[64/87] Compiling Segment OutputFileStream.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[65/87] Compiling Segment CountBasedFlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[66/87] Compiling Segment FlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[67/87] Compiling Segment IntervalBasedFlushPolicy.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[68/87] Compiling Segment QueueTimer.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[69/87] Compiling Segment HttpConfig.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[70/87] Compiling Segment RetryState.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[71/87] Compiling Segment RetryStateMachine.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/QueueTimer.swift:23:16: warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |     @Atomic var state: State = .suspended
22 |
23 |     static var timers = [QueueTimer]()
   |                |- warning: static property 'timers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'timers' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'timers' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 |     static func schedule(interval: TimeInterval, immediate: Bool = false, queue: DispatchQueue = .main, handler: @escaping () -> Void) {
[72/87] Compiling Segment LineStream.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
 37 |     public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
    :
207 |         let task = session.dataTask(with: request) { data, response, error in
208 |             if let error = error {
209 |                 self.errorHandler?(error)
    |                 `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 |                 return
211 |             }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |     #endif
37 |
38 |     @Atomic internal static var _value: String = ""
   |                                 |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                 |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
   |                                 |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
   |                                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Inquire as to whether we are within a Unit Testing environment.
 27 | #if DEBUG
 28 | internal var isUnitTesting: Bool = {
    |              |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |     // this will work on apple platforms, but fail on linux.
 30 |     if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 | #endif
 49 |
 50 | internal var isAppExtension: Bool = {
    |              |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     if Bundle.main.bundlePath.hasSuffix(".appex") {
 52 |         return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 12 |     func asyncAndWait(execute workItem: DispatchWorkItem) {
 13 |         async {
 14 |             workItem.perform()
    |             `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 15 |         }
 16 |         workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.10, iOS 8.0, *)
 2 | public class DispatchWorkItem {
   |              `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 3 |     public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
 4 |     public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  6 | //
  7 |
  8 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  9 |
 10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | enum SegmentISO8601DateFormatter {
11 |     static let shared: ISO8601DateFormatter = {
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         let formatter = ISO8601DateFormatter()
13 |         formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
/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
[73/87] Compiling Segment Telemetry.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
 37 |     public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
    :
207 |         let task = session.dataTask(with: request) { data, response, error in
208 |             if let error = error {
209 |                 self.errorHandler?(error)
    |                 `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 |                 return
211 |             }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |     #endif
37 |
38 |     @Atomic internal static var _value: String = ""
   |                                 |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                 |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
   |                                 |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
   |                                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Inquire as to whether we are within a Unit Testing environment.
 27 | #if DEBUG
 28 | internal var isUnitTesting: Bool = {
    |              |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |     // this will work on apple platforms, but fail on linux.
 30 |     if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 | #endif
 49 |
 50 | internal var isAppExtension: Bool = {
    |              |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     if Bundle.main.bundlePath.hasSuffix(".appex") {
 52 |         return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 12 |     func asyncAndWait(execute workItem: DispatchWorkItem) {
 13 |         async {
 14 |             workItem.perform()
    |             `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 15 |         }
 16 |         workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.10, iOS 8.0, *)
 2 | public class DispatchWorkItem {
   |              `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 3 |     public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
 4 |     public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  6 | //
  7 |
  8 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  9 |
 10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | enum SegmentISO8601DateFormatter {
11 |     static let shared: ISO8601DateFormatter = {
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         let formatter = ISO8601DateFormatter()
13 |         formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
/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
[74/87] Compiling Segment UserAgent.swift
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:35:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Telemetry' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
 37 |     public static let INVOKE_METRIC = "\(METRICS_BASE_TAG).invoke"
/host/spi-builder-workspace/Sources/Segment/Utilities/Telemetry.swift:209:17: warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 32 | /// Errors are sent with a write key, which can be disabled by setting Telemetry.shared.sendWriteKeyOnError to false.
 33 | /// All data is downsampled and no PII is collected.
 34 | public class Telemetry: Subscriber {
    |              `- note: class 'Telemetry' does not conform to the 'Sendable' protocol
 35 |     public static let shared = Telemetry(session: HTTPSessions.urlSession())
 36 |     private static let METRICS_BASE_TAG = "analytics_mobile"
    :
207 |         let task = session.dataTask(with: request) { data, response, error in
208 |             if let error = error {
209 |                 self.errorHandler?(error)
    |                 `- warning: capture of 'self' with non-sendable type 'Telemetry' in a '@Sendable' closure; this is an error in the Swift 6 language mode
210 |                 return
211 |             }
/host/spi-builder-workspace/Sources/Segment/Utilities/UserAgent.swift:38:33: warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |     #endif
37 |
38 |     @Atomic internal static var _value: String = ""
   |                                 |- warning: static property '_value' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                 |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
   |                                 |- note: add '@MainActor' to make static property '_value' part of global actor 'MainActor'
   |                                 `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     internal static let lock = NSLock()
40 |
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:28:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// Inquire as to whether we are within a Unit Testing environment.
 27 | #if DEBUG
 28 | internal var isUnitTesting: Bool = {
    |              |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |     // this will work on apple platforms, but fail on linux.
 30 |     if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:50:14: warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 | #endif
 49 |
 50 | internal var isAppExtension: Bool = {
    |              |- warning: var 'isAppExtension' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'isAppExtension' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make var 'isAppExtension' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     if Bundle.main.bundlePath.hasSuffix(".appex") {
 52 |         return true
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:14:13: warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 12 |     func asyncAndWait(execute workItem: DispatchWorkItem) {
 13 |         async {
 14 |             workItem.perform()
    |             `- warning: capture of 'workItem' with non-sendable type 'DispatchWorkItem' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 15 |         }
 16 |         workItem.wait()
Dispatch.DispatchWorkItem:2:14: note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.10, iOS 8.0, *)
 2 | public class DispatchWorkItem {
   |              `- note: class 'DispatchWorkItem' does not conform to the 'Sendable' protocol
 3 |     public init(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], block: @escaping @convention(block) () -> ())
 4 |     public func perform()
/host/spi-builder-workspace/Sources/Segment/Utilities/Utils.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  6 | //
  7 |
  8 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  9 |
 10 | #if os(Linux) || os(Windows)
/host/spi-builder-workspace/Sources/Segment/Utilities/iso8601.swift:11:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | enum SegmentISO8601DateFormatter {
11 |     static let shared: ISO8601DateFormatter = {
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |         let formatter = ISO8601DateFormatter()
13 |         formatter.formatOptions.update(with: .withFractionalSeconds)
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
/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
[75/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
[76/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
[77/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
[78/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
[79/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
[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! (35.87s)
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.