The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MatomoTracker, reference develop (f140af), with Swift 6.1 for macOS (SPM) on 13 Dec 2025 13:10:04 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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
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 f140afc Prepared 7.8.0 release
Cloned https://github.com/matomo-org/matomo-sdk-ios.git
Revision (git rev-parse @):
f140afcb7cedebdcbf8b8230fdd822b4b61e3685
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" : [
  ],
  "products" : [
    {
      "name" : "MatomoTracker",
      "targets" : [
        "MatomoTracker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "MatomoTracker",
      "module_type" : "SwiftTarget",
      "name" : "MatomoTracker",
      "path" : "MatomoTracker",
      "product_memberships" : [
        "MatomoTracker"
      ],
      "sources" : [
        "Application.swift",
        "CustomDimension.swift",
        "CustomVariable.swift",
        "Device.swift",
        "Dispatcher.swift",
        "Event.swift",
        "EventAPISerializer.swift",
        "Locale+HttpAcceptLanguage.swift",
        "Logger.swift",
        "MainThread.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" : "5.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/21] Compiling MatomoTracker MemoryQueue.swift
[4/21] Compiling MatomoTracker OrderItem.swift
[5/21] Compiling MatomoTracker Queue.swift
[6/21] Compiling MatomoTracker Session.swift
[7/21] 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 |         }
[8/21] Compiling MatomoTracker UserAgent.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 |         }
[9/21] Compiling MatomoTracker EventAPISerializer.swift
[10/21] Compiling MatomoTracker Locale+HttpAcceptLanguage.swift
[11/23] 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 |     }
[12/23] Compiling MatomoTracker MainThread.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 |     }
[13/23] Compiling MatomoTracker MatomoTracker.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:84: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
 82 |     @objc public var contentBase: URL?
 83 |
 84 |     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
 85 |
 86 |     /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:218:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
216 |         // Dispatchin asynchronous here to break the retain cycle
217 |         DispatchQueue.main.async { [weak self] in
218 |             guard let self = self else { return }
    |                              |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
219 |             self.dispatchTimer = Timer.scheduledTimer(timeInterval: self.dispatchInterval, target: self, selector: #selector(self.dispatch), userInfo: nil, repeats: false)
220 |         }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:207:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
205 |         guard Thread.isMainThread else {
206 |             DispatchQueue.main.sync {
207 |                 self.startDispatchTimer()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 |             }
209 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:127:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
125 |         guard Thread.isMainThread else {
126 |             DispatchQueue.main.sync {
127 |                 self.queue(event: event)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |             }
129 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:127:35: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
125 |         guard Thread.isMainThread else {
126 |             DispatchQueue.main.sync {
127 |                 self.queue(event: event)
    |                                   |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |             }
129 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:163:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
161 |         guard Thread.isMainThread else {
162 |             DispatchQueue.main.sync {
163 |                 self.dispatchBatch()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 |             }
165 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
177 |                 guard let self = self else { return }
178 |                 DispatchQueue.main.async {
179 |                     self.queue.remove(events: events, completion: {
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
180 |                         self.logger.info("Dispatched batch of \(events.count) events.")
181 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:47: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
177 |                 guard let self = self else { return }
178 |                 DispatchQueue.main.async {
179 |                     self.queue.remove(events: events, completion: {
    |                                               |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
    |                                               `- note: task-isolated 'events' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
180 |                         self.logger.info("Dispatched batch of \(events.count) events.")
181 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:477:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
475 |         guard Thread.isMainThread else {
476 |             DispatchQueue.main.sync {
477 |                 self.reset()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
478 |             }
479 |             return
[14/23] Compiling MatomoTracker MatomoUserDefaults.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:84: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
 82 |     @objc public var contentBase: URL?
 83 |
 84 |     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
 85 |
 86 |     /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:218:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
216 |         // Dispatchin asynchronous here to break the retain cycle
217 |         DispatchQueue.main.async { [weak self] in
218 |             guard let self = self else { return }
    |                              |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                              `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
219 |             self.dispatchTimer = Timer.scheduledTimer(timeInterval: self.dispatchInterval, target: self, selector: #selector(self.dispatch), userInfo: nil, repeats: false)
220 |         }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:207:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
205 |         guard Thread.isMainThread else {
206 |             DispatchQueue.main.sync {
207 |                 self.startDispatchTimer()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 |             }
209 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:127:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
125 |         guard Thread.isMainThread else {
126 |             DispatchQueue.main.sync {
127 |                 self.queue(event: event)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |             }
129 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:127:35: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
125 |         guard Thread.isMainThread else {
126 |             DispatchQueue.main.sync {
127 |                 self.queue(event: event)
    |                                   |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
    |                                   `- note: task-isolated 'event' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
128 |             }
129 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:163:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
161 |         guard Thread.isMainThread else {
162 |             DispatchQueue.main.sync {
163 |                 self.dispatchBatch()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 |             }
165 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
177 |                 guard let self = self else { return }
178 |                 DispatchQueue.main.async {
179 |                     self.queue.remove(events: events, completion: {
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
180 |                         self.logger.info("Dispatched batch of \(events.count) events.")
181 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:179:47: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
177 |                 guard let self = self else { return }
178 |                 DispatchQueue.main.async {
179 |                     self.queue.remove(events: events, completion: {
    |                                               |- warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
    |                                               `- note: task-isolated 'events' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
180 |                         self.logger.info("Dispatched batch of \(events.count) events.")
181 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:477:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
475 |         guard Thread.isMainThread else {
476 |             DispatchQueue.main.sync {
477 |                 self.reset()
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
478 |             }
479 |             return
[15/23] Compiling MatomoTracker UserDefaultsQueue.swift
[16/23] Compiling MatomoTracker Visitor.swift
[17/23] Compiling MatomoTracker Dispatcher.swift
[18/23] Compiling MatomoTracker Event.swift
[19/23] Compiling MatomoTracker CustomVariable.swift
[20/23] Compiling MatomoTracker Device.swift
[21/23] Emitting module MatomoTracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:84: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
 82 |     @objc public var contentBase: URL?
 83 |
 84 |     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
 85 |
 86 |     /// Create and Configure a new Tracker
[22/23] Compiling MatomoTracker Application.swift
[23/23] Compiling MatomoTracker CustomDimension.swift
Build complete! (7.93s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MatomoTracker",
  "name" : "MatomoTracker",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MatomoTracker",
      "targets" : [
        "MatomoTracker"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "MatomoTracker",
      "module_type" : "SwiftTarget",
      "name" : "MatomoTracker",
      "path" : "MatomoTracker",
      "product_memberships" : [
        "MatomoTracker"
      ],
      "sources" : [
        "Application.swift",
        "CustomDimension.swift",
        "CustomVariable.swift",
        "Device.swift",
        "Dispatcher.swift",
        "Event.swift",
        "EventAPISerializer.swift",
        "Locale+HttpAcceptLanguage.swift",
        "Logger.swift",
        "MainThread.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" : "5.0"
}
Done.