The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Requests, reference master (8504a5), with Swift 6.4 for Android on 16 Sep 2026 00:12:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexjohnj/Requests.git
Reference: master
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/alexjohnj/Requests
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8504a52 Version Bump
Cloned https://github.com/alexjohnj/Requests.git
Revision (git rev-parse @):
8504a521e463f5a6fe4d55c3876e3747295f5730
SUCCESS checkout https://github.com/alexjohnj/Requests.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/alexjohnj/Requests.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/DefaultValue.swift:23:37: error: cannot find 'URLRequest' in scope
21 |
22 |     /// The `useProtocolCachePolicy`.
23 |     public static let cachePolicy = URLRequest.CachePolicy.useProtocolCachePolicy
   |                                     `- error: cannot find 'URLRequest' in scope
24 |
25 |     /// 60 seconds.
/host/spi-builder-workspace/Sources/Request.swift:179:29: error: cannot find type 'URLRequest' in scope
177 |     public var queryItems: [URLQueryItem]
178 |
179 |     public var cachePolicy: URLRequest.CachePolicy
    |                             `- error: cannot find type 'URLRequest' in scope
180 |
181 |     public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Request.swift:204:20: error: cannot find type 'URLRequest' in scope
202 |       header: Header = DefaultValue.header,
203 |       queryItems: [URLQueryItem] = DefaultValue.queryItems,
204 |       cachePolicy: URLRequest.CachePolicy = DefaultValue.cachePolicy,
    |                    `- error: cannot find type 'URLRequest' in scope
205 |       timeoutInterval: TimeInterval = DefaultValue.timeout,
206 |       bodyProvider: BodyProvider = DefaultValue.bodyProvider,
/host/spi-builder-workspace/Sources/RequestConvertible.swift:56:22: error: cannot find type 'URLRequest' in scope
 54 |
 55 |     /// The caching policy to specify when converted to a `URLRequest`. Defaults to `.useProtocolCachePolicy`.
 56 |     var cachePolicy: URLRequest.CachePolicy { get }
    |                      `- error: cannot find type 'URLRequest' in scope
 57 |
 58 |     /// The timeout interval to specify when converted to a `URLRequest`. Defaults to `60.0`.
/host/spi-builder-workspace/Sources/RequestConvertible.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |     }
 85 |
 86 |     public var cachePolicy: URLRequest.CachePolicy {
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         return DefaultValue.cachePolicy
 88 |     }
/host/spi-builder-workspace/Sources/RequestConvertible.swift:139:42: error: cannot find type 'URLRequest' in scope
137 |     ///   - Any errors thrown by the request's `bodyProvider`.
138 |     ///
139 |     public func toURLRequest() throws -> URLRequest {
    |                                          `- error: cannot find type 'URLRequest' in scope
140 |         guard let url = buildRequestURL() else {
141 |             throw InvalidRequestURLError()
/host/spi-builder-workspace/Sources/RequestError.swift:36:25: error: cannot find type 'URLRequest' in scope
34 |
35 |     /// The failed request or `nil` if the request could not be constructed.
36 |     public let request: URLRequest?
   |                         `- error: cannot find type 'URLRequest' in scope
37 |
38 |     /// A response received before the error occurred or `nil` if there was no response.
/host/spi-builder-workspace/Sources/RequestError.swift:39:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 |     /// A response received before the error occurred or `nil` if there was no response.
39 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// A HTTP response received before the error occurred or `nil` if there was no response or `response` is not an
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestError.swift:44:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     /// HTTP response.
43 |     ///
44 |     public var httpResponse: HTTPURLResponse? {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |         return response as? HTTPURLResponse
46 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestError.swift:48:50: error: cannot find type 'URLRequest' in scope
46 |     }
47 |
48 |     public init(underlyingError: Error, request: URLRequest?, response: URLResponse?) {
   |                                                  `- error: cannot find type 'URLRequest' in scope
49 |         self.underlyingError = underlyingError
50 |         self.request = request
/host/spi-builder-workspace/Sources/RequestError.swift:48:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |     }
47 |
48 |     public init(underlyingError: Error, request: URLRequest?, response: URLResponse?) {
   |                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |         self.underlyingError = underlyingError
50 |         self.request = request
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ResponseDecoder.swift:14:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 |     /// The body of the decoder.
14 |     public let decode: (HTTPURLResponse, Data) throws -> Response
   |                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     public init(_ decode: @escaping (HTTPURLResponse, Data) throws -> Response) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ResponseDecoder.swift:16:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let decode: (HTTPURLResponse, Data) throws -> Response
15 |
16 |     public init(_ decode: @escaping (HTTPURLResponse, Data) throws -> Response) {
   |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         self.decode = decode
18 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLQueryItem+ExpresibleByDictionaryLiteral.swift:7:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 5 | import Foundation
 6 |
 7 | extension Array: ExpressibleByDictionaryLiteral where Element == URLQueryItem {
   | |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 8 |
 9 |     public typealias Key = String
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:10:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 | import Foundation
  9 |
 10 | public typealias NetworkResult<Resource> = Result<(HTTPURLResponse, Resource), RequestTransportError>
    |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |
 12 | extension URLSession {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 10 | public typealias NetworkResult<Resource> = Result<(HTTPURLResponse, Resource), RequestTransportError>
 11 |
 12 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 13 |
 14 |     /// Executes a `RequestConvertible` request and attempts to decode the response body.
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:128:71: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | // MARK: - Helper Functions
127 |
128 | private func decodeBody<Body>(from data: Data?, forResponse response: HTTPURLResponse,
    |                                                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |                               using responseDecoder: ResponseDecoder<Body>) throws -> Body {
130 |     guard Body.self != Void.self else { return () as! Body } // swiftlint:disable:this force_cast
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AuthenticationProvider.swift /host/spi-builder-workspace/Sources/BodyProvider.swift /host/spi-builder-workspace/Sources/CaseInsensitiveString.swift /host/spi-builder-workspace/Sources/DefaultValue.swift /host/spi-builder-workspace/Sources/Field.swift /host/spi-builder-workspace/Sources/HTTPMethod.swift /host/spi-builder-workspace/Sources/Header.swift /host/spi-builder-workspace/Sources/MediaType.swift /host/spi-builder-workspace/Sources/Request.swift /host/spi-builder-workspace/Sources/RequestBody.swift /host/spi-builder-workspace/Sources/RequestConvertible.swift /host/spi-builder-workspace/Sources/RequestError.swift /host/spi-builder-workspace/Sources/ResponseDecoder.swift /host/spi-builder-workspace/Sources/URL+StaticString.swift /host/spi-builder-workspace/Sources/URLQueryItem+ExpresibleByDictionaryLiteral.swift /host/spi-builder-workspace/Sources/URLSession+Requests.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Requests -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Requests_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Modules/Requests.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Modules/Requests.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Requests-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Requests-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Requests-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-android-aarch64/Requests-t.build/Objects-normal/aarch64/Modules/Requests.swiftmodule
[28 / 36] Requests
error: Build failed
BUILD FAILURE 6.4 android