Build Information
Successful build of Segment, reference main (729d6a), with Swift 6.1 for macOS (SPM) on 30 Apr 2026 04:50:44 UTC.
Swift 6 data race errors: 30
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
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 |
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/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
[43/85] Compiling Segment Version.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/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
[44/85] Compiling Segment Waiting.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/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
[45/85] Compiling Segment resource_bundle_accessor.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 | CFDateFormatterRef _formatter;
/Users/admin/builder/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
[46/85] Compiling Segment JSON.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[47/85] Compiling Segment JSONKeyPath.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[48/85] Compiling Segment Logging.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[49/85] Compiling Segment HTTPClient.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[50/85] Compiling Segment HTTPSession+Apple.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[51/85] Compiling Segment HTTPSession.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[52/85] Compiling Segment Noncodable.swift
/Users/admin/builder/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 {
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:564:16: warning: static property 'trueObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/JSON.swift:566:16: warning: static property 'falseObjCType' is not concurrency-safe because non-'Sendable' type 'UnsafePointer<CChar>' (aka '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<CChar>' (aka '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)
/Users/admin/builder/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? {
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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
/Users/admin/builder/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 | }
[53/85] Compiling Segment TransientDB.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[54/85] Compiling Segment DirectoryStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[55/85] Compiling Segment MemoryStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[56/85] Compiling Segment FileHandleExt.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[57/85] Compiling Segment LineStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[58/85] Compiling Segment Telemetry.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/Storage/TransientDB.swift:50:27: warning: capture of 'self' with non-sendable type 'TransientDB?' in a '@Sendable' closure
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
51 | store.append(data: data)
52 | }
/Users/admin/builder/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
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
52 | }
53 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/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"
/Users/admin/builder/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 | }
[59/85] Compiling Segment OutputFileStream.swift
/Users/admin/builder/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) {
[60/85] Compiling Segment CountBasedFlushPolicy.swift
/Users/admin/builder/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) {
[61/85] Compiling Segment FlushPolicy.swift
/Users/admin/builder/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) {
[62/85] Compiling Segment IntervalBasedFlushPolicy.swift
/Users/admin/builder/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) {
[63/85] Compiling Segment QueueTimer.swift
/Users/admin/builder/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) {
[64/85] Compiling Segment HttpConfig.swift
/Users/admin/builder/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/85] Compiling Segment Settings.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[66/85] Compiling Segment Startup.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[67/85] Compiling Segment State.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[68/85] Compiling Segment Timeline.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[69/85] Compiling Segment Types.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[70/85] Compiling Segment Atomic.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[71/85] Compiling Segment CompletionGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Utilities/CompletionGroup.swift:50:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
48 | case .asynchronous:
49 | queue.async {
50 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
[72/85] Compiling Segment ObjCEvents.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[73/85] Compiling Segment ObjCPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[74/85] Compiling Segment Plugins.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[75/85] Compiling Segment Context.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[76/85] Compiling Segment DestinationMetadataPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[77/85] Compiling Segment DeviceToken.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[78/85] Compiling Segment LinuxLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Context.swift:23:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var staticContext = staticContextData()
23 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | internal let instanceId = UUID().uuidString
25 |
[79/85] Compiling Segment macOSLifecycleEvents.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[80/85] Compiling Segment macOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[81/85] Compiling Segment AppleUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[82/85] Compiling Segment LinuxUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[83/85] Compiling Segment VendorSystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[84/85] Compiling Segment WindowsUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
[85/85] Compiling Segment iOSDelegation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:15:16: warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
| |- warning: static property 'versionKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'versionKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'versionKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static var buildKey = "SEGBuildKeyV2"
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleEvents.swift:16:16: warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | class macOSLifecycleEvents: PlatformPlugin, macOSLifecycle {
15 | static var versionKey = "SEGVersionKey"
16 | static var buildKey = "SEGBuildKeyV2"
| |- warning: static property 'buildKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'buildKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'buildKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | let type = PluginType.before
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:46:16: warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | class macOSLifecycleMonitor: PlatformPlugin {
46 | static var specificName = "Segment_macOSLifecycleMonitor"
| |- warning: static property 'specificName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'specificName' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'specificName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | let type = PluginType.utility
48 | let name = specificName
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Mac/macOSLifecycleMonitor.swift:69:42: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
67 |
68 | required init() {
69 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
70 | setupListeners()
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/AppleUtils.swift:327:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' may have shared mutable state; this is an error in the Swift 6 language mode
322 | // MARK: -- Connection Status stuff
323 |
324 | internal class ConnectionMonitor {
| `- note: class 'ConnectionMonitor' does not conform to the 'Sendable' protocol
325 | private var timer: QueueTimer? = nil
326 |
327 | static let shared = ConnectionMonitor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ConnectionMonitor' 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
328 |
329 | @Atomic var connectionStatus: ConnectionStatus = .unknown
/Users/admin/builder/spi-builder-workspace/Sources/Segment/Plugins/Platforms/Vendors/VendorSystem.swift:72:16: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | static var current: VendorSystem = {
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | #if os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)
74 | return iOSVendorSystem()
Build complete! (15.90s)
Fetching https://github.com/segmentio/sovran-swift.git
Fetching https://github.com/segmentio/jsonsafeencoding-swift.git
[1/77] Fetching jsonsafeencoding-swift
[85/448] Fetching jsonsafeencoding-swift, sovran-swift
Fetched https://github.com/segmentio/sovran-swift.git from cache (0.75s)
Fetched https://github.com/segmentio/jsonsafeencoding-swift.git from cache (0.75s)
Computing version for https://github.com/segmentio/jsonsafeencoding-swift.git
Computed https://github.com/segmentio/jsonsafeencoding-swift.git at 2.0.0 (4.48s)
Computing version for https://github.com/segmentio/sovran-swift.git
Computed https://github.com/segmentio/sovran-swift.git at 1.1.2 (0.60s)
Creating working copy for https://github.com/segmentio/jsonsafeencoding-swift.git
Working copy of https://github.com/segmentio/jsonsafeencoding-swift.git resolved at 2.0.0
Creating working copy for https://github.com/segmentio/sovran-swift.git
Working copy of https://github.com/segmentio/sovran-swift.git resolved at 1.1.2
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" : "/Users/admin/builder/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" : "/Users/admin/builder/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"
}
Done.