Build Information
Successful build of LocalServer, reference 2.1.7 (95b1d5), with Swift 6.1 for macOS (SPM) on 26 Mar 2026 18:35:15 UTC.
Swift 6 data race errors: 5
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: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/db-in/LocalServer.git
Reference: 2.1.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/db-in/LocalServer
* tag 2.1.7 -> FETCH_HEAD
HEAD is now at 95b1d5b - Updating the server calls
Cloned https://github.com/db-in/LocalServer.git
Revision (git rev-parse @):
95b1d5bedc51b9c8a3e5484d53fcd195544a56fb
SUCCESS checkout https://github.com/db-in/LocalServer.git at 2.1.7
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/db-in/LocalServer.git
https://github.com/db-in/LocalServer.git
{
"dependencies" : [
],
"manifest_display_name" : "LocalServer",
"name" : "LocalServer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LocalServer",
"targets" : [
"LocalServer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LocalServerTests",
"module_type" : "SwiftTarget",
"name" : "LocalServerTests",
"path" : "LocalServerTests",
"sources" : [
"DataExtensionTests.swift",
"StubResponseTests.swift",
"StubServerTests.swift",
"TestExtensions.swift",
"UITestResponseTests.swift",
"WKWebViewResponseTests.swift"
],
"target_dependencies" : [
"LocalServer"
],
"type" : "test"
},
{
"c99name" : "LocalServer",
"module_type" : "SwiftTarget",
"name" : "LocalServer",
"path" : "LocalServer/Source",
"product_memberships" : [
"LocalServer"
],
"sources" : [
"DataExtension.swift",
"Exchangeable.swift",
"Router.swift",
"StubResponse.swift",
"StubServer.swift",
"StubURLHTTPProtocol.swift",
"StubURLSession.swift",
"StubWKWebView.swift",
"UITestResponse.swift",
"UITestServer.swift",
"UITestState.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
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/13] Compiling LocalServer StubURLHTTPProtocol.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubURLHTTPProtocol.swift:26:58: warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
21 | // MARK: - Protected Methods
22 |
23 | private func delay(_ delay: Double, closure: @escaping () -> Void) {
| `- note: parameter 'closure' is implicitly non-sendable
24 | let interval = Int64(delay * Double(NSEC_PER_SEC))
25 | let time = DispatchTime.now() + Double(interval) / Double(NSEC_PER_SEC)
26 | DispatchQueue.main.asyncAfter(deadline: time, execute: closure)
| `- warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
27 | }
28 |
[4/13] Compiling LocalServer UITestServer.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/UITestServer.swift:44:13: warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | static var responses = [[String : Any]]()
| |- warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'responses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// The key used by the `UITestServer` inside the `ProcessInfo().environment`.
[5/13] Compiling LocalServer StubWKWebView.swift
[6/13] Compiling LocalServer StubURLSession.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubURLSession.swift:13:13: warning: var 'exchanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - Definitions -
12 |
13 | private var exchanged = false
| |- warning: var 'exchanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'exchanged' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'exchanged' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | func exchangeOnce() {
[7/13] Compiling LocalServer StubServer.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubServer.swift:105:20: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | fileprivate var routes = [HTTPMethod : Router]()
105 | public static var shared: StubServer = { StubServer(allowRealRequests: true) }()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
106 |
107 | /// Current instance of any Local Server.
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubServer.swift:108:20: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 |
107 | /// Current instance of any Local Server.
108 | public static var instance: LocalServerDelegate? {
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | didSet {
110 | if let old = oldValue as? StubServer, old === shared, instance == nil {
[8/13] Compiling LocalServer StubResponse.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubResponse.swift:73:5: warning: capture of 'self' with non-sendable type 'StubResponse' in a '@Sendable' closure
14 | /// It defines the HTTP Status code, the Responder Header and Body.
15 | /// It can also define a delay in seconds, simulating delayed server responses.
16 | open class StubResponse {
| `- note: class 'StubResponse' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: - Properties
:
71 |
72 | if let httpResponse = response as? HTTPURLResponse {
73 | self.statusCode = httpResponse.statusCode
| `- warning: capture of 'self' with non-sendable type 'StubResponse' in a '@Sendable' closure
74 | self.headers = (httpResponse.allHeaderFields as? [String : String]) ?? self.headers
75 | }
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubResponse.swift:74:76: warning: implicit capture of 'self' requires that 'StubResponse' conforms to 'Sendable'; this is an error in the Swift 6 language mode
14 | /// It defines the HTTP Status code, the Responder Header and Body.
15 | /// It can also define a delay in seconds, simulating delayed server responses.
16 | open class StubResponse {
| `- note: class 'StubResponse' does not conform to the 'Sendable' protocol
17 |
18 | // MARK: - Properties
:
72 | if let httpResponse = response as? HTTPURLResponse {
73 | self.statusCode = httpResponse.statusCode
74 | self.headers = (httpResponse.allHeaderFields as? [String : String]) ?? self.headers
| `- warning: implicit capture of 'self' requires that 'StubResponse' conforms to 'Sendable'; this is an error in the Swift 6 language mode
75 | }
76 |
[9/13] Compiling LocalServer DataExtension.swift
[10/13] Compiling LocalServer Exchangeable.swift
[11/13] Compiling LocalServer Router.swift
[12/13] Compiling LocalServer UITestResponse.swift
[13/13] Emitting module LocalServer
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubServer.swift:105:20: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | fileprivate var routes = [HTTPMethod : Router]()
105 | public static var shared: StubServer = { StubServer(allowRealRequests: true) }()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
106 |
107 | /// Current instance of any Local Server.
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubServer.swift:108:20: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
106 |
107 | /// Current instance of any Local Server.
108 | public static var instance: LocalServerDelegate? {
| |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | didSet {
110 | if let old = oldValue as? StubServer, old === shared, instance == nil {
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/StubURLSession.swift:13:13: warning: var 'exchanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | // MARK: - Definitions -
12 |
13 | private var exchanged = false
| |- warning: var 'exchanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'exchanged' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'exchanged' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | func exchangeOnce() {
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/UITestServer.swift:44:13: warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | static var responses = [[String : Any]]()
| |- warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'responses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 |
46 | /// The key used by the `UITestServer` inside the `ProcessInfo().environment`.
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/UITestState.swift:20:13: warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | var currentState = ""
19 | var states = [String : UITestResponse]()
20 | static var responses = [String : UITestState]()
| |- warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'responses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Constructors
[14/14] Compiling LocalServer UITestState.swift
/Users/admin/builder/spi-builder-workspace/LocalServer/Source/UITestState.swift:20:13: warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | var currentState = ""
19 | var states = [String : UITestResponse]()
20 | static var responses = [String : UITestState]()
| |- warning: static property 'responses' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'responses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'responses' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // MARK: - Constructors
Build complete! (5.07s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "LocalServer",
"name" : "LocalServer",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LocalServer",
"targets" : [
"LocalServer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LocalServerTests",
"module_type" : "SwiftTarget",
"name" : "LocalServerTests",
"path" : "LocalServerTests",
"sources" : [
"DataExtensionTests.swift",
"StubResponseTests.swift",
"StubServerTests.swift",
"TestExtensions.swift",
"UITestResponseTests.swift",
"WKWebViewResponseTests.swift"
],
"target_dependencies" : [
"LocalServer"
],
"type" : "test"
},
{
"c99name" : "LocalServer",
"module_type" : "SwiftTarget",
"name" : "LocalServer",
"path" : "LocalServer/Source",
"product_memberships" : [
"LocalServer"
],
"sources" : [
"DataExtension.swift",
"Exchangeable.swift",
"Router.swift",
"StubResponse.swift",
"StubServer.swift",
"StubURLHTTPProtocol.swift",
"StubURLSession.swift",
"StubWKWebView.swift",
"UITestResponse.swift",
"UITestServer.swift",
"UITestState.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.