The Swift Package Index logo.Swift Package Index

Build Information

Successful build of MediaSizeWatchdog, reference v2.0.0 (23a1c1), with Swift 6.1 for macOS (SPM) on 29 Jun 2026 07:21:04 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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aykhanhajiyev/media-size-watchdog.git
Reference: v2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aykhanhajiyev/media-size-watchdog
 * tag               v2.0.0     -> FETCH_HEAD
HEAD is now at 23a1c1b Remove debug-only usage guidance from README.
Cloned https://github.com/aykhanhajiyev/media-size-watchdog.git
Revision (git rev-parse @):
23a1c1b6f0cd47e8ba871f2576af877489fca949
SUCCESS checkout https://github.com/aykhanhajiyev/media-size-watchdog.git at v2.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aykhanhajiyev/media-size-watchdog.git
https://github.com/aykhanhajiyev/media-size-watchdog.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MediaSizeWatchdog",
  "name" : "MediaSizeWatchdog",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "MediaSizeWatchdog",
      "targets" : [
        "MediaSizeWatchdog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MediaSizeWatchdogTests",
      "module_type" : "SwiftTarget",
      "name" : "MediaSizeWatchdogTests",
      "path" : "Tests/MediaSizeWatchdogTests",
      "sources" : [
        "MediaSizeWatchdogTests.swift"
      ],
      "target_dependencies" : [
        "MediaSizeWatchdog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MediaSizeWatchdog",
      "module_type" : "SwiftTarget",
      "name" : "MediaSizeWatchdog",
      "path" : "Sources/MediaSizeWatchdog",
      "product_memberships" : [
        "MediaSizeWatchdog"
      ],
      "sources" : [
        "CustomNetworkAdapter.swift",
        "MediaSizeAdapter.swift",
        "MediaSizeFormatter.swift",
        "MediaSizeIssue.swift",
        "MediaSizeIssueStore.swift",
        "MediaSizeLogger.swift",
        "MediaSizeWatchdog.swift",
        "MediaSizeWatchdogConfig.swift",
        "MediaSource.swift",
        "MediaType.swift",
        "NSLock+MediaSizeWatchdog.swift",
        "URLSessionMediaAdapter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/14] Compiling MediaSizeWatchdog MediaSizeIssueStore.swift
[4/14] Compiling MediaSizeWatchdog NSLock+MediaSizeWatchdog.swift
[5/15] Compiling MediaSizeWatchdog MediaSource.swift
[6/15] Compiling MediaSizeWatchdog MediaType.swift
[7/15] Compiling MediaSizeWatchdog MediaSizeWatchdogConfig.swift
[8/15] Compiling MediaSizeWatchdog MediaSizeWatchdog.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/MediaSizeWatchdog.swift:4:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MediaSizeWatchdog' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public final class MediaSizeWatchdog {
    |                    `- note: class 'MediaSizeWatchdog' does not conform to the 'Sendable' protocol
  4 |     public static let shared = MediaSizeWatchdog()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MediaSizeWatchdog' 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
  5 |
  6 |     public private(set) var issueStore: MediaSizeIssueStore
[9/15] Compiling MediaSizeWatchdog MediaSizeLogger.swift
[10/15] Emitting module MediaSizeWatchdog
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/MediaSizeWatchdog.swift:4:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MediaSizeWatchdog' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import Foundation
  2 |
  3 | public final class MediaSizeWatchdog {
    |                    `- note: class 'MediaSizeWatchdog' does not conform to the 'Sendable' protocol
  4 |     public static let shared = MediaSizeWatchdog()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MediaSizeWatchdog' 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
  5 |
  6 |     public private(set) var issueStore: MediaSizeIssueStore
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:32:29: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |     private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
 31 |     private static let reporterLock = NSLock()
 32 |     private static weak var reporter: MediaSizeReporter?
    |                             |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
    |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     private var dataTask: URLSessionDataTask?
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:13: warning: 'Sendable' class 'URLSessionMediaURLProtocol' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
    |             `- warning: 'Sendable' class 'URLSessionMediaURLProtocol' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 30 |     private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
 31 |     private static let reporterLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:34:17: warning: stored property 'dataTask' of 'Sendable'-conforming class 'URLSessionMediaURLProtocol' is mutable; this is an error in the Swift 6 language mode
 32 |     private static weak var reporter: MediaSizeReporter?
 33 |
 34 |     private var dataTask: URLSessionDataTask?
    |                 `- warning: stored property 'dataTask' of 'Sendable'-conforming class 'URLSessionMediaURLProtocol' is mutable; this is an error in the Swift 6 language mode
 35 |     private var responseURL: URL?
 36 |     private var mimeType: String?
[11/15] Compiling MediaSizeWatchdog CustomNetworkAdapter.swift
[12/15] Compiling MediaSizeWatchdog MediaSizeAdapter.swift
[13/15] Compiling MediaSizeWatchdog MediaSizeFormatter.swift
[14/15] Compiling MediaSizeWatchdog MediaSizeIssue.swift
[15/15] Compiling MediaSizeWatchdog URLSessionMediaAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:32:29: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |     private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
 31 |     private static let reporterLock = NSLock()
 32 |     private static weak var reporter: MediaSizeReporter?
    |                             |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                             |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
    |                             |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
    |                             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     private var dataTask: URLSessionDataTask?
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:13: warning: 'Sendable' class 'URLSessionMediaURLProtocol' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
    |             `- warning: 'Sendable' class 'URLSessionMediaURLProtocol' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 30 |     private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
 31 |     private static let reporterLock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:34:17: warning: stored property 'dataTask' of 'Sendable'-conforming class 'URLSessionMediaURLProtocol' is mutable; this is an error in the Swift 6 language mode
 32 |     private static weak var reporter: MediaSizeReporter?
 33 |
 34 |     private var dataTask: URLSessionDataTask?
    |                 `- warning: stored property 'dataTask' of 'Sendable'-conforming class 'URLSessionMediaURLProtocol' is mutable; this is an error in the Swift 6 language mode
 35 |     private var responseURL: URL?
 36 |     private var mimeType: String?
Build complete! (6.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MediaSizeWatchdog",
  "name" : "MediaSizeWatchdog",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "MediaSizeWatchdog",
      "targets" : [
        "MediaSizeWatchdog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MediaSizeWatchdogTests",
      "module_type" : "SwiftTarget",
      "name" : "MediaSizeWatchdogTests",
      "path" : "Tests/MediaSizeWatchdogTests",
      "sources" : [
        "MediaSizeWatchdogTests.swift"
      ],
      "target_dependencies" : [
        "MediaSizeWatchdog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MediaSizeWatchdog",
      "module_type" : "SwiftTarget",
      "name" : "MediaSizeWatchdog",
      "path" : "Sources/MediaSizeWatchdog",
      "product_memberships" : [
        "MediaSizeWatchdog"
      ],
      "sources" : [
        "CustomNetworkAdapter.swift",
        "MediaSizeAdapter.swift",
        "MediaSizeFormatter.swift",
        "MediaSizeIssue.swift",
        "MediaSizeIssueStore.swift",
        "MediaSizeLogger.swift",
        "MediaSizeWatchdog.swift",
        "MediaSizeWatchdogConfig.swift",
        "MediaSource.swift",
        "MediaType.swift",
        "NSLock+MediaSizeWatchdog.swift",
        "URLSessionMediaAdapter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.