Build Information
Successful build of Aptabase, reference main (a1ee53), with Swift 6.1 for macOS (SPM) on 25 Oct 2026 06:15:21 UTC.
Swift 6 data race errors: 4
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
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptabase/aptabase-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aptabase/aptabase-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a1ee53e chore: release 0.4.0
Cloned https://github.com/aptabase/aptabase-swift.git
Revision (git rev-parse @):
a1ee53e99478921cd166c40f59f2e41271032776
SUCCESS checkout https://github.com/aptabase/aptabase-swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/aptabase/aptabase-swift.git
https://github.com/aptabase/aptabase-swift.git
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Aptabase",
"name" : "Aptabase",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Aptabase",
"targets" : [
"Aptabase"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AptabaseTests",
"module_type" : "SwiftTarget",
"name" : "AptabaseTests",
"path" : "Tests/AptabaseTests",
"sources" : [
"AptabaseClientTests.swift",
"ConcurrentQueueTests.swift",
"ErrorDispatcherTests.swift",
"ErrorReportTests.swift",
"EventDispatcherTests.swift",
"InitOptionsTests.swift"
],
"target_dependencies" : [
"Aptabase"
],
"type" : "test"
},
{
"c99name" : "Aptabase",
"module_type" : "SwiftTarget",
"name" : "Aptabase",
"path" : "Sources/Aptabase",
"product_memberships" : [
"Aptabase"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Aptabase.swift",
"AptabaseClient.swift",
"ConcurrentQueue.swift",
"Dispatcher.swift",
"EnvironmentInfo.swift",
"ErrorDispatcher.swift",
"ErrorReport.swift",
"Event.swift",
"EventDispatcher.swift",
"InitOptions.swift",
"TrackingMode.swift",
"Value.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/5] Copying PrivacyInfo.xcprivacy
[2/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/18] Compiling Aptabase InitOptions.swift
[7/18] Compiling Aptabase Value.swift
[8/18] Compiling Aptabase TrackingMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:29: warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| |- warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:29: warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| |- warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asRelease' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:29: warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
| |- warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'readFromEnvironment' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | private let rawValue: Int
[9/19] Compiling Aptabase EventDispatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/EventDispatcher.swift:36:54: warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
34 | request.httpBody = body
35 |
36 | let (data, response) = try await session.data(for: request)
| |- warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.session' to nonisolated instance method 'data(for:)' risks causing data races between nonisolated and 'self'-isolated uses
37 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
38 | if statusCode < 300 {
[10/19] Compiling Aptabase ErrorReport.swift
[11/19] Compiling Aptabase Event.swift
[12/19] Compiling Aptabase resource_bundle_accessor.swift
[13/19] Compiling Aptabase ConcurrentQueue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:34: warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:46: warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure
16 | }
17 | }
[14/19] Compiling Aptabase Dispatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:9:34: warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
7 | func enqueue(_ element: T) {
8 | queue.async(flags: .barrier) {
9 | self.elements.append(element)
| `- warning: capture of 'element' with non-sendable type 'T' in a '@Sendable' closure
10 | }
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:13: warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: generic class 'ConcurrentQueue' does not conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'self' with non-sendable type 'ConcurrentQueue<T>' in a '@Sendable' closure
16 | }
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ConcurrentQueue.swift:15:46: warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure
1 | import Foundation
2 |
3 | class ConcurrentQueue<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | private var queue = DispatchQueue(label: "com.aptabase.ConcurrentQueue", attributes: .concurrent)
5 | private var elements = [T]()
:
13 | func enqueue(contentsOf newElements: [T]) {
14 | queue.async(flags: .barrier) {
15 | self.elements.append(contentsOf: newElements)
| `- warning: capture of 'newElements' with non-sendable type '[T]' in a '@Sendable' closure
16 | }
17 | }
[15/19] Compiling Aptabase EnvironmentInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:56:54: warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
54 | request.httpBody = body
55 |
56 | let (data, response) = try await session.data(for: request)
| |- warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.session' to nonisolated instance method 'data(for:)' risks causing data races between nonisolated and 'self'-isolated uses
57 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
58 | if statusCode < 300 {
[16/19] Compiling Aptabase ErrorDispatcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/ErrorDispatcher.swift:56:54: warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
54 | request.httpBody = body
55 |
56 | let (data, response) = try await session.data(for: request)
| |- warning: sending 'self.session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.session' to nonisolated instance method 'data(for:)' risks causing data races between nonisolated and 'self'-isolated uses
57 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
58 | if statusCode < 300 {
[17/19] Emitting module Aptabase
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' 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
20 |
21 | /// Initializes the client with given App Key.
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:5:29: warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
| |- warning: static property 'asDebug' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asDebug' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:6:29: warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
| |- warning: static property 'asRelease' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'asRelease' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/TrackingMode.swift:7:29: warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// Represents the tracking mode (release/debug) for the client.
4 | @objc public class TrackingMode: NSObject {
| `- note: class 'TrackingMode' does not conform to the 'Sendable' protocol
5 | @objc public static let asDebug = TrackingMode(rawValue: 0)
6 | @objc public static let asRelease = TrackingMode(rawValue: 1)
7 | @objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
| |- warning: static property 'readFromEnvironment' is not concurrency-safe because non-'Sendable' type 'TrackingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'readFromEnvironment' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | private let rawValue: Int
[18/19] Compiling Aptabase Aptabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' 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
20 |
21 | /// Initializes the client with given App Key.
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:118:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | /// Forces all queued events to be sent to the server asynchronously. Returns before the events have been sent.
117 | @objc public func flush() {
118 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
119 | await self.client?.flush()
| `- note: closure captures 'self' which is accessible to code in the current task
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:88:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
86 | flushTimer = nil
87 |
88 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
89 | await flush()
| `- note: closure captures 'self' which is accessible to code in the current task
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:21:27: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
19 | self.env = env
20 |
21 | eventDispatcher = EventDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
22 | errorDispatcher = ErrorDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:22:27: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | eventDispatcher = EventDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
22 | errorDispatcher = ErrorDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
23 |
24 | // Extensions and clients initialized after activation may never receive
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:31:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | /// Begins tracking an event asynchronously.
30 | public func trackEvent(_ eventName: String, with props: [String: AnyCodableValue] = [:]) {
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | await trackEvent(eventName, with: props)
| `- note: closure captures 'self' which is accessible to code in the current task
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:61:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | public func trackError(_ error: any Error, fatal: Bool = false) {
60 | let stackTrace = ErrorReport.captureStackTrace()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | await trackError(error, fatal: fatal, stackTrace: stackTrace)
| `- note: closure captures 'self' which is accessible to code in the current task
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:115:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 | @objc private func timerFlushSync() {
114 | if !pauseFlushTimer {
115 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | self.pauseFlushTimer = true
| `- note: closure captures 'self' which is accessible to code in the current task
117 | await self.flush()
118 | self.pauseFlushTimer = false
[19/19] Compiling Aptabase AptabaseClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:19:29: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The Aptabase client used to track events.
14 | public class Aptabase: NSObject {
| `- note: class 'Aptabase' does not conform to the 'Sendable' protocol
15 | private var env = EnvironmentInfo.current()
16 | private var client: AptabaseClient?
17 |
18 | /// The shared client instance.
19 | @objc public static let shared = Aptabase()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Aptabase' 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
20 |
21 | /// Initializes the client with given App Key.
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/Aptabase.swift:118:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | /// Forces all queued events to be sent to the server asynchronously. Returns before the events have been sent.
117 | @objc public func flush() {
118 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
119 | await self.client?.flush()
| `- note: closure captures 'self' which is accessible to code in the current task
120 | }
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:88:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
86 | flushTimer = nil
87 |
88 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
89 | await flush()
| `- note: closure captures 'self' which is accessible to code in the current task
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:21:27: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
19 | self.env = env
20 |
21 | eventDispatcher = EventDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
22 | errorDispatcher = ErrorDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:22:27: warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
20 |
21 | eventDispatcher = EventDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
22 | errorDispatcher = ErrorDispatcher(appKey: appKey, baseUrl: baseUrl, env: env, session: session)
| |- warning: sending 'session' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'session' to actor-isolated callee risks causing data races between actor-isolated and task-isolated uses
23 |
24 | // Extensions and clients initialized after activation may never receive
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:31:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | /// Begins tracking an event asynchronously.
30 | public func trackEvent(_ eventName: String, with props: [String: AnyCodableValue] = [:]) {
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | await trackEvent(eventName, with: props)
| `- note: closure captures 'self' which is accessible to code in the current task
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:61:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | public func trackError(_ error: any Error, fatal: Bool = false) {
60 | let stackTrace = ErrorReport.captureStackTrace()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | await trackError(error, fatal: fatal, stackTrace: stackTrace)
| `- note: closure captures 'self' which is accessible to code in the current task
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/AptabaseClient.swift:115:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
113 | @objc private func timerFlushSync() {
114 | if !pauseFlushTimer {
115 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
116 | self.pauseFlushTimer = true
| `- note: closure captures 'self' which is accessible to code in the current task
117 | await self.flush()
118 | self.pauseFlushTimer = false
Build complete! (22.77s)
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.05s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.12s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.84s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Aptabase",
"name" : "Aptabase",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Aptabase",
"targets" : [
"Aptabase"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AptabaseTests",
"module_type" : "SwiftTarget",
"name" : "AptabaseTests",
"path" : "Tests/AptabaseTests",
"sources" : [
"AptabaseClientTests.swift",
"ConcurrentQueueTests.swift",
"ErrorDispatcherTests.swift",
"ErrorReportTests.swift",
"EventDispatcherTests.swift",
"InitOptionsTests.swift"
],
"target_dependencies" : [
"Aptabase"
],
"type" : "test"
},
{
"c99name" : "Aptabase",
"module_type" : "SwiftTarget",
"name" : "Aptabase",
"path" : "Sources/Aptabase",
"product_memberships" : [
"Aptabase"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Aptabase/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Aptabase.swift",
"AptabaseClient.swift",
"ConcurrentQueue.swift",
"Dispatcher.swift",
"EnvironmentInfo.swift",
"ErrorDispatcher.swift",
"ErrorReport.swift",
"Event.swift",
"EventDispatcher.swift",
"InitOptions.swift",
"TrackingMode.swift",
"Value.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.