The Swift Package Index logo.Swift Package Index

Build Information

Successful build of LocalServer, reference master (5a7e3b), with Swift 6.1 for macOS (SPM) on 26 Mar 2026 18:29:26 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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/db-in/LocalServer.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/db-in/LocalServer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5a7e3b9 - SPM update
Cloned https://github.com/db-in/LocalServer.git
Revision (git rev-parse @):
5a7e3b9241dcaf48e5214d0d4faa697078caa7a2
SUCCESS checkout https://github.com/db-in/LocalServer.git at master
========================================
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"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/LocalServer/Source/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "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/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/15] 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() {
[5/15] 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`.
[6/15] Compiling LocalServer UITestResponse.swift
[7/15] 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 |
[8/15] 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
[9/15] Compiling LocalServer Router.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 |
[10/15] 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 |
[11/15] 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
[12/15] 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 {
[13/15] Compiling LocalServer StubWKWebView.swift
[14/15] Compiling LocalServer DataExtension.swift
[15/15] Compiling LocalServer Exchangeable.swift
[16/16] Compiling LocalServer resource_bundle_accessor.swift
Build complete! (4.96s)
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"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/LocalServer/Source/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "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.