Build Information
Successful build of HttpRequest, reference master (40a380
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 21:16:20 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mezhevikin/http-request.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mezhevikin/http-request
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 40a3808 Add links to README
Cloned https://github.com/mezhevikin/http-request.git
Revision (git rev-parse @):
40a38089750e938d3fc223c53954c9f93f16b261
SUCCESS checkout https://github.com/mezhevikin/http-request.git at master
========================================
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": "http-request",
"name": "HttpRequest",
"url": "https://github.com/mezhevikin/http-request.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/http-request",
"dependencies": [
]
}
]
}
Fetching https://github.com/mezhevikin/http-request.git
[1/78] Fetching http-request
Fetched https://github.com/mezhevikin/http-request.git from cache (0.70s)
Creating working copy for https://github.com/mezhevikin/http-request.git
Working copy of https://github.com/mezhevikin/http-request.git resolved at master (40a3808)
warning: '.resolve-product-dependencies': dependency 'http-request' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/mezhevikin/http-request.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling HttpRequest HttpRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:32:13: warning: capture of 'completion' with non-sendable type '(HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | response.data = data
31 | response.error = error
32 | completion(response)
| |- warning: capture of 'completion' with non-sendable type '(HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 | }.resume()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:17: warning: capture of 'completion' with non-sendable type '(T?, HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| |- warning: capture of 'completion' with non-sendable type '(T?, HttpResponse) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
51 | }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:28: warning: capture of 'json' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | }
35 |
36 | func json<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
37 | _ type: T.Type,
38 | completion: @escaping ((T?, HttpResponse) -> Void)
:
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| `- warning: capture of 'json' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:34: warning: capture of 'response' with non-sendable type 'HttpResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| `- warning: capture of 'response' with non-sendable type 'HttpResponse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | }
52 | }
:
54 | }
55 |
56 | public class HttpResponse {
| `- note: class 'HttpResponse' does not conform to the 'Sendable' protocol
57 | public var original: HTTPURLResponse?
58 | public var data: Data?
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:28: warning: reference to captured var 'json' in concurrently-executing code; this is an error in the Swift 6 language mode
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| `- warning: reference to captured var 'json' in concurrently-executing code; this is an error in the Swift 6 language mode
51 | }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
51 | }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:50:34: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
48 | }
49 | DispatchQueue.main.async {
50 | completion(json, response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'response' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
51 | }
52 | }
[4/4] Emitting module HttpRequest
Build complete! (5.80s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "HttpRequest",
"name" : "HttpRequest",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "HttpRequest",
"targets" : [
"HttpRequest"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HttpRequestTests",
"module_type" : "SwiftTarget",
"name" : "HttpRequestTests",
"path" : "Tests/HttpRequestTests",
"sources" : [
"HttpRequestTests.swift"
],
"target_dependencies" : [
"HttpRequest"
],
"type" : "test"
},
{
"c99name" : "HttpRequest",
"module_type" : "SwiftTarget",
"name" : "HttpRequest",
"path" : "Sources/HttpRequest",
"product_memberships" : [
"HttpRequest"
],
"sources" : [
"HttpRequest.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.