The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DeclarativeRequests, reference 2.0.1 (d0d1ae), with Swift 6.3 for Android on 19 Aug 2026 20:56:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sisoje/swift-declarative-requests.git
Reference: 2.0.1
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/sisoje/swift-declarative-requests
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at d0d1ae1 Authorization is scheme-driven; MIMEType typed on body/multipart
Cloned https://github.com/sisoje/swift-declarative-requests.git
Revision (git rev-parse @):
d0d1ae1b08be5eaa3055947c0911cf54b60e1b49
SUCCESS checkout https://github.com/sisoje/swift-declarative-requests.git at 2.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/sisoje/swift-declarative-requests.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:2b782c87e0bdf114eb0da12f6379a346f06569d6991407581da7dc03d1813adf
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/20] Emitting module DeclarativeRequests
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:63: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                                               `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:4:44: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
   |                                            `- error: cannot find type 'URLRequest' in scope
 5 |         self.keyPath = keyPath
 6 |         self.value = value
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:9:34: error: cannot find type 'URLRequest' in scope
 7 |     }
 8 |
 9 |     let keyPath: WritableKeyPath<URLRequest, Value> & Sendable
   |                                  `- error: cannot find type 'URLRequest' in scope
10 |     let value: @Sendable () throws -> Value
11 |
[4/22] Compiling DeclarativeRequests RequestBlock.swift
[5/22] Compiling DeclarativeRequests RequestFailure.swift
[6/22] Compiling DeclarativeRequests MIMEType.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:4:44: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
   |                                            `- error: cannot find type 'URLRequest' in scope
 5 |         self.keyPath = keyPath
 6 |         self.value = value
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Method.swift:27:25: error: cannot infer key path type from context; consider explicitly specifying a root type
25 |
26 |     public var body: some RequestBuildable {
27 |         RequestMutation(\.httpMethod, rawValue)
   |                         `- error: cannot infer key path type from context; consider explicitly specifying a root type
28 |     }
29 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Method.swift:27:9: error: generic parameter 'Value' could not be inferred
25 |
26 |     public var body: some RequestBuildable {
27 |         RequestMutation(\.httpMethod, rawValue)
   |         |- error: generic parameter 'Value' could not be inferred
   |         `- note: explicitly specify the generic arguments to fix this issue
28 |     }
29 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:3:31: note: 'Value' declared as parameter to type 'RequestMutation'
 1 | import Foundation
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
   |                               `- note: 'Value' declared as parameter to type 'RequestMutation'
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
 5 |         self.keyPath = keyPath
[7/22] Compiling DeclarativeRequests Method.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:4:44: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
   |                                            `- error: cannot find type 'URLRequest' in scope
 5 |         self.keyPath = keyPath
 6 |         self.value = value
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Method.swift:27:25: error: cannot infer key path type from context; consider explicitly specifying a root type
25 |
26 |     public var body: some RequestBuildable {
27 |         RequestMutation(\.httpMethod, rawValue)
   |                         `- error: cannot infer key path type from context; consider explicitly specifying a root type
28 |     }
29 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Method.swift:27:9: error: generic parameter 'Value' could not be inferred
25 |
26 |     public var body: some RequestBuildable {
27 |         RequestMutation(\.httpMethod, rawValue)
   |         |- error: generic parameter 'Value' could not be inferred
   |         `- note: explicitly specify the generic arguments to fix this issue
28 |     }
29 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:3:31: note: 'Value' declared as parameter to type 'RequestMutation'
 1 | import Foundation
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
   |                               `- note: 'Value' declared as parameter to type 'RequestMutation'
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
 5 |         self.keyPath = keyPath
[8/22] Compiling DeclarativeRequests RequestBuildable.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:63: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                                               `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:13: error: cannot find 'CFGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |             `- error: cannot find 'CFGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:36: error: cannot find 'CFBooleanGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
[9/22] Compiling DeclarativeRequests RequestBuilder.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:63: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                                               `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:13: error: cannot find 'CFGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |             `- error: cannot find 'CFGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:36: error: cannot find 'CFBooleanGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
[10/22] Compiling DeclarativeRequests EncodableQueryItems.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:63: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                                               `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/RequestBuildable.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | public extension RequestBuildable {
22 |     /// Materializes. Pass a premade request to apply the blocks on top of it instead of a blank one.
23 |     func request(initialRequest: URLRequest? = nil) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
24 |         let state = RequestState(request: initialRequest)
25 |         try transform(state)
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:13: error: cannot find 'CFGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |             `- error: cannot find 'CFGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/EncodableQueryItems.swift:11:36: error: cannot find 'CFBooleanGetTypeID' in scope
 9 |             string
10 |         } else if let number = any as? NSNumber {
11 |             CFGetTypeID(number) == CFBooleanGetTypeID()
   |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
12 |                 ? String(describing: number.boolValue)
13 |                 : number.stringValue
[11/22] Compiling DeclarativeRequests BaseURL.swift
[12/22] Compiling DeclarativeRequests Endpoint.swift
[13/22] Compiling DeclarativeRequests RequestMutation.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:4:44: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
   |                                            `- error: cannot find type 'URLRequest' in scope
 5 |         self.keyPath = keyPath
 6 |         self.value = value
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:9:34: error: cannot find type 'URLRequest' in scope
 7 |     }
 8 |
 9 |     let keyPath: WritableKeyPath<URLRequest, Value> & Sendable
   |                                  `- error: cannot find type 'URLRequest' in scope
10 |     let value: @Sendable () throws -> Value
11 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Timeout.swift:11:25: error: cannot infer key path type from context; consider explicitly specifying a root type
 9 |
10 |     public var body: some RequestBuildable {
11 |         RequestMutation(\.timeoutInterval, interval)
   |                         `- error: cannot infer key path type from context; consider explicitly specifying a root type
12 |     }
13 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Timeout.swift:11:9: error: generic parameter 'Value' could not be inferred
 9 |
10 |     public var body: some RequestBuildable {
11 |         RequestMutation(\.timeoutInterval, interval)
   |         |- error: generic parameter 'Value' could not be inferred
   |         `- note: explicitly specify the generic arguments to fix this issue
12 |     }
13 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:3:31: note: 'Value' declared as parameter to type 'RequestMutation'
 1 | import Foundation
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
   |                               `- note: 'Value' declared as parameter to type 'RequestMutation'
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
 5 |         self.keyPath = keyPath
[14/22] Compiling DeclarativeRequests Timeout.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:4:44: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
   |                                            `- error: cannot find type 'URLRequest' in scope
 5 |         self.keyPath = keyPath
 6 |         self.value = value
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:9:34: error: cannot find type 'URLRequest' in scope
 7 |     }
 8 |
 9 |     let keyPath: WritableKeyPath<URLRequest, Value> & Sendable
   |                                  `- error: cannot find type 'URLRequest' in scope
10 |     let value: @Sendable () throws -> Value
11 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Timeout.swift:11:25: error: cannot infer key path type from context; consider explicitly specifying a root type
 9 |
10 |     public var body: some RequestBuildable {
11 |         RequestMutation(\.timeoutInterval, interval)
   |                         `- error: cannot infer key path type from context; consider explicitly specifying a root type
12 |     }
13 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Timeout.swift:11:9: error: generic parameter 'Value' could not be inferred
 9 |
10 |     public var body: some RequestBuildable {
11 |         RequestMutation(\.timeoutInterval, interval)
   |         |- error: generic parameter 'Value' could not be inferred
   |         `- note: explicitly specify the generic arguments to fix this issue
12 |     }
13 | }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/RequestMutation.swift:3:31: note: 'Value' declared as parameter to type 'RequestMutation'
 1 | import Foundation
 2 |
 3 | public struct RequestMutation<Value>: RequestBuildable {
   |                               `- note: 'Value' declared as parameter to type 'RequestMutation'
 4 |     public init(_ keyPath: WritableKeyPath<URLRequest, Value> & Sendable, _ value: @autoclosure @escaping @Sendable () throws -> Value) {
 5 |         self.keyPath = keyPath
[15/22] Compiling DeclarativeRequests RequestBody+Multipart.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:7:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 5 | public extension RequestBody {
 6 |     static func string(_ string: String, type: MIMEType = .plainText) -> some RequestBuildable {
 7 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 8 |             state.request.httpBody = Data(string.utf8)
 9 |             state.request.setValue(type.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:22:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
20 |
21 |     static func urlEncoded(_ name: String, _ value: (some LosslessStringConvertible & Sendable)?) -> some RequestBuildable {
22 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
23 |             state.encodedBodyItems += [URLQueryItem(name: name, value: value?.description)]
24 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:29:22: error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
27 |
28 |     static func urlEncoded(_ encodable: any Encodable & Sendable) -> some RequestBuildable {
29 |         RequestBlock { state in
   |                      `- error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
30 |             state.encodedBodyItems += try EncodableQueryItems(encodable: encodable, encoder: state.encoder).items
31 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
[16/22] Compiling DeclarativeRequests RequestBody.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:7:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 5 | public extension RequestBody {
 6 |     static func string(_ string: String, type: MIMEType = .plainText) -> some RequestBuildable {
 7 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 8 |             state.request.httpBody = Data(string.utf8)
 9 |             state.request.setValue(type.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:22:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
20 |
21 |     static func urlEncoded(_ name: String, _ value: (some LosslessStringConvertible & Sendable)?) -> some RequestBuildable {
22 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
23 |             state.encodedBodyItems += [URLQueryItem(name: name, value: value?.description)]
24 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:29:22: error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
27 |
28 |     static func urlEncoded(_ encodable: any Encodable & Sendable) -> some RequestBuildable {
29 |         RequestBlock { state in
   |                      `- error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
30 |             state.encodedBodyItems += try EncodableQueryItems(encodable: encodable, encoder: state.encoder).items
31 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
[17/22] Compiling DeclarativeRequests Cookie.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:7:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 5 | public extension RequestBody {
 6 |     static func string(_ string: String, type: MIMEType = .plainText) -> some RequestBuildable {
 7 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
 8 |             state.request.httpBody = Data(string.utf8)
 9 |             state.request.setValue(type.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:22:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
20 |
21 |     static func urlEncoded(_ name: String, _ value: (some LosslessStringConvertible & Sendable)?) -> some RequestBuildable {
22 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
23 |             state.encodedBodyItems += [URLQueryItem(name: name, value: value?.description)]
24 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Body/RequestBody.swift:29:22: error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
27 |
28 |     static func urlEncoded(_ encodable: any Encodable & Sendable) -> some RequestBuildable {
29 |         RequestBlock { state in
   |                      `- error: invalid conversion from throwing function of type '(_) throws -> any RequestBuildable' to non-throwing function type '() -> any RequestBuildable'
30 |             state.encodedBodyItems += try EncodableQueryItems(encodable: encodable, encoder: state.encoder).items
31 |             state.request.setValue(MIMEType.formURLEncoded.rawValue, forHTTPHeaderField: Header.contentType.rawValue)
[18/22] Compiling DeclarativeRequests Query.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Header.swift:37:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
35 |
36 |     public func addValue(_ value: String) -> some RequestBuildable {
37 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
38 |             state.request.addValue(value, forHTTPHeaderField: rawValue)
39 |         }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Header.swift:43:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
41 |
42 |     public func setValue(_ value: String) -> some RequestBuildable {
43 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
44 |             state.request.setValue(value, forHTTPHeaderField: rawValue)
45 |         }
[19/22] Compiling DeclarativeRequests Header.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Header.swift:37:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
35 |
36 |     public func addValue(_ value: String) -> some RequestBuildable {
37 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
38 |             state.request.addValue(value, forHTTPHeaderField: rawValue)
39 |         }
/host/spi-builder-workspace/Sources/DeclarativeRequests/Syntax/Vocabulary/Header.swift:43:24: error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
41 |
42 |     public func setValue(_ value: String) -> some RequestBuildable {
43 |         RequestBlock { state in
   |                        `- error: contextual closure type '() -> any RequestBuildable' expects 0 arguments, but 1 was used in closure body
44 |             state.request.setValue(value, forHTTPHeaderField: rawValue)
45 |         }
[20/22] Compiling DeclarativeRequests RequestState.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:35: error: cannot find 'URLRequest' in scope
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                   `- error: cannot find 'URLRequest' in scope
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:52: error: cannot infer contextual base in reference to member 'placeholder'
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                                    `- error: cannot infer contextual base in reference to member 'placeholder'
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
[21/22] Compiling DeclarativeRequests URL+Placeholder.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:35: error: cannot find 'URLRequest' in scope
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                   `- error: cannot find 'URLRequest' in scope
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:52: error: cannot infer contextual base in reference to member 'placeholder'
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                                    `- error: cannot infer contextual base in reference to member 'placeholder'
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
[22/22] Compiling DeclarativeRequests Authorization.swift
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:14:25: error: cannot find type 'URLRequest' in scope
12 | /// isolation boundary, so there is no concurrent access to guard.
13 | public final class RequestState: @unchecked Sendable {
14 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:17:19: error: cannot find type 'URLRequest' in scope
15 |     public var encoder: JSONEncoder
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
   |                   `- error: cannot find type 'URLRequest' in scope
18 |         self.request = request ?? URLRequest(url: .placeholder)
19 |         self.encoder = encoder ?? JSONEncoder()
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:35: error: cannot find 'URLRequest' in scope
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                   `- error: cannot find 'URLRequest' in scope
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
/host/spi-builder-workspace/Sources/DeclarativeRequests/State/RequestState.swift:18:52: error: cannot infer contextual base in reference to member 'placeholder'
16 |
17 |     init(request: URLRequest? = nil, encoder: JSONEncoder? = nil) {
18 |         self.request = request ?? URLRequest(url: .placeholder)
   |                                                    `- error: cannot infer contextual base in reference to member 'placeholder'
19 |         self.encoder = encoder ?? JSONEncoder()
20 |     }
BUILD FAILURE 6.3 android