Build Information
Successful build of NetworkMonitor, reference main (9ce226), with Swift 6.1 for macOS (SPM) on 25 Sep 2026 20:24:38 UTC.
Swift 6 data race errors: 3
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/NetworkMonitor.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/NetworkMonitor
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9ce2265 Fix Linux
Cloned https://github.com/0xWDG/NetworkMonitor.git
Revision (git rev-parse @):
9ce22651df24b554fff4df779449ac1049f8d61a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/NetworkMonitor.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/0xWDG/NetworkMonitor.git
https://github.com/0xWDG/NetworkMonitor.git
{
"dependencies" : [
],
"manifest_display_name" : "NetworkMonitor",
"name" : "NetworkMonitor",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "NetworkMonitor",
"targets" : [
"NetworkMonitor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkMonitorTests",
"module_type" : "SwiftTarget",
"name" : "NetworkMonitorTests",
"path" : "Tests/NetworkMonitorTests",
"sources" : [
"NetworkMonitorTests.swift"
],
"target_dependencies" : [
"NetworkMonitor"
],
"type" : "test"
},
{
"c99name" : "NetworkMonitor",
"module_type" : "SwiftTarget",
"name" : "NetworkMonitor",
"path" : "Sources/NetworkMonitor",
"product_memberships" : [
"NetworkMonitor"
],
"sources" : [
"NetworkMonitor.swift",
"NetworkMonitorObserver.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
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/5] Compiling NetworkMonitor NetworkMonitorObserver.swift
[4/5] Compiling NetworkMonitor NetworkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:63:24: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | private static let stateLock = NSLock()
63 | private static var log = defaultLog
| |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | private static var logOptions: LogOptions = .default
65 | private static var isRegistered = false
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:64:24: warning: static property 'logOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 | private static let stateLock = NSLock()
63 | private static var log = defaultLog
64 | private static var logOptions: LogOptions = .default
| |- warning: static property 'logOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | private static var isRegistered = false
66 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:65:24: warning: static property 'isRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | private static var log = defaultLog
64 | private static var logOptions: LogOptions = .default
65 | private static var isRegistered = false
| |- warning: static property 'isRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// Registers NetworkMonitor's URL protocol and logs network traffic.
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:145:23: warning: capture of 'self' with non-sendable type 'NetworkTrafficURLProtocol?' in a '@Sendable' closure
109 | }
110 |
111 | private class NetworkTrafficURLProtocol: URLProtocol {
| `- note: class 'NetworkTrafficURLProtocol' does not conform to the 'Sendable' protocol
112 | private static let handledRequestKey = "nl.wesleydegroot.NetworkMonitor.handled"
113 |
:
143 |
144 | loadingTask = URLSession.shared.dataTask(with: request) { [weak self] data, response, error in
145 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'NetworkTrafficURLProtocol?' in a '@Sendable' closure
146 | return
147 | }
[5/5] Emitting module NetworkMonitor
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:63:24: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | private static let stateLock = NSLock()
63 | private static var log = defaultLog
| |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | private static var logOptions: LogOptions = .default
65 | private static var isRegistered = false
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:64:24: warning: static property 'logOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 | private static let stateLock = NSLock()
63 | private static var log = defaultLog
64 | private static var logOptions: LogOptions = .default
| |- warning: static property 'logOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | private static var isRegistered = false
66 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkMonitor/NetworkMonitor.swift:65:24: warning: static property 'isRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | private static var log = defaultLog
64 | private static var logOptions: LogOptions = .default
65 | private static var isRegistered = false
| |- warning: static property 'isRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// Registers NetworkMonitor's URL protocol and logs network traffic.
Build complete! (4.63s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NetworkMonitor",
"name" : "NetworkMonitor",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "NetworkMonitor",
"targets" : [
"NetworkMonitor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetworkMonitorTests",
"module_type" : "SwiftTarget",
"name" : "NetworkMonitorTests",
"path" : "Tests/NetworkMonitorTests",
"sources" : [
"NetworkMonitorTests.swift"
],
"target_dependencies" : [
"NetworkMonitor"
],
"type" : "test"
},
{
"c99name" : "NetworkMonitor",
"module_type" : "SwiftTarget",
"name" : "NetworkMonitor",
"path" : "Sources/NetworkMonitor",
"product_memberships" : [
"NetworkMonitor"
],
"sources" : [
"NetworkMonitor.swift",
"NetworkMonitorObserver.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.