The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Aoxiang, reference main (bebfbd), with Swift 6.1 for macOS (SPM) on 12 Aug 2026 03:59:44 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build 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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/isaced/Aoxiang.git
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",
        "MiddlewareTests.swift",
        "Utils.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.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/9] Compiling Aoxiang HTTPResponse.swift
[4/9] Compiling Aoxiang HTTPParser.swift
[5/9] Compiling Aoxiang HTTPRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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 Socket.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
 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
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
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
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
 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
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
121 |
122 |                     strongSelf.queue.async {
123 |                         strongSelf.sockets.remove(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure
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 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/8] 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
 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
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
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
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
 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
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
121 |
122 |                     strongSelf.queue.async {
123 |                         strongSelf.sockets.remove(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure
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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling Aoxiang HTTPParser.swift
[4/8] Compiling Aoxiang HTTPRequest.swift
[5/8] Compiling Aoxiang HTTPRouter.swift
[6/8] 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/8] Compiling Aoxiang Socket.swift
[8/8] Compiling Aoxiang HTTPResponse.swift
BUILD FAILURE 6.1 macosSpm