The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of MatomoTracker, reference v7.7.0 (82a1f3), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 08:38:35 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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/matomo-org/matomo-sdk-ios.git
Reference: v7.7.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matomo-org/matomo-sdk-ios
 * tag               v7.7.0     -> FETCH_HEAD
HEAD is now at 82a1f3b Prepared 7.7.0 release
Cloned https://github.com/matomo-org/matomo-sdk-ios.git
Revision (git rev-parse @):
82a1f3b18215381e2133d98b7cc09b5a855ff99d
SUCCESS checkout https://github.com/matomo-org/matomo-sdk-ios.git at v7.7.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "matomo-sdk-ios",
      "name": "MatomoTracker",
      "url": "https://github.com/matomo-org/matomo-sdk-ios.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/matomo-sdk-ios",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/matomo-org/matomo-sdk-ios.git
[1/5650] Fetching matomo-sdk-ios
Fetched https://github.com/matomo-org/matomo-sdk-ios.git from cache (1.19s)
Creating working copy for https://github.com/matomo-org/matomo-sdk-ios.git
Working copy of https://github.com/matomo-org/matomo-sdk-ios.git resolved at v7.7.0 (82a1f3b)
warning: '.resolve-product-dependencies': dependency 'matomo-sdk-ios' is not used by any target
Found 0 product dependencies
========================================
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 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 |     }
[4/21] 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 |     }
[5/21] Compiling MatomoTracker EventAPISerializer.swift
[6/21] Compiling MatomoTracker Locale+HttpAcceptLanguage.swift
[7/21] Compiling MatomoTracker Queue.swift
[8/21] Compiling MatomoTracker Session.swift
[9/21] Compiling MatomoTracker MatomoTracker.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:87: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
 85 |     @objc public var contentBase: URL?
 86 |
 87 |     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
 88 |
 89 |     /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:221:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
219 |         // Dispatchin asynchronous here to break the retain cycle
220 |         DispatchQueue.main.async { [weak self] in
221 |             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
222 |             self.dispatchTimer = Timer.scheduledTimer(timeInterval: self.dispatchInterval, target: self, selector: #selector(self.dispatch), userInfo: nil, repeats: false)
223 |         }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:210:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
208 |         guard Thread.isMainThread else {
209 |             DispatchQueue.main.sync {
210 |                 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
211 |             }
212 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:130:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
128 |         guard Thread.isMainThread else {
129 |             DispatchQueue.main.sync {
130 |                 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
131 |             }
132 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:130:35: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
128 |         guard Thread.isMainThread else {
129 |             DispatchQueue.main.sync {
130 |                 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
131 |             }
132 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:166:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |         guard Thread.isMainThread else {
165 |             DispatchQueue.main.sync {
166 |                 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
167 |             }
168 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:182:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
180 |                 guard let self = self else { return }
181 |                 DispatchQueue.main.async {
182 |                     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
183 |                         self.logger.info("Dispatched batch of \(events.count) events.")
184 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:182:47: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
180 |                 guard let self = self else { return }
181 |                 DispatchQueue.main.async {
182 |                     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
183 |                         self.logger.info("Dispatched batch of \(events.count) events.")
184 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:480:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
478 |         guard Thread.isMainThread else {
479 |             DispatchQueue.main.sync {
480 |                 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
481 |             }
482 |             return
[10/21] Compiling MatomoTracker MatomoUserDefaults.swift
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:87: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
 85 |     @objc public var contentBase: URL?
 86 |
 87 |     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
 88 |
 89 |     /// Create and Configure a new Tracker
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:221:30: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
219 |         // Dispatchin asynchronous here to break the retain cycle
220 |         DispatchQueue.main.async { [weak self] in
221 |             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
222 |             self.dispatchTimer = Timer.scheduledTimer(timeInterval: self.dispatchInterval, target: self, selector: #selector(self.dispatch), userInfo: nil, repeats: false)
223 |         }
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:210:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
208 |         guard Thread.isMainThread else {
209 |             DispatchQueue.main.sync {
210 |                 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
211 |             }
212 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:130:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
128 |         guard Thread.isMainThread else {
129 |             DispatchQueue.main.sync {
130 |                 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
131 |             }
132 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:130:35: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
128 |         guard Thread.isMainThread else {
129 |             DispatchQueue.main.sync {
130 |                 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
131 |             }
132 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:166:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
164 |         guard Thread.isMainThread else {
165 |             DispatchQueue.main.sync {
166 |                 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
167 |             }
168 |             return
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:182:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
180 |                 guard let self = self else { return }
181 |                 DispatchQueue.main.async {
182 |                     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
183 |                         self.logger.info("Dispatched batch of \(events.count) events.")
184 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:182:47: warning: sending 'events' risks causing data races; this is an error in the Swift 6 language mode
180 |                 guard let self = self else { return }
181 |                 DispatchQueue.main.async {
182 |                     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
183 |                         self.logger.info("Dispatched batch of \(events.count) events.")
184 |                         DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/MatomoTracker/MatomoTracker.swift:480:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
478 |         guard Thread.isMainThread else {
479 |             DispatchQueue.main.sync {
480 |                 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
481 |             }
482 |             return
[11/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 |         }
[12/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 |         }
[13/21] Compiling MatomoTracker MemoryQueue.swift
[14/21] Compiling MatomoTracker OrderItem.swift
[15/23] Compiling MatomoTracker Dispatcher.swift
[16/23] Compiling MatomoTracker Event.swift
[17/23] Compiling MatomoTracker Application.swift
[18/23] Compiling MatomoTracker CustomDimension.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:87: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
 85 |     @objc public var contentBase: URL?
 86 |
 87 |     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
 88 |
 89 |     /// Create and Configure a new Tracker
[22/23] Compiling MatomoTracker UserDefaultsQueue.swift
[23/23] Compiling MatomoTracker Visitor.swift
Build complete! (8.06s)
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.