Build Information
Failed to build Aoxiang, reference main (bebfbd), with Swift 6.3 for macOS (SPM) on 12 Aug 2026 04:05:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/Aoxiang.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/isaced/Aoxiang
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at bebfbd2 feat: add background task support for iOS
Cloned https://github.com/isaced/Aoxiang.git
Revision (git rev-parse @):
bebfbd20b5f3ac04977936f5ec2569077cb7b351
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/isaced/Aoxiang.git at main
========================================
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",
"traits": [
"default"
],
"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",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/isaced/Aoxiang.git
[1/175] Fetching aoxiang
Fetched https://github.com/isaced/Aoxiang.git from cache (0.84s)
Creating working copy for https://github.com/isaced/Aoxiang.git
Working copy of https://github.com/isaced/Aoxiang.git resolved at main (bebfbd2)
warning: '.resolve-product-dependencies': dependency 'aoxiang' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/isaced/Aoxiang.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling Aoxiang Socket.swift
[4/9] Compiling Aoxiang HTTPRequest.swift
[5/9] Compiling Aoxiang HTTPResponse.swift
[6/9] Emitting module Aoxiang
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:70:33: error: cannot find type 'UIBackgroundTaskIdentifier' in scope
68 | private var port: in_port_t = 8080
69 |
70 | private var backgroundTask: UIBackgroundTaskIdentifier?
| `- error: cannot find type 'UIBackgroundTaskIdentifier' in scope
71 |
72 | /// Create a server instance
[7/9] Compiling Aoxiang HTTPRouter.swift
[8/9] Compiling Aoxiang HTTPParser.swift
[9/9] Compiling Aoxiang HTTPServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:70:33: error: cannot find type 'UIBackgroundTaskIdentifier' in scope
68 | private var port: in_port_t = 8080
69 |
70 | private var backgroundTask: UIBackgroundTaskIdentifier?
| `- error: cannot find type 'UIBackgroundTaskIdentifier' in scope
71 |
72 | /// Create a server instance
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:137:57: error: cannot find 'UIApplication' in scope
135 | #endif
136 |
137 | NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: nil) { [weak self] _ in
| `- error: cannot find 'UIApplication' in scope
138 | UIApplication.shared.beginBackgroundTask()
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:138:13: error: cannot find 'UIApplication' in scope
136 |
137 | NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: nil) { [weak self] _ in
138 | UIApplication.shared.beginBackgroundTask()
| `- error: cannot find 'UIApplication' in scope
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:117:25: warning: capture of 'strongSelf' with non-Sendable type 'HTTPServer' in a '@Sendable' closure [#SendableClosureCaptures]
49 | /// }
50 | /// try server.start(3000)
51 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
52 | /// A butil-in router middleware
53 | let router = HTTPRouter()
:
115 | guard let strongSelf = self else { return }
116 | strongSelf.queue.async {
117 | strongSelf.sockets.insert(socket)
| `- warning: capture of 'strongSelf' with non-Sendable type 'HTTPServer' in a '@Sendable' closure [#SendableClosureCaptures]
118 | }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:117:51: warning: capture of 'socket' with non-Sendable type 'Socket' in a '@Sendable' closure [#SendableClosureCaptures]
115 | guard let strongSelf = self else { return }
116 | strongSelf.queue.async {
117 | strongSelf.sockets.insert(socket)
| `- warning: capture of 'socket' with non-Sendable type 'Socket' in a '@Sendable' closure [#SendableClosureCaptures]
118 | }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/Socket.swift:24:7: note: class 'Socket' does not conform to the 'Sendable' protocol
22 | ///
23 | /// This class is used to create a socket, bind it to a port, listen for incoming connections, and accept them.
24 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
25 | let sock: Int32
26 |
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:123:25: warning: capture of 'strongSelf' with non-Sendable type 'HTTPServer' in a '@Sendable' closure [#SendableClosureCaptures]
49 | /// }
50 | /// try server.start(3000)
51 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
52 | /// A butil-in router middleware
53 | let router = HTTPRouter()
:
121 |
122 | strongSelf.queue.async {
123 | strongSelf.sockets.remove(socket)
| `- warning: capture of 'strongSelf' with non-Sendable type 'HTTPServer' in a '@Sendable' closure [#SendableClosureCaptures]
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:123:51: warning: capture of 'socket' with non-Sendable type 'Socket' in a '@Sendable' closure [#SendableClosureCaptures]
121 |
122 | strongSelf.queue.async {
123 | strongSelf.sockets.remove(socket)
| `- warning: capture of 'socket' with non-Sendable type 'Socket' in a '@Sendable' closure [#SendableClosureCaptures]
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/Aoxiang/Socket.swift:24:7: note: class 'Socket' does not conform to the 'Sendable' protocol
22 | ///
23 | /// This class is used to create a socket, bind it to a port, listen for incoming connections, and accept them.
24 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
25 | let sock: Int32
26 |
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
BUILD FAILURE 6.3 macosSpm