Build Information
Successful build of SwiftRestClient, reference 0.7.1 (eb7b2f
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 05:15:56 UTC.
Swift 6 data race errors: 1
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/duhnnie/SwiftRestClient.git
Reference: 0.7.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/duhnnie/SwiftRestClient
* tag 0.7.1 -> FETCH_HEAD
HEAD is now at eb7b2fc Merge pull request #21 from duhnnie/release/0.7.1
Cloned https://github.com/duhnnie/SwiftRestClient.git
Revision (git rev-parse @):
eb7b2fcf534b0293e11e139866c5117bc56e7695
SUCCESS checkout https://github.com/duhnnie/SwiftRestClient.git at 0.7.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/duhnnie/SwiftRestClient.git
https://github.com/duhnnie/SwiftRestClient.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRestClient",
"name" : "SwiftRestClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftRestClient",
"targets" : [
"SwiftRestClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftRestClientTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRestClientTests",
"path" : "Tests/SwiftRestClientTests",
"sources" : [
"SwiftRestClientTests.swift"
],
"target_dependencies" : [
"SwiftRestClient"
],
"type" : "test"
},
{
"c99name" : "SwiftRestClient",
"module_type" : "SwiftTarget",
"name" : "SwiftRestClient",
"path" : "Sources/SwiftRestClient",
"product_memberships" : [
"SwiftRestClient"
],
"sources" : [
"Encoders/HTTPFormURLEncoded.swift",
"SwiftRestClient.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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 SwiftRestClient HTTPFormURLEncoded.swift
[4/5] Compiling SwiftRestClient SwiftRestClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
4 | #endif
5 |
6 | public class SwiftRestClient {
| `- note: class 'SwiftRestClient' does not conform to the 'Sendable' protocol
7 | private enum HTTPMethod: String {
8 | case GET
:
16 | }
17 |
18 | public static let shared = SwiftRestClient()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' 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
19 | public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
20 | public typealias Headers = [String: String]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:43:85: warning: passing non-sendable parameter 'onCompletion' to function expecting a @Sendable closure
27 | body: Data? = nil,
28 | headers: Headers? = nil,
29 | onCompletion: @escaping RequestCompletion
| `- note: parameter 'onCompletion' is implicitly non-sendable
30 | ) -> Void {
31 | var request = URLRequest(url: url)
:
41 | request.httpBody = body
42 |
43 | let dataTask = URLSession.shared.dataTask(with: request, completionHandler: onCompletion)
| `- warning: passing non-sendable parameter 'onCompletion' to function expecting a @Sendable closure
44 |
45 | dataTask.resume()
[5/5] Emitting module SwiftRestClient
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
4 | #endif
5 |
6 | public class SwiftRestClient {
| `- note: class 'SwiftRestClient' does not conform to the 'Sendable' protocol
7 | private enum HTTPMethod: String {
8 | case GET
:
16 | }
17 |
18 | public static let shared = SwiftRestClient()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' 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
19 | public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
20 | public typealias Headers = [String: String]
Build complete! (4.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRestClient",
"name" : "SwiftRestClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftRestClient",
"targets" : [
"SwiftRestClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "SwiftRestClientTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRestClientTests",
"path" : "Tests/SwiftRestClientTests",
"sources" : [
"SwiftRestClientTests.swift"
],
"target_dependencies" : [
"SwiftRestClient"
],
"type" : "test"
},
{
"c99name" : "SwiftRestClient",
"module_type" : "SwiftTarget",
"name" : "SwiftRestClient",
"path" : "Sources/SwiftRestClient",
"product_memberships" : [
"SwiftRestClient"
],
"sources" : [
"Encoders/HTTPFormURLEncoded.swift",
"SwiftRestClient.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.