The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Flash, reference 0.3.0 (d6379f), with Swift 6.2 for Android on 25 Jun 2025 15:02:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nixzhu/Flash.git
Reference: 0.3.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/nixzhu/Flash
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at d6379f8 update version
Cloned https://github.com/nixzhu/Flash.git
Revision (git rev-parse @):
d6379f88b4748812df24cc3e56237ad96db6fa8e
SUCCESS checkout https://github.com/nixzhu/Flash.git at 0.3.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/nixzhu/Flash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/8] Compiling Flash FlashResponse.swift
[4/8] Compiling Flash FlashMiddleware.swift
[5/8] Compiling Flash FlashRequest.swift
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 |     var urlRequest: URLRequest {
522 |         get throws {
    |         `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 |             let url: URL = try {
524 |                 var urlComponents = URLComponents()
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:546:29: error: cannot find type 'URLRequest' in scope
544 |             }()
545 |
546 |             var urlRequest: URLRequest = .init(url: url, timeoutInterval: timeoutInterval)
    |                             `- error: cannot find type 'URLRequest' in scope
547 |             urlRequest.httpMethod = method.rawValue
548 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Compiling Flash FlashHeaderField.swift
[7/8] Emitting module Flash
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let middlewares: [FlashMiddleware]
 7 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |     private let middlewares: [FlashMiddleware]
 7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 |     var urlRequest: URLRequest {
522 |         get throws {
    |         `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 |             let url: URL = try {
524 |                 var urlComponents = URLComponents()
[8/8] Compiling Flash FlashClient.swift
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let middlewares: [FlashMiddleware]
 7 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |     private let middlewares: [FlashMiddleware]
 7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:34:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 |         do {
33 |             let urlRequest = try request.urlRequest
34 |             let (data, urlResponse) = try await session.data(for: urlRequest)
   |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |             guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:48:36: error: 'nil' requires a contextual type
46 |                         else {
47 |                             assertionFailure("Invalid header field!")
48 |                             return nil
   |                                    `- error: 'nil' requires a contextual type
49 |                         }
50 |
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:33:30: warning: no calls to throwing functions occur within 'try' expression
31 |
32 |         do {
33 |             let urlRequest = try request.urlRequest
   |                              `- warning: no calls to throwing functions occur within 'try' expression
34 |             let (data, urlResponse) = try await session.data(for: urlRequest)
35 |
BUILD FAILURE 6.2 android