Build Information
Successful build of Aoxiang, reference 1.0.0 (db7da0
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 15:24: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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/Aoxiang.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/isaced/Aoxiang
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at db7da0e doc: Update README.md
Cloned https://github.com/isaced/Aoxiang.git
Revision (git rev-parse @):
db7da0ef43828d05911110793302866d6164e4bd
SUCCESS checkout https://github.com/isaced/Aoxiang.git at 1.0.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": "aoxiang",
"name": "Aoxiang",
"url": "https://github.com/isaced/Aoxiang.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Aoxiang",
"dependencies": [
]
}
]
}
Fetching https://github.com/isaced/Aoxiang.git
[1/151] Fetching aoxiang
Fetched https://github.com/isaced/Aoxiang.git from cache (0.71s)
Creating working copy for https://github.com/isaced/Aoxiang.git
Working copy of https://github.com/isaced/Aoxiang.git resolved at 1.0.0 (db7da0e)
warning: '.resolve-product-dependencies': dependency 'aoxiang' 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/isaced/Aoxiang.git
{
"dependencies" : [
],
"manifest_display_name" : "Aoxiang",
"name" : "Aoxiang",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Aoxiang",
"targets" : [
"Aoxiang"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AoxiangTests",
"module_type" : "SwiftTarget",
"name" : "AoxiangTests",
"path" : "Tests/AoxiangTests",
"sources" : [
"AoxiangTests.swift"
],
"target_dependencies" : [
"Aoxiang"
],
"type" : "test"
},
{
"c99name" : "Aoxiang",
"module_type" : "SwiftTarget",
"name" : "Aoxiang",
"path" : "Sources/Aoxiang",
"product_memberships" : [
"Aoxiang"
],
"sources" : [
"HTTPParser.swift",
"HTTPRequest.swift",
"HTTPResponse.swift",
"HTTPRouter.swift",
"HTTPServer.swift",
"Socket.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
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 -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--7754E27361AE5C74.txt
[3/9] Compiling Aoxiang Socket.swift
[4/9] Compiling Aoxiang HTTPServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:58:25: warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 |
25 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
26 | let router = HTTPRouter()
27 | var middleware: [HTTPMiddleware] = []
:
56 | guard let strongSelf = self else { return }
57 | strongSelf.queue.async {
58 | strongSelf.sockets.insert(socket)
| `- warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:58:51: warning: capture of 'socket' with non-sendable type 'Socket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | guard let strongSelf = self else { return }
57 | strongSelf.queue.async {
58 | strongSelf.sockets.insert(socket)
| `- warning: capture of 'socket' with non-sendable type 'Socket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/Socket.swift:22:7: note: class 'Socket' does not conform to the 'Sendable' protocol
20 |
21 | /// A wrapper around the POSIX socket API.
22 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
23 | let sock: Int32
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:64:25: warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 |
25 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
26 | let router = HTTPRouter()
27 | var middleware: [HTTPMiddleware] = []
:
62 |
63 | strongSelf.queue.async {
64 | strongSelf.sockets.remove(socket)
| `- warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:64:51: warning: capture of 'socket' with non-sendable type 'Socket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 |
63 | strongSelf.queue.async {
64 | strongSelf.sockets.remove(socket)
| `- warning: capture of 'socket' with non-sendable type 'Socket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/Socket.swift:22:7: note: class 'Socket' does not conform to the 'Sendable' protocol
20 |
21 | /// A wrapper around the POSIX socket API.
22 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
23 | let sock: Int32
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:52:37: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
50 | self.stop()
51 | self.socket = try Socket(port: port)
52 | Task(priority: .background) { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
53 | guard let strongSelf = self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
54 | while let socket: Socket = try? strongSelf.socket?.accept() {
55 | Task(priority: .background) { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:55:45: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
53 | guard let strongSelf = self else { return }
54 | while let socket: Socket = try? strongSelf.socket?.accept() {
55 | Task(priority: .background) { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
56 | guard let strongSelf = self else { return }
| `- note: closure captures non-Sendable 'self'
57 | strongSelf.queue.async {
58 | strongSelf.sockets.insert(socket)
| `- note: closure captures non-Sendable 'socket'
59 | }
60 |
[5/9] Compiling Aoxiang HTTPRouter.swift
[6/9] Compiling Aoxiang HTTPResponse.swift
[7/9] Emitting module Aoxiang
[8/9] Compiling Aoxiang HTTPRequest.swift
[9/9] Compiling Aoxiang HTTPParser.swift
Build complete! (8.00s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Aoxiang",
"name" : "Aoxiang",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Aoxiang",
"targets" : [
"Aoxiang"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AoxiangTests",
"module_type" : "SwiftTarget",
"name" : "AoxiangTests",
"path" : "Tests/AoxiangTests",
"sources" : [
"AoxiangTests.swift"
],
"target_dependencies" : [
"Aoxiang"
],
"type" : "test"
},
{
"c99name" : "Aoxiang",
"module_type" : "SwiftTarget",
"name" : "Aoxiang",
"path" : "Sources/Aoxiang",
"product_memberships" : [
"Aoxiang"
],
"sources" : [
"HTTPParser.swift",
"HTTPRequest.swift",
"HTTPResponse.swift",
"HTTPRouter.swift",
"HTTPServer.swift",
"Socket.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.