The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Amplitude-Swift, reference main (414bff), with Swift 6.1 for macOS (SPM) on 13 Sep 2025 01:09:46 UTC.

Swift 6 data race errors: 19

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 InferSendableFromCaptures

Build Log

11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
   |                       |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
   |                       |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
   |                       |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
   |                       |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
   |                       |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 |     public static let all: AutocaptureOptions = [
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |         .sessions,
21 |         .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:26:27: warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |         public static let flushEventsOnClose = true
 25 |         public static let maxQueuedEventCount = -1
 26 |         public static let autocaptureOptions: AutocaptureOptions = .sessions
    |                           |- warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'autocaptureOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:3:15: note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:29:27: warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
    |                           |- warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'trackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | public class TrackingOptions {
    |              `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
 11 |
 12 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:30:27: warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
    |                           |- warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'networkTrackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |         public static let interactionsOptions = InteractionsOptions()
 32 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 66 | ]
 67 |
 68 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 69 |     public enum URLPattern {
 70 |         case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:31:27: warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
    |                           |- warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'interactionsOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     }
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 |     public let rageClick: RageClickOptions
12 |     public let deadClick: DeadClickOptions
[70/95] Compiling AmplitudeSwift DeepLinkOpenedEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:178:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
176 |
177 |         trackingQueue.async { [self] in
178 |             self.trimQueuedEvents()
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
179 |         }
180 |         trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:373:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
371 |     public func flush() -> Amplitude {
372 |         trackingQueue.async {
373 |             self.timeline.apply { plugin in
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
374 |                 if let _plugin = plugin as? EventPlugin {
375 |                     _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:411:33: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
409 |             let sessionEvents: [BaseEvent]
410 |             if timestamp >= 0 {
411 |                 sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
    |                                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
412 |             } else {
413 |                 sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:418:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
416 |                 e.userId = e.userId ?? identity.userId
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
419 |             }
420 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:417:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
418 |                 self.timeline.processEvent(event: e)
419 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
458 |
459 |         trackingQueue.async { [self, identity, inForeground] in
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
458 |
459 |         trackingQueue.async { [self, identity, inForeground] in
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                                                            `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:11:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
    |            `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
 12 |     public var eventType: String
 13 |     public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:464:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
462 |                 e.userId = e.userId ?? identity.userId
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
465 |             }
466 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:463:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
464 |                 self.timeline.processEvent(event: e)
465 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:477:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
475 |         trackingQueue.async { [self, identity] in
476 |             // set inForeground to false to represent state before event was fired
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:477:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
475 |         trackingQueue.async { [self, identity] in
476 |             // set inForeground to false to represent state before event was fired
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                                                            `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:11:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
    |            `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
 12 |     public var eventType: String
 13 |     public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:481:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
479 |                 e.userId = e.userId ?? identity.userId
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
482 |             }
483 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:480:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |                 self.timeline.processEvent(event: e)
482 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:489:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
487 |         inForeground = false
488 |         trackingQueue.async { [self] in
489 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
490 |         }
491 |         if configuration.flushEventsOnClose == true {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:10:23: warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 8 |     }
 9 |
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
   |                       |- warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'sessions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:11:23: warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
   |                       |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
   |                       |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
   |                       |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
   |                       |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
   |                       |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 |     public static let all: AutocaptureOptions = [
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |         .sessions,
21 |         .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:26:27: warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |         public static let flushEventsOnClose = true
 25 |         public static let maxQueuedEventCount = -1
 26 |         public static let autocaptureOptions: AutocaptureOptions = .sessions
    |                           |- warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'autocaptureOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:3:15: note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:29:27: warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
    |                           |- warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'trackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | public class TrackingOptions {
    |              `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
 11 |
 12 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:30:27: warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
    |                           |- warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'networkTrackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |         public static let interactionsOptions = InteractionsOptions()
 32 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 66 | ]
 67 |
 68 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 69 |     public enum URLPattern {
 70 |         case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:31:27: warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
    |                           |- warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'interactionsOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     }
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 |     public let rageClick: RageClickOptions
12 |     public let deadClick: DeadClickOptions
[71/95] Compiling AmplitudeSwift ElementInteractionEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:178:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
176 |
177 |         trackingQueue.async { [self] in
178 |             self.trimQueuedEvents()
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
179 |         }
180 |         trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:373:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
371 |     public func flush() -> Amplitude {
372 |         trackingQueue.async {
373 |             self.timeline.apply { plugin in
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
374 |                 if let _plugin = plugin as? EventPlugin {
375 |                     _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:411:33: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
409 |             let sessionEvents: [BaseEvent]
410 |             if timestamp >= 0 {
411 |                 sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
    |                                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
412 |             } else {
413 |                 sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:418:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
416 |                 e.userId = e.userId ?? identity.userId
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
419 |             }
420 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:416:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
414 |             }
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
418 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:417:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
415 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
416 |                 e.userId = e.userId ?? identity.userId
417 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
418 |                 self.timeline.processEvent(event: e)
419 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
458 |
459 |         trackingQueue.async { [self, identity, inForeground] in
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
458 |
459 |         trackingQueue.async { [self, identity, inForeground] in
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                                                            `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:11:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
    |            `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
 12 |     public var eventType: String
 13 |     public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:464:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
462 |                 e.userId = e.userId ?? identity.userId
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
465 |             }
466 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:462:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
460 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
464 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:463:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
461 |             events.forEach { e in
462 |                 e.userId = e.userId ?? identity.userId
463 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
464 |                 self.timeline.processEvent(event: e)
465 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:477:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
475 |         trackingQueue.async { [self, identity] in
476 |             // set inForeground to false to represent state before event was fired
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:477:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
475 |         trackingQueue.async { [self, identity] in
476 |             // set inForeground to false to represent state before event was fired
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                                                            `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:11:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
    |            `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
 12 |     public var eventType: String
 13 |     public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:481:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
479 |                 e.userId = e.userId ?? identity.userId
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
    |                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
482 |             }
483 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:479:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
477 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
481 |                 self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:480:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
478 |             events.forEach { e in
479 |                 e.userId = e.userId ?? identity.userId
480 |                 e.deviceId = e.deviceId ?? identity.deviceId
    |                                            `- warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |                 self.timeline.processEvent(event: e)
482 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:10:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
 8 | import AmplitudeCore
 9 |
10 | public struct Identity: AnalyticsIdentity {
   |               `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
11 |     public var userId: String?
12 |     public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:489:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
  2 | import Foundation
  3 |
  4 | public class Amplitude {
    |              `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
  5 |
  6 |     public private(set) var configuration: Configuration
    :
487 |         inForeground = false
488 |         trackingQueue.async { [self] in
489 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
490 |         }
491 |         if configuration.flushEventsOnClose == true {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:10:23: warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 8 |     }
 9 |
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
   |                       |- warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'sessions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:11:23: warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
   |                       |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |     public static let sessions            = AutocaptureOptions(rawValue: 1 << 0)
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
   |                       |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
11 |     public static let appLifecycles       = AutocaptureOptions(rawValue: 1 << 1)
12 |     public static let screenViews         = AutocaptureOptions(rawValue: 1 << 2)
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
   |                       |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
13 |     public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 |     /// Won't work on watchOS
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
   |                       |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
15 |     public static let networkTracking     = AutocaptureOptions(rawValue: 1 << 4)
16 |     /// Rage Click and Dead Click detection
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
   |                       |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
17 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 |     public static let all: AutocaptureOptions = [
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |         .sessions,
21 |         .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:26:27: warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |         public static let flushEventsOnClose = true
 25 |         public static let maxQueuedEventCount = -1
 26 |         public static let autocaptureOptions: AutocaptureOptions = .sessions
    |                           |- warning: static property 'autocaptureOptions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'autocaptureOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:3:15: note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct AutocaptureOptions: OptionSet {
   |               `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:29:27: warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 27 |         public static let migrateLegacyData = true
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
    |                           |- warning: static property 'trackingOptions' is not concurrency-safe because non-'Sendable' type 'TrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'trackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
  8 | import Foundation
  9 |
 10 | public class TrackingOptions {
    |              `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
 11 |
 12 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:30:27: warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 28 |         public static let enableAutoCaptureRemoteConfig = true
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
    |                           |- warning: static property 'networkTrackingOptions' is not concurrency-safe because non-'Sendable' type 'NetworkTrackingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'networkTrackingOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |         public static let interactionsOptions = InteractionsOptions()
 32 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 66 | ]
 67 |
 68 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 69 |     public enum URLPattern {
 70 |         case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:31:27: warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 29 |         public static let trackingOptions = TrackingOptions()
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         public static let interactionsOptions = InteractionsOptions()
    |                           |- warning: static property 'interactionsOptions' is not concurrency-safe because non-'Sendable' type 'InteractionsOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'interactionsOptions' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     }
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 |     public let rageClick: RageClickOptions
12 |     public let deadClick: DeadClickOptions
[72/95] Compiling AmplitudeSwift NetworkSwizzler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[73/95] Compiling AmplitudeSwift ObjectFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[74/95] Compiling AmplitudeSwift OutputFileStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[75/95] Compiling AmplitudeSwift PersistentStorageResponseHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[76/95] Compiling AmplitudeSwift QueueTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[77/95] Compiling AmplitudeSwift SandboxHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[78/95] Compiling AmplitudeSwift UrlExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[79/95] Compiling AmplitudeSwift resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
 18 | }
 19 |
 20 | class NetworkSwizzler {
    |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
 21 |
 22 |     static let shared = NetworkSwizzler()
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' 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
 23 |
 24 |     private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 46 |         MethodSwizzler.swizzleInstanceMethod(
 47 |             for: URLSession.self,
 48 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 49 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 50 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 51 |         MethodSwizzler.swizzleInstanceMethod(
 52 |             for: URLSession.self,
 53 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 54 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 55 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 76 |         MethodSwizzler.unswizzleInstanceMethod(
 77 |             for: URLSession.self,
 78 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 79 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
 80 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 81 |         MethodSwizzler.unswizzleInstanceMethod(
 82 |             for: URLSession.self,
 83 |             originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
    |                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 84 |             swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
 85 |         )
[80/95] Compiling AmplitudeSwift AppUtil.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[81/95] Compiling AmplitudeSwift VendorSystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[82/95] Compiling AmplitudeSwift FrustrationIgnoreExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[83/95] Compiling AmplitudeSwift FrustrationInteractions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[84/95] Compiling AmplitudeSwift IOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[85/95] Compiling AmplitudeSwift UIKitElementInteractions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[86/95] Compiling AmplitudeSwift UIKitScreenViews.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[87/95] Compiling AmplitudeSwift WatchOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Vendors/VendorSystem.swift:35: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
33 |     }
34 |
35 |     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
36 |         #if (os(iOS) || os(tvOS) || os(visionOS) || targetEnvironment(macCatalyst)) && !AMPLITUDE_DISABLE_UIKIT
37 |             return IOSVendorSystem()
[88/95] Compiling AmplitudeSwift AnalyticsConnectorPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[89/95] Compiling AmplitudeSwift BasePlugins.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[90/95] Compiling AmplitudeSwift ContextPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[91/95] Compiling AmplitudeSwift DestinationPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[92/95] Compiling AmplitudeSwift IdentityEventSender.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[93/95] Compiling AmplitudeSwift MacOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[94/95] Compiling AmplitudeSwift NetworkConnectivityCheckerPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
[95/95] Compiling AmplitudeSwift NetworkTrackingPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14: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
 12 |
 13 | class ContextPlugin: BeforePlugin {
 14 |     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
 15 |
 16 |     override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: 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
18 |
19 |         override init() {
20 |             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
21 |             super.init()
22 |             setupListeners()
/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/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 |     func start(queue: DispatchQueue) {
34 |         monitor.pathUpdateHandler = subject.send
   |                                   `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 |         networkPathPublisher = subject
36 |             .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:427:13: warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
425 |
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
    |             |- warning: var 'sendTimeKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'sendTimeKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'sendTimeKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
428 | private var responseDataKey: UInt8 = 0
429 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:428:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
426 | // Key for associated object
427 | private var sendTimeKey: UInt8 = 0
428 | private var responseDataKey: UInt8 = 0
    |             |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 |
430 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:248:31: warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
215 | }
216 |
217 | class NetworkTrackingPlugin: UtilityPlugin, NetworkTaskListener {
    |       `- note: class 'NetworkTrackingPlugin' does not conform to the 'Sendable' protocol
218 |
219 |     var options: CompiledNetworkTrackingOptions?
    :
246 |                 .remoteConfigClient
247 |                 .subscribe(key: Constants.RemoteConfig.Key.autocapture) { [weak self] config, _, _ in
248 |                     guard let self else {
    |                               `- warning: capture of 'self' with non-sendable type 'NetworkTrackingPlugin?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
249 |                         return
250 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:302:72: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
300 |
301 |         if let remoteConfigSubscription {
302 |             amplitude?.amplitudeContext.remoteConfigClient.unsubscribe(remoteConfigSubscription)
    |                                                                        `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
303 |         }
304 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:404:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
402 |         if rule.responseBody != nil {
403 |             // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
    |                                                                              `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:406:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
404 |             networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
405 |         } else {
406 |             networkTrackingQueue.async(execute: sendEventAction)
    |                                                 `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
407 |         }
408 |     }
Build complete! (13.56s)
warning: 'amplitudecore-swift': /Users/admin/builder/spi-builder-workspace/.build/checkouts/AmplitudeCore-Swift/Package@swift-5.9.swift:9:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
 7 |     platforms: [
 8 |         .macOS(.v10_13),
 9 |         .iOS(.v11),
   |               `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
10 |         .tvOS(.v11),
11 |         .watchOS(.v4),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/AmplitudeCore-Swift/Package@swift-5.9.swift:10:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
 8 |         .macOS(.v10_13),
 9 |         .iOS(.v11),
10 |         .tvOS(.v11),
   |                `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
11 |         .watchOS(.v4),
12 |         .visionOS(.v1),
Build complete.
{
  "dependencies" : [
    {
      "identity" : "analytics-connector-ios",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/amplitude/analytics-connector-ios.git"
    },
    {
      "identity" : "amplitudecore-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/amplitude/AmplitudeCore-Swift.git"
    }
  ],
  "manifest_display_name" : "Amplitude-Swift",
  "name" : "Amplitude-Swift",
  "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.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "AmplitudeSwift",
      "targets" : [
        "AmplitudeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AmplitudeSwift",
      "module_type" : "SwiftTarget",
      "name" : "AmplitudeSwift",
      "path" : "Sources/Amplitude",
      "product_dependencies" : [
        "AmplitudeCoreFramework",
        "AnalyticsConnector"
      ],
      "product_memberships" : [
        "AmplitudeSwift"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Amplitude.swift",
        "AutocaptureOptions.swift",
        "Configuration.swift",
        "ConsoleLogger.swift",
        "Constants.swift",
        "DefaultTrackingOptions.swift",
        "Events/BaseEvent.swift",
        "Events/DeepLinkOpenedEvent.swift",
        "Events/ElementInteractionEvent.swift",
        "Events/EventOptions.swift",
        "Events/GroupIdentifyEvent.swift",
        "Events/Identify.swift",
        "Events/IdentifyEvent.swift",
        "Events/NetworkRequestEvent.swift",
        "Events/Revenue.swift",
        "Events/RevenueEvent.swift",
        "Events/ScreenViewedEvent.swift",
        "Identity.swift",
        "InteractionsOptions.swift",
        "Mediator.swift",
        "Migration/LegacyDatabaseStorage.swift",
        "Migration/RemnantDataMigration.swift",
        "Migration/StoragePrefixMigration.swift",
        "ObjC/ObjCAmplitude.swift",
        "ObjC/ObjCAutocaptureOptions.swift",
        "ObjC/ObjCBaseEvent.swift",
        "ObjC/ObjCConfiguration.swift",
        "ObjC/ObjCDeepLinkOpenedEvent.swift",
        "ObjC/ObjCDefaultTrackingOptions.swift",
        "ObjC/ObjCEventOptions.swift",
        "ObjC/ObjCIdentify.swift",
        "ObjC/ObjCIngestionMetadata.swift",
        "ObjC/ObjCInteractionsOptions.swift",
        "ObjC/ObjCLoggerProvider.swift",
        "ObjC/ObjCNetworkConnectivityCheckerPlugin.swift",
        "ObjC/ObjCNetworkTrackingOptions.swift",
        "ObjC/ObjCPlan.swift",
        "ObjC/ObjCPlugin.swift",
        "ObjC/ObjCProperties.swift",
        "ObjC/ObjCRevenue.swift",
        "ObjC/ObjCScreenViewedEvent.swift",
        "ObjC/ObjCStorage.swift",
        "ObjC/ObjCTrackingOptions.swift",
        "Plugins/AmplitudeDestinationPlugin.swift",
        "Plugins/AnalyticsConnectorIdentityPlugin.swift",
        "Plugins/AnalyticsConnectorPlugin.swift",
        "Plugins/BasePlugins.swift",
        "Plugins/ContextPlugin.swift",
        "Plugins/DestinationPlugin.swift",
        "Plugins/IdentityEventSender.swift",
        "Plugins/Mac/MacOSLifecycleMonitor.swift",
        "Plugins/NetworkConnectivityCheckerPlugin.swift",
        "Plugins/NetworkTrackingPlugin.swift",
        "Plugins/Vendors/AppUtil.swift",
        "Plugins/Vendors/VendorSystem.swift",
        "Plugins/iOS/FrustrationIgnoreExtensions.swift",
        "Plugins/iOS/FrustrationInteractions.swift",
        "Plugins/iOS/IOSLifecycleMonitor.swift",
        "Plugins/iOS/UIKitElementInteractions.swift",
        "Plugins/iOS/UIKitScreenViews.swift",
        "Plugins/watchOS/WatchOSLifecycleMonitor.swift",
        "Sessions.swift",
        "Storages/InMemoryStorage.swift",
        "Storages/PersistentStorage.swift",
        "Timeline.swift",
        "TrackingOptions.swift",
        "Types.swift",
        "Utilities/Atomic.swift",
        "Utilities/CodableExtension.swift",
        "Utilities/DefaultEventUtils.swift",
        "Utilities/Diagonostics.swift",
        "Utilities/DispatchQueueHolder.swift",
        "Utilities/EventPipeline.swift",
        "Utilities/HttpClient.swift",
        "Utilities/IdentifyInterceptor.swift",
        "Utilities/MethodSwizzler.swift",
        "Utilities/MiscellaneousExtension.swift",
        "Utilities/NetworkSwizzler.swift",
        "Utilities/ObjectFilter.swift",
        "Utilities/OutputFileStream.swift",
        "Utilities/PersistentStorageResponseHandler.swift",
        "Utilities/QueueTimer.swift",
        "Utilities/SandboxHelper.swift",
        "Utilities/UrlExtension.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Amplitude_SwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "Amplitude-SwiftTests",
      "path" : "Tests/AmplitudeTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/AmplitudeTests/Migration/legacy_v3.sqlite",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/AmplitudeTests/Migration/legacy_v4.sqlite",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Amplitude+Extensions.swift",
        "AmplitudeIOSTests.swift",
        "AmplitudeSessionTests.swift",
        "AmplitudeTests.swift",
        "AutocaptureOptionsTests.swift",
        "AutocaptureRemoteConfigTests.swift",
        "ConfigurationTests.swift",
        "ConsoleLoggerTests.swift",
        "Events/BaseEventTests.swift",
        "Events/GroupIdentifyEventTests.swift",
        "Events/IdentifyEventTests.swift",
        "Events/IdentifyTests.swift",
        "Events/RevenueEventTests.swift",
        "Events/RevenueTests.swift",
        "IdentityTests.swift",
        "Migration/LegacyDatabaseStorageTests.swift",
        "Migration/RemnantDataMigrationTests.swift",
        "Migration/StoragePrefixMigrationTests.swift",
        "NetworkTrackingPlugin+Extensions.swift",
        "Plugins/NetworkConnectivityCheckerPluginTests.swift",
        "Plugins/NetworkTrackingPluginTest.swift",
        "Plugins/UIKitScreenViewsPluginTests.swift",
        "Plugins/UIKitUserInteractionPluginTest.swift",
        "Storages/PersistentStorageTests.swift",
        "Supports/FakeURLProtocol.swift",
        "Supports/TestUtilities.swift",
        "TimelineTests.swift",
        "TypesTests.swift",
        "Utilities/DiagnosticsTests.swift",
        "Utilities/EventPipelineTests.swift",
        "Utilities/HttpClientTests.swift",
        "Utilities/IdentifyInterceptorTests.swift",
        "Utilities/MethodSwizzlerTest.swift",
        "Utilities/ObjectFilterTests.swift",
        "Utilities/PersistentStorageResponseHandlerTests.swift",
        "Utilities/QueueTimeTests.swift",
        "Utilities/SandboxHelperTests.swift",
        "Utilities/TimeIntervalExtensionsTests.swift",
        "Utilities/UrlExtensionTests.swift"
      ],
      "target_dependencies" : [
        "AmplitudeSwift"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.9"
}
Done.