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 v1.14.0 (8555a5), with Swift 6.1 for macOS (SPM) on 23 Jul 2025 21:41:31 UTC.

Swift 6 data race errors: 18

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

484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:485: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
    :
483 |                 e.userId = e.userId ?? identity.userId
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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
486 |             }
487 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:483:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:484:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
484 |                 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
485 |                 self.timeline.processEvent(event: e)
486 |             }
/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:493: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
    :
491 |         inForeground = false
492 |         trackingQueue.async { [self] in
493 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
494 |         }
495 |         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 |     @_spi(Frustration)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:18: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 |
   :
16 |     /// Rage Click and Dead Click detection
17 |     @_spi(Frustration)
18 |     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
19 |
20 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:20: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 |
   :
18 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
19 |
20 |     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
21 |         .sessions,
22 |         .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 |         @_spi(Frustration)
/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 |         @_spi(Frustration)
 32 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:11:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
  9 | import ObjectiveC
 10 |
 11 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 12 |     public struct CaptureRule {
 13 |         public var hosts: [String]
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         @_spi(Frustration)
 32 |         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
 33 |     }
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:11:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 9 |
10 | @_spi(Frustration)
11 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
12 |     public let rageClick: RageClickOptions
13 |     public let deadClick: DeadClickOptions
[68/94] Compiling AmplitudeSwift BaseEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:182: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
    :
180 |
181 |         trackingQueue.async { [self] in
182 |             self.trimQueuedEvents()
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
183 |         }
184 |         trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:377: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
    :
375 |     public func flush() -> Amplitude {
376 |         trackingQueue.async {
377 |             self.timeline.apply { plugin in
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
378 |                 if let _plugin = plugin as? EventPlugin {
379 |                     _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:415: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
    :
413 |             let sessionEvents: [BaseEvent]
414 |             if timestamp >= 0 {
415 |                 sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
    |                                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
416 |             } else {
417 |                 sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:422: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
    :
420 |                 e.userId = e.userId ?? identity.userId
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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
423 |             }
424 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:421:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
421 |                 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
422 |                 self.timeline.processEvent(event: e)
423 |             }
/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: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
    :
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:464:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                                                            `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:468: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
    :
466 |                 e.userId = e.userId ?? identity.userId
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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
469 |             }
470 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:466:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:467:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
467 |                 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
468 |                 self.timeline.processEvent(event: e)
469 |             }
/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: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
    :
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:481:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                                                            `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:485: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
    :
483 |                 e.userId = e.userId ?? identity.userId
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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
486 |             }
487 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:483:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:484:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
484 |                 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
485 |                 self.timeline.processEvent(event: e)
486 |             }
/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:493: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
    :
491 |         inForeground = false
492 |         trackingQueue.async { [self] in
493 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
494 |         }
495 |         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 |     @_spi(Frustration)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:18: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 |
   :
16 |     /// Rage Click and Dead Click detection
17 |     @_spi(Frustration)
18 |     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
19 |
20 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:20: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 |
   :
18 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
19 |
20 |     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
21 |         .sessions,
22 |         .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 |         @_spi(Frustration)
/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 |         @_spi(Frustration)
 32 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:11:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
  9 | import ObjectiveC
 10 |
 11 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 12 |     public struct CaptureRule {
 13 |         public var hosts: [String]
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         @_spi(Frustration)
 32 |         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
 33 |     }
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:11:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 9 |
10 | @_spi(Frustration)
11 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
12 |     public let rageClick: RageClickOptions
13 |     public let deadClick: DeadClickOptions
[69/94] Compiling AmplitudeSwift DeepLinkOpenedEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:182: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
    :
180 |
181 |         trackingQueue.async { [self] in
182 |             self.trimQueuedEvents()
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
183 |         }
184 |         trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:377: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
    :
375 |     public func flush() -> Amplitude {
376 |         trackingQueue.async {
377 |             self.timeline.apply { plugin in
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
378 |                 if let _plugin = plugin as? EventPlugin {
379 |                     _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:415: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
    :
413 |             let sessionEvents: [BaseEvent]
414 |             if timestamp >= 0 {
415 |                 sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
    |                                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
416 |             } else {
417 |                 sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:422: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
    :
420 |                 e.userId = e.userId ?? identity.userId
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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
423 |             }
424 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:421:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
421 |                 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
422 |                 self.timeline.processEvent(event: e)
423 |             }
/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: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
    :
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:464:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                                                            `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:468: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
    :
466 |                 e.userId = e.userId ?? identity.userId
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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
469 |             }
470 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:466:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:467:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
467 |                 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
468 |                 self.timeline.processEvent(event: e)
469 |             }
/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: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
    :
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:481:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                                                            `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:485: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
    :
483 |                 e.userId = e.userId ?? identity.userId
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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
486 |             }
487 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:483:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:484:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
484 |                 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
485 |                 self.timeline.processEvent(event: e)
486 |             }
/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:493: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
    :
491 |         inForeground = false
492 |         trackingQueue.async { [self] in
493 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
494 |         }
495 |         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 |     @_spi(Frustration)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:18: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 |
   :
16 |     /// Rage Click and Dead Click detection
17 |     @_spi(Frustration)
18 |     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
19 |
20 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:20: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 |
   :
18 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
19 |
20 |     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
21 |         .sessions,
22 |         .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 |         @_spi(Frustration)
/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 |         @_spi(Frustration)
 32 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:11:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
  9 | import ObjectiveC
 10 |
 11 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 12 |     public struct CaptureRule {
 13 |         public var hosts: [String]
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         @_spi(Frustration)
 32 |         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
 33 |     }
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:11:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 9 |
10 | @_spi(Frustration)
11 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
12 |     public let rageClick: RageClickOptions
13 |     public let deadClick: DeadClickOptions
[70/94] Compiling AmplitudeSwift ElementInteractionEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:182: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
    :
180 |
181 |         trackingQueue.async { [self] in
182 |             self.trimQueuedEvents()
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
183 |         }
184 |         trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:377: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
    :
375 |     public func flush() -> Amplitude {
376 |         trackingQueue.async {
377 |             self.timeline.apply { plugin in
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
378 |                 if let _plugin = plugin as? EventPlugin {
379 |                     _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:415: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
    :
413 |             let sessionEvents: [BaseEvent]
414 |             if timestamp >= 0 {
415 |                 sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
    |                                 `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
416 |             } else {
417 |                 sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:420:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:422: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
    :
420 |                 e.userId = e.userId ?? identity.userId
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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
423 |             }
424 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:420:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
418 |             }
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 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
421 |                 e.deviceId = e.deviceId ?? identity.deviceId
422 |                 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:421:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
419 |             self.sessions.assignEventId(events: sessionEvents).forEach { e in
420 |                 e.userId = e.userId ?? identity.userId
421 |                 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
422 |                 self.timeline.processEvent(event: e)
423 |             }
/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: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
    :
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:464:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
462 |
463 |         trackingQueue.async { [self, identity, inForeground] in
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
    |                                                            `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
465 |             events.forEach { e in
466 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:466:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:468: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
    :
466 |                 e.userId = e.userId ?? identity.userId
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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
469 |             }
470 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:466:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
464 |             let events = self.sessions.processEvent(event: event, inForeground: inForeground)
465 |             events.forEach { e in
466 |                 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
467 |                 e.deviceId = e.deviceId ?? identity.deviceId
468 |                 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:467:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
465 |             events.forEach { e in
466 |                 e.userId = e.userId ?? identity.userId
467 |                 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
468 |                 self.timeline.processEvent(event: e)
469 |             }
/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: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
    :
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                          `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:481:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
479 |         trackingQueue.async { [self, identity] in
480 |             // set inForeground to false to represent state before event was fired
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
    |                                                            `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
482 |             events.forEach { e in
483 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
    |                                        `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:483:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:485: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
    :
483 |                 e.userId = e.userId ?? identity.userId
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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
486 |             }
487 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:483:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
481 |             let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
482 |             events.forEach { e in
483 |                 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
484 |                 e.deviceId = e.deviceId ?? identity.deviceId
485 |                 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:484:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
482 |             events.forEach { e in
483 |                 e.userId = e.userId ?? identity.userId
484 |                 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
485 |                 self.timeline.processEvent(event: e)
486 |             }
/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:493: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
    :
491 |         inForeground = false
492 |         trackingQueue.async { [self] in
493 |             self.sessions.lastEventTime = timestamp
    |             `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
494 |         }
495 |         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 |     @_spi(Frustration)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:18: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 |
   :
16 |     /// Rage Click and Dead Click detection
17 |     @_spi(Frustration)
18 |     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
19 |
20 |     public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:20: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 |
   :
18 |     public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
19 |
20 |     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
21 |         .sessions,
22 |         .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 |         @_spi(Frustration)
/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 |         @_spi(Frustration)
 32 |         public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:11:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
  9 | import ObjectiveC
 10 |
 11 | public struct NetworkTrackingOptions {
    |               `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
 12 |     public struct CaptureRule {
 13 |         public var hosts: [String]
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
 30 |         public static let networkTrackingOptions = NetworkTrackingOptions.default
 31 |         @_spi(Frustration)
 32 |         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
 33 |     }
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:11:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
 9 |
10 | @_spi(Frustration)
11 | public class InteractionsOptions {
   |              `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
12 |     public let rageClick: RageClickOptions
13 |     public let deadClick: DeadClickOptions
[71/94] Compiling AmplitudeSwift MiscellaneousExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[72/94] Compiling AmplitudeSwift NetworkSwizzler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[73/94] Compiling AmplitudeSwift OutputFileStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[74/94] Compiling AmplitudeSwift PersistentStorageResponseHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[75/94] Compiling AmplitudeSwift QueueTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[76/94] Compiling AmplitudeSwift SandboxHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[77/94] Compiling AmplitudeSwift UrlExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[78/94] Compiling AmplitudeSwift resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/MiscellaneousExtension.swift:11:13: warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // Cached ISO8601DateFormatter for better performance on older OS versions
11 | private let cachedISO8601Formatter: ISO8601DateFormatter = {
   |             |- warning: let 'cachedISO8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: add '@MainActor' to make let 'cachedISO8601Formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     let formatter = ISO8601DateFormatter()
13 |     formatter.formatOptions.insert(.withFractionalSeconds)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:17: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
13 | }
14 |
15 | class NetworkSwizzler {
   |       `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
16 |
17 |     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
18 |
19 |     private var listeners: [NetworkTaskListener] = []
[79/94] Compiling AmplitudeSwift NetworkTrackingPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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()
[80/94] Compiling AmplitudeSwift AppUtil.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift VendorSystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift FrustrationIgnoreExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift FrustrationInteractions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift IOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift UIKitElementInteractions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift UIKitScreenViews.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:150: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
148 |
149 | // Key for associated object
150 | 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
151 |
152 | extension URLSessionTask {
/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/94] Compiling AmplitudeSwift AnalyticsConnectorIdentityPlugin.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) }
[88/94] 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) }
[89/94] 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) }
[90/94] 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) }
[91/94] 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) }
[92/94] 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) }
[93/94] 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) }
[94/94] 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) }
Build complete! (13.05s)
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/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",
        "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/PersistentStorageResponseHandlerTests.swift",
        "Utilities/QueueTimeTests.swift",
        "Utilities/SandboxHelperTests.swift",
        "Utilities/TimeIntervalExtensionsTests.swift",
        "Utilities/UrlExtensionTests.swift"
      ],
      "target_dependencies" : [
        "AmplitudeSwift"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.9"
}
Done.