Build Information
Successful build of MediaSizeWatchdog, reference main (ea09b6), with Swift 6.1 for macOS (SPM) on 29 Jun 2026 07:14:05 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aykhanhajiyev/media-size-watchdog.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aykhanhajiyev/media-size-watchdog
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ea09b61 update readme.md
Cloned https://github.com/aykhanhajiyev/media-size-watchdog.git
Revision (git rev-parse @):
ea09b614280f595a6580fb368a7aba00b7bd7ce8
SUCCESS checkout https://github.com/aykhanhajiyev/media-size-watchdog.git at main
========================================
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 NSLock+MediaSizeWatchdog.swift
[4/14] Compiling MediaSizeWatchdog MediaType.swift
[5/14] Compiling MediaSizeWatchdog MediaSizeWatchdogConfig.swift
[6/14] Compiling MediaSizeWatchdog MediaSource.swift
[7/14] Compiling MediaSizeWatchdog MediaSizeLogger.swift
[8/15] Compiling MediaSizeWatchdog MediaSizeIssueStore.swift
[9/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
[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 MediaSizeFormatter.swift
[12/15] Compiling MediaSizeWatchdog MediaSizeIssue.swift
[13/15] Compiling MediaSizeWatchdog CustomNetworkAdapter.swift
[14/15] Compiling MediaSizeWatchdog MediaSizeAdapter.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.04s)
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.