Build Information
Successful build of MatomoTracker, reference develop (e8e2be), with Swift 6.1 for macOS (SPM) on 24 Nov 2026 05:30:01 UTC.
Swift 6 data race errors: 1
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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/matomo-org/matomo-sdk-ios.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matomo-org/matomo-sdk-ios
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at e8e2be3 Don't use the main thread in the tracker (#491)
Cloned https://github.com/matomo-org/matomo-sdk-ios.git
Revision (git rev-parse @):
e8e2be332fc2ab18843a429d2aee9e883acf09c3
SUCCESS checkout https://github.com/matomo-org/matomo-sdk-ios.git at develop
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/matomo-org/matomo-sdk-ios.git
https://github.com/matomo-org/matomo-sdk-ios.git
{
"dependencies" : [
],
"manifest_display_name" : "MatomoTracker",
"name" : "MatomoTracker",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "MatomoTracker",
"targets" : [
"MatomoTracker"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "MatomoTrackerTests",
"module_type" : "SwiftTarget",
"name" : "MatomoTrackerTests",
"path" : "MatomoTrackerTests",
"sources" : [
"DispatcherMock.swift",
"Event+Fixture.swift",
"EventAPISerializerSpec.swift",
"EventSpec.swift",
"MatomoTracker+Fixture.swift",
"MemoryQueueSpec.swift",
"OutlinkSpec.swift",
"PiwikUserDefaultsSpec.swift",
"QueueMock.swift",
"Session+Fixture.swift",
"TestSupport.swift",
"TrackerSpec.swift",
"UserDefaultsQueueSpec.swift",
"Visitor+Fixture.swift"
],
"target_dependencies" : [
"MatomoTracker"
],
"type" : "test"
},
{
"c99name" : "MatomoTracker",
"module_type" : "SwiftTarget",
"name" : "MatomoTracker",
"path" : "MatomoTracker",
"product_memberships" : [
"MatomoTracker"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/MatomoTracker/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Application.swift",
"CustomDimension.swift",
"CustomVariable.swift",
"Device.swift",
"Dispatcher.swift",
"Event.swift",
"EventAPISerializer.swift",
"Locale+HttpAcceptLanguage.swift",
"Logger.swift",
"MatomoTracker.swift",
"MatomoUserDefaults.swift",
"MemoryQueue.swift",
"OrderItem.swift",
"Queue.swift",
"Session.swift",
"URLSessionDispatcher.swift",
"UserAgent.swift",
"UserDefaultsQueue.swift",
"Visitor.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
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
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/22] Compiling MatomoTracker Logger.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Logger.swift:73:37: warning: capture of 'level' with non-sendable type 'LogLevel' in a '@Sendable' closure
1 | import Foundation
2 |
3 | @objc public enum LogLevel: Int {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
4 | case verbose = 10
5 | case debug = 20
:
71 | let messageToPrint = message()
72 | dispatchQueue.async {
73 | print("MatomoTracker [\(level.shortcut)] \(messageToPrint)")
| `- warning: capture of 'level' with non-sendable type 'LogLevel' in a '@Sendable' closure
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:25: warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | }
178 |
179 | internal static var _sharedInstance: MatomoTracker?
| |- warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 |
181 | /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:216:13: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
214 | startNewSession()
215 | workQueue.async { [weak self] in
216 | self?.scheduleDispatchTimer()
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:17: warning: capture of 'self' with non-sendable type 'MatomoTracker' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker' in a '@Sendable' closure
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:43: warning: capture of 'event' with non-sendable type 'Event' in a '@Sendable' closure
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: capture of 'event' with non-sendable type 'Event' in a '@Sendable' closure
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:43: warning: reference to captured var 'event' in concurrently-executing code
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: reference to captured var 'event' in concurrently-executing code
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:346:13: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
344 | @objc public func dispatch(completion: (() -> Void)?) {
345 | workQueue.async { [weak self] in
346 | self?.startDispatching(completion: completion)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
347 | }
348 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:346:48: warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
344 | @objc public func dispatch(completion: (() -> Void)?) {
345 | workQueue.async { [weak self] in
346 | self?.startDispatching(completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
347 | }
348 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:28: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:17: warning: reference to captured var 'self' in concurrently-executing code
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: reference to captured var 'self' in concurrently-executing code
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:30: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:17: warning: reference to captured var 'self' in concurrently-executing code
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: reference to captured var 'self' in concurrently-executing code
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:396:34: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
394 | }, failure: { [weak self] error in
395 | workQueue.async {
396 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
397 | self.logger.warning("Failed dispatching events with error \(error)")
398 | self.finishDispatching()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:396:34: warning: reference to captured var 'self' in concurrently-executing code
394 | }, failure: { [weak self] error in
395 | workQueue.async {
396 | guard let self = self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code
397 | self.logger.warning("Failed dispatching events with error \(error)")
398 | self.finishDispatching()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:408:34: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
406 | queue.remove(events: events) { [weak self] in
407 | workQueue.async {
408 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
409 | self.logger.info("Dispatched batch of \(events.count) events.")
410 | self.dispatchBatch()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:409:57: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
407 | workQueue.async {
408 | guard let self = self else { return }
409 | self.logger.info("Dispatched batch of \(events.count) events.")
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
410 | self.dispatchBatch()
411 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:408:34: warning: reference to captured var 'self' in concurrently-executing code
406 | queue.remove(events: events) { [weak self] in
407 | workQueue.async {
408 | guard let self = self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code
409 | self.logger.info("Dispatched batch of \(events.count) events.")
410 | self.dispatchBatch()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:409:57: warning: implicit capture of 'events' requires that '[Event]' conforms to 'Sendable'; this is an error in the Swift 6 language mode
407 | workQueue.async {
408 | guard let self = self else { return }
409 | self.logger.info("Dispatched batch of \(events.count) events.")
| `- warning: implicit capture of 'events' requires that '[Event]' conforms to 'Sendable'; this is an error in the Swift 6 language mode
410 | self.dispatchBatch()
411 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:433:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
431 | withState { $0.dispatchInterval = newValue }
432 | workQueue.async { [weak self] in
433 | self?.scheduleDispatchTimer()
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
434 | }
435 | }
[5/22] Compiling MatomoTracker MatomoTracker.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Logger.swift:73:37: warning: capture of 'level' with non-sendable type 'LogLevel' in a '@Sendable' closure
1 | import Foundation
2 |
3 | @objc public enum LogLevel: Int {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
4 | case verbose = 10
5 | case debug = 20
:
71 | let messageToPrint = message()
72 | dispatchQueue.async {
73 | print("MatomoTracker [\(level.shortcut)] \(messageToPrint)")
| `- warning: capture of 'level' with non-sendable type 'LogLevel' in a '@Sendable' closure
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:25: warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | }
178 |
179 | internal static var _sharedInstance: MatomoTracker?
| |- warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 |
181 | /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:216:13: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
214 | startNewSession()
215 | workQueue.async { [weak self] in
216 | self?.scheduleDispatchTimer()
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:17: warning: capture of 'self' with non-sendable type 'MatomoTracker' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker' in a '@Sendable' closure
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:43: warning: capture of 'event' with non-sendable type 'Event' in a '@Sendable' closure
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: capture of 'event' with non-sendable type 'Event' in a '@Sendable' closure
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:314:43: warning: reference to captured var 'event' in concurrently-executing code
312 | // The block retains the tracker, so the event is queued even if the tracker is released right away.
313 | workQueue.async {
314 | self.queue.enqueue(event: event)
| `- warning: reference to captured var 'event' in concurrently-executing code
315 | }
316 | return true
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:346:13: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
344 | @objc public func dispatch(completion: (() -> Void)?) {
345 | workQueue.async { [weak self] in
346 | self?.startDispatching(completion: completion)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
347 | }
348 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:346:48: warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
344 | @objc public func dispatch(completion: (() -> Void)?) {
345 | workQueue.async { [weak self] in
346 | self?.startDispatching(completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
347 | }
348 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:28: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:376:17: warning: reference to captured var 'self' in concurrently-executing code
374 | queue.first(limit: numberOfEventsDispatchedAtOnce) { [weak self] events in
375 | workQueue.async {
376 | self?.send(events)
| `- warning: reference to captured var 'self' in concurrently-executing code
377 | }
378 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:30: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:392:17: warning: reference to captured var 'self' in concurrently-executing code
390 | dispatcher.send(events: events, success: { [weak self] in
391 | workQueue.async {
392 | self?.remove(events)
| `- warning: reference to captured var 'self' in concurrently-executing code
393 | }
394 | }, failure: { [weak self] error in
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:396:34: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
394 | }, failure: { [weak self] error in
395 | workQueue.async {
396 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
397 | self.logger.warning("Failed dispatching events with error \(error)")
398 | self.finishDispatching()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:396:34: warning: reference to captured var 'self' in concurrently-executing code
394 | }, failure: { [weak self] error in
395 | workQueue.async {
396 | guard let self = self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code
397 | self.logger.warning("Failed dispatching events with error \(error)")
398 | self.finishDispatching()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:408:34: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
406 | queue.remove(events: events) { [weak self] in
407 | workQueue.async {
408 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
409 | self.logger.info("Dispatched batch of \(events.count) events.")
410 | self.dispatchBatch()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:409:57: warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
407 | workQueue.async {
408 | guard let self = self else { return }
409 | self.logger.info("Dispatched batch of \(events.count) events.")
| `- warning: capture of 'events' with non-sendable type '[Event]' in a '@Sendable' closure
410 | self.dispatchBatch()
411 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:408:34: warning: reference to captured var 'self' in concurrently-executing code
406 | queue.remove(events: events) { [weak self] in
407 | workQueue.async {
408 | guard let self = self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code
409 | self.logger.info("Dispatched batch of \(events.count) events.")
410 | self.dispatchBatch()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:409:57: warning: implicit capture of 'events' requires that '[Event]' conforms to 'Sendable'; this is an error in the Swift 6 language mode
407 | workQueue.async {
408 | guard let self = self else { return }
409 | self.logger.info("Dispatched batch of \(events.count) events.")
| `- warning: implicit capture of 'events' requires that '[Event]' conforms to 'Sendable'; this is an error in the Swift 6 language mode
410 | self.dispatchBatch()
411 | }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:15:15: note: consider making struct 'Event' conform to the 'Sendable' protocol
13 | /// - idsite, rec, rand, apiv, res, cookie,
14 | /// - All Plugins: fla, java, dir, qt, realp, pdf, wma, gears, ag
15 | public struct Event: Codable {
| `- note: consider making struct 'Event' conform to the 'Sendable' protocol
16 | public let uuid: UUID
17 | let siteID: String
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:433:17: warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
10 | /// Tracking methods capture the current state (visitor, session, dimensions, …) when they are called and
11 | /// queue the event in the background, in the order of the calls.
12 | final public class MatomoTracker: NSObject {
| `- note: class 'MatomoTracker' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: State
:
431 | withState { $0.dispatchInterval = newValue }
432 | workQueue.async { [weak self] in
433 | self?.scheduleDispatchTimer()
| `- warning: capture of 'self' with non-sendable type 'MatomoTracker?' in a '@Sendable' closure
434 | }
435 | }
[6/22] Compiling MatomoTracker MatomoUserDefaults.swift
[7/22] Compiling MatomoTracker MemoryQueue.swift
[8/22] Compiling MatomoTracker OrderItem.swift
[9/22] Compiling MatomoTracker Queue.swift
[10/22] Compiling MatomoTracker Session.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/URLSessionDispatcher.swift:51:17: warning: capture of 'failure' with non-sendable type '(any Error) -> ()' in a '@Sendable' closure
49 | // let dataString = String(data: data!, encoding: String.Encoding.utf8)
50 | if let error = error {
51 | failure(error)
| |- warning: capture of 'failure' with non-sendable type '(any Error) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | } else {
53 | success()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/URLSessionDispatcher.swift:53:17: warning: capture of 'success' with non-sendable type '() -> ()' in a '@Sendable' closure
51 | failure(error)
52 | } else {
53 | success()
| |- warning: capture of 'success' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
54 | }
55 | }
[11/22] Compiling MatomoTracker URLSessionDispatcher.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/URLSessionDispatcher.swift:51:17: warning: capture of 'failure' with non-sendable type '(any Error) -> ()' in a '@Sendable' closure
49 | // let dataString = String(data: data!, encoding: String.Encoding.utf8)
50 | if let error = error {
51 | failure(error)
| |- warning: capture of 'failure' with non-sendable type '(any Error) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | } else {
53 | success()
/Users/admin/builder/spi-builder-workspace/MatomoTracker/URLSessionDispatcher.swift:53:17: warning: capture of 'success' with non-sendable type '() -> ()' in a '@Sendable' closure
51 | failure(error)
52 | } else {
53 | success()
| |- warning: capture of 'success' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
54 | }
55 | }
[12/22] Compiling MatomoTracker UserAgent.swift
[13/22] Compiling MatomoTracker UserDefaultsQueue.swift
[14/24] Compiling MatomoTracker EventAPISerializer.swift
[15/24] Compiling MatomoTracker Locale+HttpAcceptLanguage.swift
[16/24] Compiling MatomoTracker Dispatcher.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:45:5: warning: 'internal(set)' modifier is redundant for an internal property
43 | /// Should be set to true for the first event of a session.
44 | /// api-key: new_visit
45 | internal(set) var isNewSession: Bool
| `- warning: 'internal(set)' modifier is redundant for an internal property
46 |
47 | /// Currently only used for Campaigns
[17/24] Compiling MatomoTracker Event.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:45:5: warning: 'internal(set)' modifier is redundant for an internal property
43 | /// Should be set to true for the first event of a session.
44 | /// api-key: new_visit
45 | internal(set) var isNewSession: Bool
| `- warning: 'internal(set)' modifier is redundant for an internal property
46 |
47 | /// Currently only used for Campaigns
[18/24] Compiling MatomoTracker Visitor.swift
[19/24] Compiling MatomoTracker resource_bundle_accessor.swift
[20/24] Emitting module MatomoTracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/Event.swift:45:5: warning: 'internal(set)' modifier is redundant for an internal property
43 | /// Should be set to true for the first event of a session.
44 | /// api-key: new_visit
45 | internal(set) var isNewSession: Bool
| `- warning: 'internal(set)' modifier is redundant for an internal property
46 |
47 | /// Currently only used for Campaigns
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:25: warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
177 | }
178 |
179 | internal static var _sharedInstance: MatomoTracker?
| |- warning: static property '_sharedInstance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_sharedInstance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_sharedInstance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 |
181 | /// Create and Configure a new Tracker
[21/24] Compiling MatomoTracker Application.swift
[22/24] Compiling MatomoTracker CustomDimension.swift
[23/24] Compiling MatomoTracker CustomVariable.swift
[24/24] Compiling MatomoTracker Device.swift
Build complete! (8.50s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MatomoTracker",
"name" : "MatomoTracker",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "MatomoTracker",
"targets" : [
"MatomoTracker"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "MatomoTrackerTests",
"module_type" : "SwiftTarget",
"name" : "MatomoTrackerTests",
"path" : "MatomoTrackerTests",
"sources" : [
"DispatcherMock.swift",
"Event+Fixture.swift",
"EventAPISerializerSpec.swift",
"EventSpec.swift",
"MatomoTracker+Fixture.swift",
"MemoryQueueSpec.swift",
"OutlinkSpec.swift",
"PiwikUserDefaultsSpec.swift",
"QueueMock.swift",
"Session+Fixture.swift",
"TestSupport.swift",
"TrackerSpec.swift",
"UserDefaultsQueueSpec.swift",
"Visitor+Fixture.swift"
],
"target_dependencies" : [
"MatomoTracker"
],
"type" : "test"
},
{
"c99name" : "MatomoTracker",
"module_type" : "SwiftTarget",
"name" : "MatomoTracker",
"path" : "MatomoTracker",
"product_memberships" : [
"MatomoTracker"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/MatomoTracker/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Application.swift",
"CustomDimension.swift",
"CustomVariable.swift",
"Device.swift",
"Dispatcher.swift",
"Event.swift",
"EventAPISerializer.swift",
"Locale+HttpAcceptLanguage.swift",
"Logger.swift",
"MatomoTracker.swift",
"MatomoUserDefaults.swift",
"MemoryQueue.swift",
"OrderItem.swift",
"Queue.swift",
"Session.swift",
"URLSessionDispatcher.swift",
"UserAgent.swift",
"UserDefaultsQueue.swift",
"Visitor.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Done.