Build Information
Successful build of Amplitude-Swift, reference main (bee1c6), with Swift 6.1 for macOS (SPM) on 12 Oct 2026 05:29:29 UTC.
Swift 6 data race errors: 19
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:508:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
508 | 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
509 | self.timeline.processEvent(event: e)
510 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:15:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
13 | import Foundation
14 |
15 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
| `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
16 | public var eventType: String
17 | public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:527:21: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
525 | e.userId = e.userId ?? identity.userId
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | 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
528 | }
529 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:526:48: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
526 | 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
527 | self.timeline.processEvent(event: e)
528 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:536:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
534 | inForeground = false
535 | trackingQueue.async { [self] in
536 | self.sessions.lastEventTime = timestamp
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
537 | }
538 | if configuration.flushEventsOnClose == true {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:10:23: warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
| |- warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sessions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:11:23: warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
| |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
| |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
| |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
| |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
| |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 | public static let all: AutocaptureOptions = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | .sessions,
21 | .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
30 | public static let flushEventsOnClose = true
31 | public static let maxQueuedEventCount = -1
32 | 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
33 | public static let migrateLegacyData = true
34 | 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:35: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
33 | public static let migrateLegacyData = true
34 | public static let enableAutoCaptureRemoteConfig = true
35 | 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
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class TrackingOptions {
| `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
11 |
12 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:36: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
34 | public static let enableAutoCaptureRemoteConfig = true
35 | public static let trackingOptions = TrackingOptions()
36 | 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
37 | public static let interactionsOptions = InteractionsOptions()
38 | public static let enableDiagnostics = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
66 | ]
67 |
68 | public struct NetworkTrackingOptions {
| `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
69 | public enum URLPattern {
70 | case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:37: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
35 | public static let trackingOptions = TrackingOptions()
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | 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
38 | public static let enableDiagnostics = true
39 | public static let enableRequestBodyCompression = false
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class InteractionsOptions {
| `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 | public let rageClick: RageClickOptions
12 | public let deadClick: DeadClickOptions
[79/97] Compiling AmplitudeSwift DeepLinkOpenedEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:216:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
214 |
215 | trackingQueue.async { [self] in
216 | self.trimQueuedEvents()
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
217 | }
218 | trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:414:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
412 | public func flush() -> Amplitude {
413 | trackingQueue.async {
414 | self.timeline.apply { plugin in
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
415 | if let _plugin = plugin as? EventPlugin {
416 | _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:452:33: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
450 | let sessionEvents: [BaseEvent]
451 | if timestamp >= 0 {
452 | sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
453 | } else {
454 | sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | 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
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:461:21: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
459 | e.userId = e.userId ?? identity.userId
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | 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
462 | }
463 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | 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
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:48: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | e.userId = e.userId ?? identity.userId
460 | 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
461 | self.timeline.processEvent(event: e)
462 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:505:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
503 |
504 | trackingQueue.async { [self, identity, inForeground] in
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:505:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
503 |
504 | trackingQueue.async { [self, identity, inForeground] in
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
| `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:15:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
13 | import Foundation
14 |
15 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
| `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
16 | public var eventType: String
17 | public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | 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
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:509:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
507 | e.userId = e.userId ?? identity.userId
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | 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
510 | }
511 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | 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
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:508:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
508 | 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
509 | self.timeline.processEvent(event: e)
510 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:15:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
13 | import Foundation
14 |
15 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
| `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
16 | public var eventType: String
17 | public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:527:21: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
525 | e.userId = e.userId ?? identity.userId
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | 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
528 | }
529 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:526:48: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
526 | 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
527 | self.timeline.processEvent(event: e)
528 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:536:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
534 | inForeground = false
535 | trackingQueue.async { [self] in
536 | self.sessions.lastEventTime = timestamp
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
537 | }
538 | if configuration.flushEventsOnClose == true {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:10:23: warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
| |- warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sessions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:11:23: warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
| |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
| |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
| |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
| |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
| |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 | public static let all: AutocaptureOptions = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | .sessions,
21 | .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
30 | public static let flushEventsOnClose = true
31 | public static let maxQueuedEventCount = -1
32 | 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
33 | public static let migrateLegacyData = true
34 | 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:35: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
33 | public static let migrateLegacyData = true
34 | public static let enableAutoCaptureRemoteConfig = true
35 | 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
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class TrackingOptions {
| `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
11 |
12 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:36: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
34 | public static let enableAutoCaptureRemoteConfig = true
35 | public static let trackingOptions = TrackingOptions()
36 | 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
37 | public static let interactionsOptions = InteractionsOptions()
38 | public static let enableDiagnostics = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
66 | ]
67 |
68 | public struct NetworkTrackingOptions {
| `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
69 | public enum URLPattern {
70 | case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:37: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
35 | public static let trackingOptions = TrackingOptions()
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | 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
38 | public static let enableDiagnostics = true
39 | public static let enableRequestBodyCompression = false
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class InteractionsOptions {
| `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 | public let rageClick: RageClickOptions
12 | public let deadClick: DeadClickOptions
[80/97] Compiling AmplitudeSwift ElementInteractionEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:216:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
214 |
215 | trackingQueue.async { [self] in
216 | self.trimQueuedEvents()
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
217 | }
218 | trackingQueue.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:414:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
412 | public func flush() -> Amplitude {
413 | trackingQueue.async {
414 | self.timeline.apply { plugin in
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
415 | if let _plugin = plugin as? EventPlugin {
416 | _plugin.flush()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:452:33: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
450 | let sessionEvents: [BaseEvent]
451 | if timestamp >= 0 {
452 | sessionEvents = self.sessions.startNewSession(timestamp: timestamp)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
453 | } else {
454 | sessionEvents = self.sessions.endCurrentSession()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | 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
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:461:21: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
459 | e.userId = e.userId ?? identity.userId
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | 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
462 | }
463 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:459:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
457 | if !configuration.optOut {
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | 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
460 | e.deviceId = e.deviceId ?? identity.deviceId
461 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:460:48: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
458 | self.sessions.assignEventId(events: sessionEvents).forEach { e in
459 | e.userId = e.userId ?? identity.userId
460 | 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
461 | self.timeline.processEvent(event: e)
462 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:505:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
503 |
504 | trackingQueue.async { [self, identity, inForeground] in
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:505:60: warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
503 |
504 | trackingQueue.async { [self, identity, inForeground] in
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
| `- warning: capture of 'event' with non-sendable type 'BaseEvent' in a '@Sendable' closure
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:15:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
13 | import Foundation
14 |
15 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
| `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
16 | public var eventType: String
17 | public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | 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
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:509:17: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
507 | e.userId = e.userId ?? identity.userId
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | 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
510 | }
511 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:507:40: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
505 | let events = self.sessions.processEvent(event: event, inForeground: inForeground)
506 | events.forEach { e in
507 | 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
508 | e.deviceId = e.deviceId ?? identity.deviceId
509 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:508:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
506 | events.forEach { e in
507 | e.userId = e.userId ?? identity.userId
508 | 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
509 | self.timeline.processEvent(event: e)
510 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:26: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:522:60: warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
520 | trackingQueue.async { [self, identity] in
521 | // set inForeground to false to represent state before event was fired
522 | let events = self.sessions.processEvent(event: dummySessionStartEvent, inForeground: false)
| `- warning: capture of 'dummySessionStartEvent' with non-sendable type 'BaseEvent' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Events/BaseEvent.swift:15:12: note: class 'BaseEvent' does not conform to the 'Sendable' protocol
13 | import Foundation
14 |
15 | open class BaseEvent: EventOptions, AnalyticsEvent, Codable {
| `- note: class 'BaseEvent' does not conform to the 'Sendable' protocol
16 | public var eventType: String
17 | public var eventProperties: [String: Any]?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
| `- warning: capture of 'identity' with non-sendable type 'Identity' in a '@Sendable' closure
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: capture of 'identity' with non-sendable type 'Identity' in an isolated closure; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:527:21: warning: capture of 'self' with non-sendable type 'Amplitude' in an isolated closure; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
525 | e.userId = e.userId ?? identity.userId
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | 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
528 | }
529 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:525:44: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
523 | if !configuration.optOut {
524 | events.forEach { e in
525 | 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
526 | e.deviceId = e.deviceId ?? identity.deviceId
527 | self.timeline.processEvent(event: e)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:526:48: warning: implicit capture of 'identity' requires that 'Identity' conforms to 'Sendable'; this is an error in the Swift 6 language mode
524 | events.forEach { e in
525 | e.userId = e.userId ?? identity.userId
526 | 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
527 | self.timeline.processEvent(event: e)
528 | }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Identity.swift:14:15: note: consider making struct 'Identity' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct Identity: AnalyticsIdentity {
| `- note: consider making struct 'Identity' conform to the 'Sendable' protocol
15 | public var userId: String?
16 | public var deviceId: String?
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Amplitude.swift:536:13: warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
7 | import Foundation
8 |
9 | public class Amplitude {
| `- note: class 'Amplitude' does not conform to the 'Sendable' protocol
10 |
11 | public private(set) var configuration: Configuration
:
534 | inForeground = false
535 | trackingQueue.async { [self] in
536 | self.sessions.lastEventTime = timestamp
| `- warning: capture of 'self' with non-sendable type 'Amplitude' in a '@Sendable' closure
537 | }
538 | if configuration.flushEventsOnClose == true {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:10:23: warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
8 | }
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
| |- warning: static property 'sessions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'sessions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:11:23: warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 |
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
| |- warning: static property 'appLifecycles' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'appLifecycles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:12:23: warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 | public static let sessions = AutocaptureOptions(rawValue: 1 << 0)
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
| |- warning: static property 'screenViews' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'screenViews' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:13:23: warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
11 | public static let appLifecycles = AutocaptureOptions(rawValue: 1 << 1)
12 | public static let screenViews = AutocaptureOptions(rawValue: 1 << 2)
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
| |- warning: static property 'elementInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'elementInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:15:23: warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
13 | public static let elementInteractions = AutocaptureOptions(rawValue: 1 << 3)
14 | /// Won't work on watchOS
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
| |- warning: static property 'networkTracking' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'networkTracking' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:17:23: warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
15 | public static let networkTracking = AutocaptureOptions(rawValue: 1 << 4)
16 | /// Rage Click and Dead Click detection
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
| |- warning: static property 'frustrationInteractions' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'frustrationInteractions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static let all: AutocaptureOptions = [
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/AutocaptureOptions.swift:19:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct AutocaptureOptions: OptionSet {
| `- note: consider making struct 'AutocaptureOptions' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
17 | public static let frustrationInteractions = AutocaptureOptions(rawValue: 1 << 5)
18 |
19 | public static let all: AutocaptureOptions = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'AutocaptureOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | .sessions,
21 | .appLifecycles,
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:32: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
30 | public static let flushEventsOnClose = true
31 | public static let maxQueuedEventCount = -1
32 | 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
33 | public static let migrateLegacyData = true
34 | 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:35: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
33 | public static let migrateLegacyData = true
34 | public static let enableAutoCaptureRemoteConfig = true
35 | 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
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | public static let interactionsOptions = InteractionsOptions()
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/TrackingOptions.swift:10:14: note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class TrackingOptions {
| `- note: class 'TrackingOptions' does not conform to the 'Sendable' protocol
11 |
12 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:36: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
34 | public static let enableAutoCaptureRemoteConfig = true
35 | public static let trackingOptions = TrackingOptions()
36 | 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
37 | public static let interactionsOptions = InteractionsOptions()
38 | public static let enableDiagnostics = true
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:68:15: note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
66 | ]
67 |
68 | public struct NetworkTrackingOptions {
| `- note: consider making struct 'NetworkTrackingOptions' conform to the 'Sendable' protocol
69 | public enum URLPattern {
70 | case exact(String)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Configuration.swift:37: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
35 | public static let trackingOptions = TrackingOptions()
36 | public static let networkTrackingOptions = NetworkTrackingOptions.default
37 | 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
38 | public static let enableDiagnostics = true
39 | public static let enableRequestBodyCompression = false
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/InteractionsOptions.swift:10:14: note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public class InteractionsOptions {
| `- note: class 'InteractionsOptions' does not conform to the 'Sendable' protocol
11 | public let rageClick: RageClickOptions
12 | public let deadClick: DeadClickOptions
[81/97] Compiling AmplitudeSwift NetworkSwizzler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[82/97] Compiling AmplitudeSwift ObjectFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[83/97] Compiling AmplitudeSwift OutputFileStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[84/97] Compiling AmplitudeSwift PersistentStorageResponseHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[85/97] Compiling AmplitudeSwift QueueTimer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[86/97] Compiling AmplitudeSwift SandboxHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[87/97] Compiling AmplitudeSwift UrlExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[88/97] Compiling AmplitudeSwift resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | class NetworkSwizzler {
| `- note: class 'NetworkSwizzler' does not conform to the 'Sendable' protocol
21 |
22 | static let shared = NetworkSwizzler()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkSwizzler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | private var listeners: [NetworkTaskListener] = []
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:48:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
46 | MethodSwizzler.swizzleInstanceMethod(
47 | for: URLSession.self,
48 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
49 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:53:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
51 | MethodSwizzler.swizzleInstanceMethod(
52 | for: URLSession.self,
53 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
54 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
55 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:78:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
76 | MethodSwizzler.unswizzleInstanceMethod(
77 | for: URLSession.self,
78 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLRequestEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
79 | swizzledSelector: #selector(URLSession.amp_dataTaskWithRequest(_:completionHandler:))
80 | )
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Utilities/NetworkSwizzler.swift:83:52: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
81 | MethodSwizzler.unswizzleInstanceMethod(
82 | for: URLSession.self,
83 | originalSelector: #selector(URLSession.dataTask(with:completionHandler:) as DataTaskWithURLEventHandler),
| `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
84 | swizzledSelector: #selector(URLSession.amp_dataTaskWithURL(_:completionHandler:))
85 | )
[89/97] Compiling AmplitudeSwift AnalyticsConnectorPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[90/97] Compiling AmplitudeSwift BasePlugins.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[91/97] Compiling AmplitudeSwift ContextPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[92/97] Compiling AmplitudeSwift DestinationPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[93/97] Compiling AmplitudeSwift IdentityEventSender.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[94/97] Compiling AmplitudeSwift MacOSLifecycleMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[95/97] Compiling AmplitudeSwift NetworkConnectivityCheckerPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[96/97] Compiling AmplitudeSwift NetworkTrackingPlugin.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
[97/97] Compiling AmplitudeSwift AppUtil.swift
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/ContextPlugin.swift:14:25: warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class ContextPlugin: BeforePlugin {
14 | internal static var device = VendorSystem.current
| |- warning: static property 'device' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'device' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'device' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | override func setup(amplitude: Amplitude) {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/Mac/MacOSLifecycleMonitor.swift:20:46: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | override init() {
20 | self.application = NSApplication.shared
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | super.init()
22 | setupListeners()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkConnectivityCheckerPlugin.swift:34:35: warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
32 |
33 | func start(queue: DispatchQueue) {
34 | monitor.pathUpdateHandler = subject.send
| `- warning: converting non-sendable function value to '@Sendable (NWPath) -> Void' may introduce data races
35 | networkPathPublisher = subject
36 | .map { NetworkPath(status: $0.status) }
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:434: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
432 |
433 | // Key for associated object
434 | 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
435 | private var responseDataKey: UInt8 = 0
436 |
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:435:13: warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
433 | // Key for associated object
434 | private var sendTimeKey: UInt8 = 0
435 | private var responseDataKey: UInt8 = 0
| |- warning: var 'responseDataKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responseDataKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'responseDataKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
436 |
437 | extension URLSessionTask {
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:411:78: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
409 | if rule.responseBody != nil {
410 | // onDataTaskCompletion is called earlier than onTask, add delay to make response body capture more stable
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
/Users/admin/builder/spi-builder-workspace/Sources/Amplitude/Plugins/NetworkTrackingPlugin.swift:413:49: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
411 | networkTrackingQueue.asyncAfter(deadline: .now() + 0.1, execute: sendEventAction)
412 | } else {
413 | networkTrackingQueue.async(execute: sendEventAction)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
414 | }
415 | }
Build complete! (20.08s)
Fetching https://github.com/amplitude/analytics-connector-ios.git
Fetching https://github.com/amplitude/AmplitudeCore-Swift.git
[1/549] Fetching analytics-connector-ios
[89/2419] Fetching analytics-connector-ios, amplitudecore-swift
Fetched https://github.com/amplitude/AmplitudeCore-Swift.git from cache (1.10s)
Fetched https://github.com/amplitude/analytics-connector-ios.git from cache (1.10s)
Computing version for https://github.com/amplitude/AmplitudeCore-Swift.git
warning: '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),
/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),
Computed https://github.com/amplitude/AmplitudeCore-Swift.git at 1.5.4 (1.66s)
Computing version for https://github.com/amplitude/analytics-connector-ios.git
Computed https://github.com/amplitude/analytics-connector-ios.git at 1.3.3 (0.55s)
Creating working copy for https://github.com/amplitude/AmplitudeCore-Swift.git
Working copy of https://github.com/amplitude/AmplitudeCore-Swift.git resolved at 1.5.4
Creating working copy for https://github.com/amplitude/analytics-connector-ios.git
Working copy of https://github.com/amplitude/analytics-connector-ios.git resolved at 1.3.3
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),
Downloading binary artifact https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCoreNoUIKit.zip
Downloading binary artifact https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCore.zip
Downloading binary artifact https://github.com/amplitude/analytics-connector-ios/releases/download/v1.3.3/AnalyticsConnector.xcframework.zip
[16375/7403154] Downloading https://github.com/amplitude/analytics-connector-ios/releases/download/v1.3.3/AnalyticsConnector.xcframework.zip
[7435922/26037010] Downloading https://github.com/amplitude/analytics-connector-ios/releases/download/v1.3.3/AnalyticsConnector.xcframework.zip, https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCoreNoUIKit.zip
[7744762/47045264] Downloading https://github.com/amplitude/analytics-connector-ios/releases/download/v1.3.3/AnalyticsConnector.xcframework.zip, https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCoreNoUIKit.zip, https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCore.zip
Downloaded https://github.com/amplitude/analytics-connector-ios/releases/download/v1.3.3/AnalyticsConnector.xcframework.zip (0.91s)
[31592009/39642110] Downloading https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCoreNoUIKit.zip, https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCore.zip
Downloaded https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCore.zip (1.95s)
Downloaded https://github.com/amplitude/AmplitudeCore-Swift/releases/download/v1.5.4/AmplitudeCoreNoUIKit.zip (2.06s)
Build complete.
{
"dependencies" : [
{
"identity" : "analytics-connector-ios",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/amplitude/analytics-connector-ios.git"
},
{
"identity" : "amplitudecore-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.3",
"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/AutocaptureManager.swift",
"Utilities/CodableExtension.swift",
"Utilities/Data+Gzip.swift",
"Utilities/DefaultEventUtils.swift",
"Utilities/Diagonostics.swift",
"Utilities/DispatchQueueHolder.swift",
"Utilities/EventPipeline.swift",
"Utilities/HttpClient.swift",
"Utilities/IdentifyInterceptor.swift",
"Utilities/MethodSwizzler.swift",
"Utilities/MiscellaneousExtension.swift",
"Utilities/NetworkSwizzler.swift",
"Utilities/ObjectFilter.swift",
"Utilities/OutputFileStream.swift",
"Utilities/PersistentStorageResponseHandler.swift",
"Utilities/QueueTimer.swift",
"Utilities/SandboxHelper.swift",
"Utilities/UrlExtension.swift"
],
"type" : "library"
},
{
"c99name" : "Amplitude_SwiftTests",
"module_type" : "SwiftTarget",
"name" : "Amplitude-SwiftTests",
"path" : "Tests/AmplitudeTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/AmplitudeTests/Migration/legacy_v3.sqlite",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/AmplitudeTests/Migration/legacy_v4.sqlite",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Amplitude+Extensions.swift",
"AmplitudeIOSTests.swift",
"AmplitudeSessionTests.swift",
"AmplitudeTests.swift",
"AutocaptureOptionsTests.swift",
"AutocaptureRemoteConfigTests.swift",
"ConfigurationTests.swift",
"ConsoleLoggerTests.swift",
"Events/BaseEventTests.swift",
"Events/GroupIdentifyEventTests.swift",
"Events/IdentifyEventTests.swift",
"Events/IdentifyTests.swift",
"Events/RevenueEventTests.swift",
"Events/RevenueTests.swift",
"IdentityTests.swift",
"Migration/LegacyDatabaseStorageTests.swift",
"Migration/RemnantDataMigrationTests.swift",
"Migration/StoragePrefixMigrationTests.swift",
"NetworkTrackingPlugin+Extensions.swift",
"Plugins/ContextPluginDeviceIdTests.swift",
"Plugins/NetworkConnectivityCheckerPluginTests.swift",
"Plugins/NetworkTrackingPluginTest.swift",
"Plugins/UIKitScreenViewsPluginTests.swift",
"Plugins/UIKitUserInteractionPluginTest.swift",
"Plugins/WebViewDeadClickTests.swift",
"Storages/PersistentStorageTests.swift",
"Supports/FakeURLProtocol.swift",
"Supports/RemoteConfigMockServer.swift",
"Supports/TestUtilities.swift",
"TimelineTests.swift",
"TypesTests.swift",
"Utilities/Data+Gzip.swift",
"Utilities/DiagnosticsTests.swift",
"Utilities/EventPipelineTests.swift",
"Utilities/GzipTests.swift",
"Utilities/HttpClientTests.swift",
"Utilities/IdentifyInterceptorTests.swift",
"Utilities/MethodSwizzlerTest.swift",
"Utilities/ObjectFilterTests.swift",
"Utilities/PersistentStorageResponseHandlerTests.swift",
"Utilities/QueueTimeTests.swift",
"Utilities/SandboxHelperTests.swift",
"Utilities/TimeIntervalExtensionsTests.swift",
"Utilities/UrlExtensionTests.swift"
],
"target_dependencies" : [
"AmplitudeSwift"
],
"type" : "test"
}
],
"tools_version" : "5.9"
}
Done.