Build Information
Successful build of SimpleNetworking, reference master (bd2bd4
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 21:04:46 UTC.
Swift 6 data race errors: 6
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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/SimpleNetworking.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gonzalezreal/SimpleNetworking
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at bd2bd41 Update README
Cloned https://github.com/gonzalezreal/SimpleNetworking.git
Revision (git rev-parse @):
bd2bd41ab92d83a0de1991c4b10d5f182fafee2f
SUCCESS checkout https://github.com/gonzalezreal/SimpleNetworking.git at master
Fetching https://github.com/apple/swift-log from cache
Fetched https://github.com/apple/swift-log from cache (0.63s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.2.0 (1.22s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "simplenetworking",
"name": "SimpleNetworking",
"url": "https://github.com/gonzalezreal/SimpleNetworking.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SimpleNetworking",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/gonzalezreal/SimpleNetworking.git
[1/453] Fetching simplenetworking
Fetched https://github.com/gonzalezreal/SimpleNetworking.git from cache (0.71s)
Fetching https://github.com/apple/swift-log from cache
Fetched https://github.com/apple/swift-log from cache (0.52s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (1.01s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Creating working copy for https://github.com/gonzalezreal/SimpleNetworking.git
Working copy of https://github.com/gonzalezreal/SimpleNetworking.git resolved at master (bd2bd41)
warning: '.resolve-product-dependencies': dependency 'simplenetworking' is not used by any target
Found 1 product dependencies
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/gonzalezreal/SimpleNetworking.git
https://github.com/gonzalezreal/SimpleNetworking.git
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
}
],
"manifest_display_name" : "SimpleNetworking",
"name" : "SimpleNetworking",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "SimpleNetworking",
"targets" : [
"SimpleNetworking"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SimpleNetworkingTests",
"module_type" : "SwiftTarget",
"name" : "SimpleNetworkingTests",
"path" : "Tests/SimpleNetworkingTests",
"sources" : [
"APIClientTest.swift",
"APIRequestTest.swift",
"Fixtures.swift",
"HTTPURLResponseAdditionsTest.swift",
"URLRequestAdditionsTest.swift"
],
"target_dependencies" : [
"SimpleNetworking"
],
"type" : "test"
},
{
"c99name" : "SimpleNetworking",
"module_type" : "SwiftTarget",
"name" : "SimpleNetworking",
"path" : "Sources/SimpleNetworking",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"SimpleNetworking"
],
"sources" : [
"APIClient.swift",
"APIClientConfiguration.swift",
"APIClientError.swift",
"APIError.swift",
"APIRequest+Convenience.swift",
"APIRequest.swift",
"ContentType.swift",
"Data+LogDescription.swift",
"Dictionary+LogDescription.swift",
"HTTPStubProtocol.swift",
"HTTPURLResponse+Logging.swift",
"HeaderField.swift",
"Internal/Exports.swift",
"URLRequest+APIRequest.swift",
"URLSession+Stubbed.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
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
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Compiling Logging Locks.swift
[5/7] Emitting module Logging
[6/7] Compiling Logging LogHandler.swift
[7/7] Compiling Logging Logging.swift
[8/22] Compiling SimpleNetworking Dictionary+LogDescription.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Stubs a valid response for a given API request.
[9/22] Compiling SimpleNetworking HTTPStubProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Stubs a valid response for a given API request.
[10/22] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
[11/22] Compiling SimpleNetworking ContentType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 | public let rawValue: String
28 |
:
37 |
38 | public extension ContentType {
39 | static let json = ContentType(rawValue: "application/json")
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[12/22] Compiling SimpleNetworking Data+LogDescription.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 | public let rawValue: String
28 |
:
37 |
38 | public extension ContentType {
39 | static let json = ContentType(rawValue: "application/json")
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[13/22] Compiling SimpleNetworking APIRequest+Convenience.swift
[14/22] Compiling SimpleNetworking APIRequest.swift
[15/22] Compiling SimpleNetworking APIClient.swift
[16/22] Compiling SimpleNetworking APIClientConfiguration.swift
[17/22] Emitting module SimpleNetworking
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
| `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 | /// The HTTP status code.
29 | public let statusCode: Int
30 |
31 | /// The error response.
32 | public let error: Error?
| `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 | public init(statusCode: Int, error: Error?) {
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 | public let rawValue: String
28 |
:
37 |
38 | public extension ContentType {
39 | static let json = ContentType(rawValue: "application/json")
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
69 | }
70 |
71 | private static var stubs: [URLRequest: Stub] = [:]
| |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Stubs a valid response for a given API request.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
53 | public extension HeaderField {
54 | /// `"Accept"` header field.
55 | static let accept = HeaderField(rawValue: "Accept")
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// `"Authorization"` header field.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
56 |
57 | /// `"Authorization"` header field.
58 | static let authorization = HeaderField(rawValue: "Authorization")
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// `"Content-Type"` header field.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
59 |
60 | /// `"Content-Type"` header field.
61 | static let contentType = HeaderField(rawValue: "Content-Type")
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | }
63 |
[18/22] Compiling SimpleNetworking APIClientError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
| `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 | /// The HTTP status code.
29 | public let statusCode: Int
30 |
31 | /// The error response.
32 | public let error: Error?
| `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 | public init(statusCode: Int, error: Error?) {
[19/22] Compiling SimpleNetworking APIError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
| `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 | /// The HTTP status code.
29 | public let statusCode: Int
30 |
31 | /// The error response.
32 | public let error: Error?
| `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 | public init(statusCode: Int, error: Error?) {
[20/22] Compiling SimpleNetworking HeaderField.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
53 | public extension HeaderField {
54 | /// `"Accept"` header field.
55 | static let accept = HeaderField(rawValue: "Accept")
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// `"Authorization"` header field.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
56 |
57 | /// `"Authorization"` header field.
58 | static let authorization = HeaderField(rawValue: "Authorization")
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// `"Content-Type"` header field.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
| `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 | public let rawValue: String
47 |
:
59 |
60 | /// `"Content-Type"` header field.
61 | static let contentType = HeaderField(rawValue: "Content-Type")
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | }
63 |
[21/22] Compiling SimpleNetworking Exports.swift
[22/22] Compiling SimpleNetworking URLRequest+APIRequest.swift
[23/23] Compiling SimpleNetworking URLSession+Stubbed.swift
Build complete! (5.33s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
}
],
"manifest_display_name" : "SimpleNetworking",
"name" : "SimpleNetworking",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "SimpleNetworking",
"targets" : [
"SimpleNetworking"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SimpleNetworkingTests",
"module_type" : "SwiftTarget",
"name" : "SimpleNetworkingTests",
"path" : "Tests/SimpleNetworkingTests",
"sources" : [
"APIClientTest.swift",
"APIRequestTest.swift",
"Fixtures.swift",
"HTTPURLResponseAdditionsTest.swift",
"URLRequestAdditionsTest.swift"
],
"target_dependencies" : [
"SimpleNetworking"
],
"type" : "test"
},
{
"c99name" : "SimpleNetworking",
"module_type" : "SwiftTarget",
"name" : "SimpleNetworking",
"path" : "Sources/SimpleNetworking",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"SimpleNetworking"
],
"sources" : [
"APIClient.swift",
"APIClientConfiguration.swift",
"APIClientError.swift",
"APIError.swift",
"APIRequest+Convenience.swift",
"APIRequest.swift",
"ContentType.swift",
"Data+LogDescription.swift",
"Dictionary+LogDescription.swift",
"HTTPStubProtocol.swift",
"HTTPURLResponse+Logging.swift",
"HeaderField.swift",
"Internal/Exports.swift",
"URLRequest+APIRequest.swift",
"URLSession+Stubbed.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.