Build Information
Failed to build Endpoints, reference master (231912), with Swift 6.1 for Android on 27 May 2025 19:37:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isotopsweden/endpoints.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/isotopsweden/endpoints
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2319120 Clean up README/project in preparation of release (#30)
Cloned https://github.com/isotopsweden/endpoints.git
Revision (git rev-parse @):
2319120f00bc5a0fe7f5e492245a0da8c6b5d655
SUCCESS checkout https://github.com/isotopsweden/endpoints.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/isotopsweden/endpoints.git
https://github.com/isotopsweden/endpoints.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Endpoints",
"name" : "Endpoints",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "Endpoints",
"targets" : [
"Endpoints"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "EndpointsTesting",
"targets" : [
"EndpointsTesting"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EndpointsTests",
"module_type" : "SwiftTarget",
"name" : "EndpointsTests",
"path" : "Tests/EndpointsTests",
"sources" : [
"EndpointsTests.swift",
"Helpers/CommunicatorError.ErrorReason+Equatable.swift",
"Helpers/TestSubscriber.swift",
"Helpers/XCTestCase+assertResult.swift",
"Models/TestMessage.swift",
"TestEndpoint.swift",
"TestFixtures.swift"
],
"target_dependencies" : [
"Endpoints",
"EndpointsTesting"
],
"type" : "test"
},
{
"c99name" : "EndpointsTesting",
"module_type" : "SwiftTarget",
"name" : "EndpointsTesting",
"path" : "Sources/EndpointsTesting",
"product_memberships" : [
"EndpointsTesting"
],
"sources" : [
"TestTransporter.swift"
],
"target_dependencies" : [
"Endpoints"
],
"type" : "library"
},
{
"c99name" : "Endpoints",
"module_type" : "SwiftTarget",
"name" : "Endpoints",
"path" : "Sources/Endpoints",
"product_memberships" : [
"Endpoints",
"EndpointsTesting"
],
"sources" : [
"Communicator/Communicator+publisher.swift",
"Communicator/Communicator.swift",
"Communicator/CommunicatorError.swift",
"Communicator/CommunicatorResponse.swift",
"Decoder.swift",
"Endpoint.swift",
"HTTPURLResponse+successfulStatusCode.swift",
"Logger.swift",
"Request/Request+Cancellable.swift",
"Request/Request.swift",
"Transporter/Transporter.swift",
"Transporter/TransporterResponse.swift",
"Transporter/URLSession+Transporter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling Endpoints TransporterResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public struct TransporterResponse {
11 | public let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
14 | public init(response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.urlResponse = response
16 | self.data = data
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
[5/16] Compiling Endpoints Request+Cancellable.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 | init(dataTask: URLSessionDataTask) {
25 | self.init {
26 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 | }
28 | }
[6/16] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 | init(dataTask: URLSessionDataTask) {
25 | self.init {
26 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 | }
28 | }
[7/17] Compiling Endpoints HTTPURLResponse+successfulStatusCode.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
[8/17] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
[9/17] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
[10/17] Compiling Endpoints CommunicatorError.swift
/host/spi-builder-workspace/Sources/Endpoints/Communicator/CommunicatorError.swift:25:10: warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
23 | /// An error indicating that an unacceptable HTTP response code (not 200 - 300) was received from the server. More information
24 | /// can be found in the associated `ErrorReason`.
25 | case unacceptableStatusCode(ErrorReason)
| `- warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
26 |
27 | /// An error indicating the an unknown and unsupported response was received from the server.
28 | case unsupportedResponse
29 |
30 | public enum ErrorReason {
| `- note: consider making enum 'ErrorReason' conform to the 'Sendable' protocol
31 | /// The HTTP response code received from the server likely is a client error. In practice this means HTTP 400 - 499.
32 | /// If the server included response data, that is included in the associated `data` value.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/17] Compiling Endpoints CommunicatorResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Communicator/CommunicatorError.swift:25:10: warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
23 | /// An error indicating that an unacceptable HTTP response code (not 200 - 300) was received from the server. More information
24 | /// can be found in the associated `ErrorReason`.
25 | case unacceptableStatusCode(ErrorReason)
| `- warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
26 |
27 | /// An error indicating the an unknown and unsupported response was received from the server.
28 | case unsupportedResponse
29 |
30 | public enum ErrorReason {
| `- note: consider making enum 'ErrorReason' conform to the 'Sendable' protocol
31 | /// The HTTP response code received from the server likely is a client error. In practice this means HTTP 400 - 499.
32 | /// If the server included response data, that is included in the associated `data` value.
[12/17] Compiling Endpoints Communicator+publisher.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
32 | completionHandler: @escaping CompletionHandler<E.ResponseType>
33 | ) -> Request? where E: Endpoint {
34 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
35 |
36 | switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
43 | }
44 |
45 | log(request: request, method: endpoint.method)
| `- error: extra argument 'method' in call
46 |
47 | return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
45 | log(request: request, method: endpoint.method)
46 |
47 | return transporter.send(request) { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
48 | let responseParseResult = result.flatMap { transporterResponse in
49 | return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
70 |
71 | private func log(response: HTTPURLResponse) {
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | unpacker: (Data) throws -> ResponseType
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | case HTTPURLResponse.successfulStatusCode:
93 | let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
92 | case HTTPURLResponse.successfulStatusCode:
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
93 | let unpackerResult = Result {
94 | CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | CommunicatorResponse(
95 | body: try unpacker(data),
96 | code: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | headers: response.allHeaderFields)
98 | }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | body: try unpacker(data),
96 | code: response.statusCode,
97 | headers: response.allHeaderFields)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
98 | }
99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 | case 400..<500:
103 | return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
106 | return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | }
108 | }
[13/17] Compiling Endpoints Communicator.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
32 | completionHandler: @escaping CompletionHandler<E.ResponseType>
33 | ) -> Request? where E: Endpoint {
34 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
35 |
36 | switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
43 | }
44 |
45 | log(request: request, method: endpoint.method)
| `- error: extra argument 'method' in call
46 |
47 | return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
45 | log(request: request, method: endpoint.method)
46 |
47 | return transporter.send(request) { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
48 | let responseParseResult = result.flatMap { transporterResponse in
49 | return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
70 |
71 | private func log(response: HTTPURLResponse) {
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | unpacker: (Data) throws -> ResponseType
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | case HTTPURLResponse.successfulStatusCode:
93 | let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
92 | case HTTPURLResponse.successfulStatusCode:
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
93 | let unpackerResult = Result {
94 | CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | CommunicatorResponse(
95 | body: try unpacker(data),
96 | code: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | headers: response.allHeaderFields)
98 | }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | body: try unpacker(data),
96 | code: response.statusCode,
97 | headers: response.allHeaderFields)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
98 | }
99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 | case 400..<500:
103 | return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
106 | return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | }
108 | }
[14/17] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/CommunicatorError.swift:25:10: warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
23 | /// An error indicating that an unacceptable HTTP response code (not 200 - 300) was received from the server. More information
24 | /// can be found in the associated `ErrorReason`.
25 | case unacceptableStatusCode(ErrorReason)
| `- warning: associated value 'unacceptableStatusCode' of 'Sendable'-conforming enum 'CommunicatorError' has non-sendable type 'CommunicatorError.ErrorReason'; this is an error in the Swift 6 language mode
26 |
27 | /// An error indicating the an unknown and unsupported response was received from the server.
28 | case unsupportedResponse
29 |
30 | public enum ErrorReason {
| `- note: consider making enum 'ErrorReason' conform to the 'Sendable' protocol
31 | /// The HTTP response code received from the server likely is a client error. In practice this means HTTP 400 - 499.
32 | /// If the server included response data, that is included in the associated `data` value.
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public struct TransporterResponse {
11 | public let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
14 | public init(response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.urlResponse = response
16 | self.data = data
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/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension URLSession: Transporter {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | public func send(
12 | _ request: URLRequest,
[15/17] Compiling Endpoints Decoder.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 | }
76 |
77 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
78 | request.httpMethod = method.rawValue
79 | request.allHTTPHeaderFields = headers
[16/17] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 | }
76 |
77 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
78 | request.httpMethod = method.rawValue
79 | request.allHTTPHeaderFields = headers
[17/17] Compiling Endpoints URLSession+Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension URLSession: Transporter {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | public func send(
12 | _ request: URLRequest,
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:12:20: error: cannot find type 'URLRequest' in scope
10 | extension URLSession: Transporter {
11 | public func send(
12 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
14 | ) -> Request {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling Endpoints TransporterResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public struct TransporterResponse {
11 | public let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
14 | public init(response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.urlResponse = response
16 | self.data = data
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
[3/14] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
[4/15] Compiling Endpoints Request+Cancellable.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 | init(dataTask: URLSessionDataTask) {
25 | self.init {
26 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 | }
28 | }
[5/15] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 | init(dataTask: URLSessionDataTask) {
25 | self.init {
26 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 | }
28 | }
[6/15] Compiling Endpoints HTTPURLResponse+successfulStatusCode.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
[7/15] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
[8/15] Compiling Endpoints Decoder.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 | }
76 |
77 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
78 | request.httpMethod = method.rawValue
79 | request.allHTTPHeaderFields = headers
[9/15] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 | }
76 |
77 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
78 | request.httpMethod = method.rawValue
79 | request.allHTTPHeaderFields = headers
[10/15] Compiling Endpoints Communicator+publisher.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
32 | completionHandler: @escaping CompletionHandler<E.ResponseType>
33 | ) -> Request? where E: Endpoint {
34 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
35 |
36 | switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
43 | }
44 |
45 | log(request: request, method: endpoint.method)
| `- error: extra argument 'method' in call
46 |
47 | return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
45 | log(request: request, method: endpoint.method)
46 |
47 | return transporter.send(request) { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
48 | let responseParseResult = result.flatMap { transporterResponse in
49 | return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
70 |
71 | private func log(response: HTTPURLResponse) {
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | unpacker: (Data) throws -> ResponseType
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | case HTTPURLResponse.successfulStatusCode:
93 | let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
92 | case HTTPURLResponse.successfulStatusCode:
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
93 | let unpackerResult = Result {
94 | CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | CommunicatorResponse(
95 | body: try unpacker(data),
96 | code: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | headers: response.allHeaderFields)
98 | }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | body: try unpacker(data),
96 | code: response.statusCode,
97 | headers: response.allHeaderFields)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
98 | }
99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 | case 400..<500:
103 | return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
106 | return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | }
108 | }
[11/15] Compiling Endpoints Communicator.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
32 | completionHandler: @escaping CompletionHandler<E.ResponseType>
33 | ) -> Request? where E: Endpoint {
34 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
35 |
36 | switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
43 | }
44 |
45 | log(request: request, method: endpoint.method)
| `- error: extra argument 'method' in call
46 |
47 | return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
45 | log(request: request, method: endpoint.method)
46 |
47 | return transporter.send(request) { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
48 | let responseParseResult = result.flatMap { transporterResponse in
49 | return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
70 |
71 | private func log(response: HTTPURLResponse) {
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
74 | logger?.log("<Communicator> \(response.statusCode) \(urlString)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
75 | }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 | unpacker: (Data) throws -> ResponseType
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | case HTTPURLResponse.successfulStatusCode:
93 | let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
90 | ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
91 | switch response.statusCode {
92 | case HTTPURLResponse.successfulStatusCode:
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
93 | let unpackerResult = Result {
94 | CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | CommunicatorResponse(
95 | body: try unpacker(data),
96 | code: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | headers: response.allHeaderFields)
98 | }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | body: try unpacker(data),
96 | code: response.statusCode,
97 | headers: response.allHeaderFields)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
98 | }
99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 | case 400..<500:
103 | return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 | default:
106 | return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | }
108 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 | /// - `Request` token used for cancelling or inspecting the request.
22 | func send(
23 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
24 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 | ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |
19 | public init(
20 | transporter: Transporter = URLSession.shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | callbackQueue: DispatchQueue = .main,
22 | logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
63 | }
64 |
65 | private func log(request: URLRequest, method: HTTPMethod) {
| `- error: cannot find type 'URLRequest' in scope
66 | let urlString = request.url?.absoluteString ?? "<Missing URL>"
67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func log(response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | let urlString = response.url?.absoluteString ?? "<Missing URL>"
73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | extension Communicator {
86 | static func parseResponse<ResponseType>(
87 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
88 | data: Data,
89 | unpacker: (Data) throws -> ResponseType
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/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 | func asURLRequest() -> Result<URLRequest, CommunicatorError> {
| `- error: cannot find type 'URLRequest' in scope
65 | var urlComponents = URLComponents(
66 | url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | static var successfulStatusCode: Range<Int> {
12 | return 200..<300
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 | init(dataTask: URLSessionDataTask) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.init {
26 | dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public struct TransporterResponse {
11 | public let urlResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let data: Data
13 |
14 | public init(response: HTTPURLResponse, data: Data) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.urlResponse = response
16 | self.data = data
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/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension URLSession: Transporter {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | public func send(
12 | _ request: URLRequest,
[13/15] Compiling Endpoints CommunicatorError.swift
[14/15] Compiling Endpoints CommunicatorResponse.swift
[15/15] Compiling Endpoints URLSession+Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | import Foundation
9 |
10 | extension URLSession: Transporter {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | public func send(
12 | _ request: URLRequest,
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:12:20: error: cannot find type 'URLRequest' in scope
10 | extension URLSession: Transporter {
11 | public func send(
12 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
13 | completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
14 | ) -> Request {
BUILD FAILURE 6.1 android