Build Information
Failed to build FTAPIKit, reference 1.5.0 (cd0362
), with Swift 6.1 for Wasm on 28 May 2025 03:43:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[18/25] Compiling FTAPIKit APIError.swift
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
| |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unhandled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:10: warning: associated value 'server' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- warning: associated value 'server' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:10: warning: associated value 'client' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- warning: associated value 'client' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:10: warning: associated value 'unhandled(data:response:error:)' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- warning: associated value 'unhandled(data:response:error:)' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
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/FTAPIKit/APIError+Standard.swift:33:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | case let (_, _, error as DecodingError):
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:35:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | self = .server(response.statusCode, response, data)
37 | case (_, .some, nil), (.some, nil, nil):
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:34:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:36:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case (_, .some, nil), (.some, nil, nil):
38 | return nil
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[19/25] Compiling FTAPIKit CaracterSet+UrlQuery.swift
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
| |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unhandled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:10: warning: associated value 'server' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- warning: associated value 'server' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:10: warning: associated value 'client' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- warning: associated value 'client' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:10: warning: associated value 'unhandled(data:response:error:)' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- warning: associated value 'unhandled(data:response:error:)' of 'Sendable'-conforming enum 'APIErrorStandard' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
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/FTAPIKit/APIError+Standard.swift:33:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | case let (_, _, error as DecodingError):
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:35:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | self = .server(response.statusCode, response, data)
37 | case (_, .some, nil), (.some, nil, nil):
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:34:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:36:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case (_, .some, nil), (.some, nil, nil):
38 | return nil
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[20/25] Compiling FTAPIKit MultipartBodyPart.swift
[21/25] Compiling FTAPIKit MultipartFormData.swift
[22/25] Compiling FTAPIKit OutputStream+Write.swift
[23/25] Compiling FTAPIKit URLQuery.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
[24/25] Compiling FTAPIKit URLRequestBuilder.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
[25/25] Compiling FTAPIKit URLServer+Async.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/22] Compiling FTAPIKit Coding.swift
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:49:42: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func configure(request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
50 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
51 | }
[3/22] Compiling FTAPIKit EndpointPublisher.swift
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:49:42: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func configure(request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
50 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
51 | }
[4/22] Compiling FTAPIKit EndpointSubscription.swift
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:49:42: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func configure(request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
50 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
51 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/24] Emitting module FTAPIKit
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:49:42: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func configure(request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
50 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
51 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:16:95: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:34:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// to abort the task before it's finished.
33 | @discardableResult
34 | func call(data endpoint: Endpoint, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | switch request(endpoint: endpoint) {
36 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:52:127: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// to abort the task before it's finished.
51 | @discardableResult
52 | func call<EP: ResponseEndpoint>(response endpoint: EP, completion: @escaping (Result<EP.Response, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | switch request(endpoint: endpoint) {
54 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:32: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:116: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:37: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:121: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:55: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:136: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:19:98: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// to abort the task before it's finished.
18 | @discardableResult
19 | func download(endpoint: Endpoint, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | switch request(endpoint: endpoint) {
21 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:36: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:107: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:9:18: error: cannot find type 'URLRequest' in scope
7 | extension URLServer {
8 | func task<R>(
9 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:11:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | request: URLRequest,
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:13:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | if let file = file {
15 | return uploadTask(request: request, file: file, process: process, completion: completion)
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/FTAPIKit/URLServer+Task.swift:21:18: error: cannot find type 'URLRequest' in scope
19 |
20 | private func dataTask<R>(
21 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:22:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private func dataTask<R>(
21 | request: URLRequest,
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:24:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let task = urlSession.dataTask(with: request) { data, response, error in
26 | completion(process(data, response, error))
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/FTAPIKit/URLServer+Task.swift:33:18: error: cannot find type 'URLRequest' in scope
31 |
32 | private func uploadTask<R>(
33 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | request: URLRequest,
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:37:10: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 | completion(process(data, response, error))
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:46:18: error: cannot find type 'URLRequest' in scope
44 |
45 | func downloadTask(
46 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:47:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | func downloadTask(
46 | request: URLRequest,
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:49:10: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let task = urlSession.downloadTask(with: request) { url, response, error in
51 | completion(process(url, response, error))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:57:48: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | func request(endpoint: Endpoint) -> Result<URLRequest, ErrorType> {
| `- error: cannot find type 'URLRequest' in scope
58 | do {
59 | let request = try buildRequest(endpoint: endpoint)
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:45:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | /// `URLSession` instance, which is used for task execution
44 | /// - Note: Provided default implementation.
45 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | }
47 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:49:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | public extension URLServer {
49 | var urlSession: URLSession { .shared }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | var decoding: Decoding { JSONDecoding() }
51 | var encoding: Encoding { JSONEncoding() }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:53:53: error: cannot find type 'URLRequest' in scope
51 | var encoding: Encoding { JSONEncoding() }
52 |
53 | func buildRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | try buildStandardRequest(endpoint: endpoint)
55 | }
[6/24] Compiling FTAPIKit URLServer+Call.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:16:95: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:34:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// to abort the task before it's finished.
33 | @discardableResult
34 | func call(data endpoint: Endpoint, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | switch request(endpoint: endpoint) {
36 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:52:127: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// to abort the task before it's finished.
51 | @discardableResult
52 | func call<EP: ResponseEndpoint>(response endpoint: EP, completion: @escaping (Result<EP.Response, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | switch request(endpoint: endpoint) {
54 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:32: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:116: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:37: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:121: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:55: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:136: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:57:48: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | func request(endpoint: Endpoint) -> Result<URLRequest, ErrorType> {
| `- error: cannot find type 'URLRequest' in scope
58 | do {
59 | let request = try buildRequest(endpoint: endpoint)
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:19:24: error: extra arguments at positions #1, #2 in call
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- note: 'call(endpoint:completion:)' declared here
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
19 | return call(request: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra arguments at positions #1, #2 in call
20 | case .failure(let error):
21 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:19:25: error: missing argument for parameter 'endpoint' in call
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- note: 'call(endpoint:completion:)' declared here
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
19 | return call(request: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: missing argument for parameter 'endpoint' in call
20 | case .failure(let error):
21 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:37:46: error: extra argument 'file' in call
35 | switch request(endpoint: endpoint) {
36 | case .success(let request):
37 | return call(data: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra argument 'file' in call
38 | case .failure(let error):
39 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:55:50: error: extra argument 'file' in call
53 | switch request(endpoint: endpoint) {
54 | case .success(let request):
55 | return call(response: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra argument 'file' in call
56 | case .failure(let error):
57 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:9:18: error: cannot find type 'URLRequest' in scope
7 | extension URLServer {
8 | func task<R>(
9 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
65 | return .failure(error)
66 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:73:60: error: argument type '_' expected to be an instance of a class or class-constrained type
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
74 | return .failure(error)
75 | } else if let data = data {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:84:60: error: argument type '_' expected to be an instance of a class or class-constrained type
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
85 | return .failure(error)
86 | } else if let data = data {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:19:98: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// to abort the task before it's finished.
18 | @discardableResult
19 | func download(endpoint: Endpoint, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | switch request(endpoint: endpoint) {
21 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:36: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:107: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:22:28: error: incorrect argument label in call (have 'request:completion:', expected 'endpoint:completion:')
20 | switch request(endpoint: endpoint) {
21 | case .success(let request):
22 | return download(request: request, completion: completion)
| `- error: incorrect argument label in call (have 'request:completion:', expected 'endpoint:completion:')
23 | case .failure(let error):
24 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:46:18: error: cannot find type 'URLRequest' in scope
44 |
45 | func downloadTask(
46 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:32:63: error: argument type '_' expected to be an instance of a class or class-constrained type
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
32 | if let error = ErrorType(data: urlData, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
33 | return .failure(error)
34 | } else if let url = url {
[7/24] Compiling FTAPIKit URLServer+Download.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:16:95: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:34:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | /// to abort the task before it's finished.
33 | @discardableResult
34 | func call(data endpoint: Endpoint, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | switch request(endpoint: endpoint) {
36 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:52:127: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// to abort the task before it's finished.
51 | @discardableResult
52 | func call<EP: ResponseEndpoint>(response endpoint: EP, completion: @escaping (Result<EP.Response, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | switch request(endpoint: endpoint) {
54 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:32: error: cannot find type 'URLRequest' in scope
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:62:116: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | }
61 |
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:37: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:71:121: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | }
70 |
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:55: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:82:136: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:57:48: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | func request(endpoint: Endpoint) -> Result<URLRequest, ErrorType> {
| `- error: cannot find type 'URLRequest' in scope
58 | do {
59 | let request = try buildRequest(endpoint: endpoint)
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:19:24: error: extra arguments at positions #1, #2 in call
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- note: 'call(endpoint:completion:)' declared here
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
19 | return call(request: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra arguments at positions #1, #2 in call
20 | case .failure(let error):
21 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:19:25: error: missing argument for parameter 'endpoint' in call
14 | /// to abort the task before it's finished.
15 | @discardableResult
16 | func call(endpoint: Endpoint, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
| `- note: 'call(endpoint:completion:)' declared here
17 | switch request(endpoint: endpoint) {
18 | case .success(let request):
19 | return call(request: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: missing argument for parameter 'endpoint' in call
20 | case .failure(let error):
21 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:37:46: error: extra argument 'file' in call
35 | switch request(endpoint: endpoint) {
36 | case .success(let request):
37 | return call(data: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra argument 'file' in call
38 | case .failure(let error):
39 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:55:50: error: extra argument 'file' in call
53 | switch request(endpoint: endpoint) {
54 | case .success(let request):
55 | return call(response: request, file: uploadFile(endpoint: endpoint), completion: completion)
| `- error: extra argument 'file' in call
56 | case .failure(let error):
57 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:9:18: error: cannot find type 'URLRequest' in scope
7 | extension URLServer {
8 | func task<R>(
9 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
62 | private func call(request: URLRequest, file: URL?, completion: @escaping (Result<Void, ErrorType>) -> Void) -> URLSessionTask? {
63 | task(request: request, file: file, process: { data, response, error in
64 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
65 | return .failure(error)
66 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:73:60: error: argument type '_' expected to be an instance of a class or class-constrained type
71 | private func call(data request: URLRequest, file: URL?, completion: @escaping (Result<Data, ErrorType>) -> Void) -> URLSessionTask? {
72 | task(request: request, file: file, process: { data, response, error in
73 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
74 | return .failure(error)
75 | } else if let data = data {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Call.swift:84:60: error: argument type '_' expected to be an instance of a class or class-constrained type
82 | private func call<R: Decodable>(response request: URLRequest, file: URL?, completion: @escaping (Result<R, ErrorType>) -> Void) -> URLSessionTask? {
83 | task(request: request, file: file, process: { data, response, error in
84 | if let error = ErrorType(data: data, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
85 | return .failure(error)
86 | } else if let data = data {
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:19:98: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// to abort the task before it's finished.
18 | @discardableResult
19 | func download(endpoint: Endpoint, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | switch request(endpoint: endpoint) {
21 | case .success(let request):
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:36: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: cannot find type 'URLRequest' in scope
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:29:107: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | private func download(request: URLRequest, completion: @escaping (Result<URL, ErrorType>) -> Void) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:22:28: error: incorrect argument label in call (have 'request:completion:', expected 'endpoint:completion:')
20 | switch request(endpoint: endpoint) {
21 | case .success(let request):
22 | return download(request: request, completion: completion)
| `- error: incorrect argument label in call (have 'request:completion:', expected 'endpoint:completion:')
23 | case .failure(let error):
24 | completion(.failure(error))
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:46:18: error: cannot find type 'URLRequest' in scope
44 |
45 | func downloadTask(
46 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Download.swift:32:63: error: argument type '_' expected to be an instance of a class or class-constrained type
30 | downloadTask(request: request, process: { url, response, error in
31 | let urlData = (url?.absoluteString.utf8).flatMap { Data($0) }
32 | if let error = ErrorType(data: urlData, response: response, error: error, decoding: self.decoding) {
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
33 | return .failure(error)
34 | } else if let url = url {
[8/24] Compiling FTAPIKit APIError+Standard.swift
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
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/FTAPIKit/APIError+Standard.swift:33:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | case let (_, _, error as DecodingError):
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:35:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | self = .server(response.statusCode, response, data)
37 | case (_, .some, nil), (.some, nil, nil):
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:34:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:36:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case (_, .some, nil), (.some, nil, nil):
38 | return nil
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[9/24] Compiling FTAPIKit APIError.swift
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
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/FTAPIKit/APIError+Standard.swift:33:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | case let (_, _, error as DecodingError):
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:35:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | self = .server(response.statusCode, response, data)
37 | case (_, .some, nil), (.some, nil, nil):
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:34:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:36:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case (_, .some, nil), (.some, nil, nil):
38 | return nil
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[10/24] Compiling FTAPIKit CaracterSet+UrlQuery.swift
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:19:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Status code error when the response status code
18 | /// is larger or equal to 500 and less than 600.
19 | case server(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:22:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Status code error when the response status code
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:23:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// is larger or equal to 400 and less than 500.
22 | case client(Int, URLResponse, Data?)
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:25:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | case unhandled(data: Data?, response: URLResponse?, error: Error?)
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | switch (data, response as? HTTPURLResponse, error) {
27 | case let (_, _, error as URLError):
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:32: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:26:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding) {
26 | switch (data, response as? HTTPURLResponse, error) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | case let (_, _, error as URLError):
28 | self = .connection(error)
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/FTAPIKit/APIError+Standard.swift:33:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | case let (_, _, error as DecodingError):
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:35:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
36 | self = .server(response.statusCode, response, data)
37 | case (_, .some, nil), (.some, nil, nil):
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:34:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 | self = .decoding(error)
33 | case let (data, response?, nil) where 400..<500 ~= response.statusCode:
34 | self = .client(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
/host/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:36:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | self = .client(response.statusCode, response, data)
35 | case let (data, response?, nil) where 500..<600 ~= response.statusCode:
36 | self = .server(response.statusCode, response, data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
37 | case (_, .some, nil), (.some, nil, nil):
38 | return nil
/host/spi-builder-workspace/Sources/FTAPIKit/APIError.swift:27:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// - Warning: Initializer can't return an instance if arguments contain a valid server response. The
26 | /// response would be discarded if it does, and the API call would be treated as a failure.
27 | init?(data: Data?, response: URLResponse?, error: Error?, decoding: Decoding)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// If the initializer fails but the server response is not valid, this property is used as a fallback.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[11/24] Compiling FTAPIKit URLQuery.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
[12/24] Compiling FTAPIKit URLRequestBuilder.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
[13/24] Compiling FTAPIKit URLServer+Async.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:8:61: error: cannot find type 'URLRequest' in scope
6 |
7 | public extension URLServer {
8 | func buildStandardRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
9 | try URLRequestBuilder(server: self, endpoint: endpoint).build()
10 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:27:28: error: cannot find type 'URLRequest' in scope
25 | /// It is safe to execute this method multiple times per instance lifetime.
26 | /// - Returns: A valid `URLRequest`.
27 | func build() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | let url = server.baseUri
29 | .appendingPathComponent(endpoint.path)
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:39:46: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | private func buildBody(to request: inout URLRequest) throws {
| `- error: cannot find type 'URLRequest' in scope
40 | switch endpoint {
41 | case let endpoint as DataEndpoint:
/host/spi-builder-workspace/Sources/FTAPIKit/URLRequestBuilder.swift:31:23: error: cannot find 'URLRequest' in scope
29 | .appendingPathComponent(endpoint.path)
30 | .appendingQuery(endpoint.query)
31 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
32 |
33 | request.httpMethod = endpoint.method.description
/host/spi-builder-workspace/Sources/FTAPIKit/Coding.swift:24:35: error: cannot find type 'URLRequest' in scope
22 | /// Allows modification of `URLRequest`. Enables things like adding `Content-Type` header etc.
23 | /// - Parameter request: Request which can be modified.
24 | func configure(request: inout URLRequest) throws
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:18:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// - Returns: Void on success
17 | func call(endpoint: Endpoint) async throws {
18 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | return try await withTaskCancellationHandler {
20 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:31:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
29 | }
30 | } onCancel: { [task] in
31 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
32 | }
33 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:43:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// - Returns: Plain data returned with the HTTP Response
42 | func call(data endpoint: Endpoint) async throws -> Data {
43 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return try await withTaskCancellationHandler {
45 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:56:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
54 | }
55 | } onCancel: { [task] in
56 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
57 | }
58 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:68:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | /// - Returns: Instance of the required type
67 | func call<EP: ResponseEndpoint>(response endpoint: EP) async throws -> EP.Response {
68 | var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | return try await withTaskCancellationHandler {
70 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:81:19: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
79 | }
80 | } onCancel: { [task] in
81 | task?.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
82 | }
83 | }
[14/24] Compiling FTAPIKit URLServer+Combine.swift
[15/24] Compiling FTAPIKit Endpoint.swift
[16/24] Compiling FTAPIKit HTTPMethod.swift
[17/24] Compiling FTAPIKit MultipartBodyPart.swift
[18/24] Compiling FTAPIKit MultipartFormData.swift
[19/24] Compiling FTAPIKit OutputStream+Write.swift
[20/24] Compiling FTAPIKit Server.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:17:20: error: cannot find 'uniformMimeType' in scope
15 | #else
16 | if #available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
17 | return uniformMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'uniformMimeType' in scope
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:19:20: error: cannot find 'coreServicesMimeType' in scope
17 | return uniformMimeType(for: pathExtension) ?? fallback
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'coreServicesMimeType' in scope
20 | }
21 | #endif
[21/24] Compiling FTAPIKit URL+MIME.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:17:20: error: cannot find 'uniformMimeType' in scope
15 | #else
16 | if #available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
17 | return uniformMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'uniformMimeType' in scope
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:19:20: error: cannot find 'coreServicesMimeType' in scope
17 | return uniformMimeType(for: pathExtension) ?? fallback
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'coreServicesMimeType' in scope
20 | }
21 | #endif
[22/24] Compiling FTAPIKit URL+Query.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:17:20: error: cannot find 'uniformMimeType' in scope
15 | #else
16 | if #available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
17 | return uniformMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'uniformMimeType' in scope
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
/host/spi-builder-workspace/Sources/FTAPIKit/URL+MIME.swift:19:20: error: cannot find 'coreServicesMimeType' in scope
17 | return uniformMimeType(for: pathExtension) ?? fallback
18 | } else {
19 | return coreServicesMimeType(for: pathExtension) ?? fallback
| `- error: cannot find 'coreServicesMimeType' in scope
20 | }
21 | #endif
[23/24] Compiling FTAPIKit URLServer+Task.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:9:18: error: cannot find type 'URLRequest' in scope
7 | extension URLServer {
8 | func task<R>(
9 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:11:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | request: URLRequest,
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:13:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | if let file = file {
15 | return uploadTask(request: request, file: file, process: process, completion: completion)
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/FTAPIKit/URLServer+Task.swift:21:18: error: cannot find type 'URLRequest' in scope
19 |
20 | private func dataTask<R>(
21 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:22:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private func dataTask<R>(
21 | request: URLRequest,
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:24:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let task = urlSession.dataTask(with: request) { data, response, error in
26 | completion(process(data, response, error))
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/FTAPIKit/URLServer+Task.swift:33:18: error: cannot find type 'URLRequest' in scope
31 |
32 | private func uploadTask<R>(
33 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | request: URLRequest,
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:37:10: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 | completion(process(data, response, error))
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:46:18: error: cannot find type 'URLRequest' in scope
44 |
45 | func downloadTask(
46 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:47:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | func downloadTask(
46 | request: URLRequest,
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:49:10: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let task = urlSession.downloadTask(with: request) { url, response, error in
51 | completion(process(url, response, error))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:57:48: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | func request(endpoint: Endpoint) -> Result<URLRequest, ErrorType> {
| `- error: cannot find type 'URLRequest' in scope
58 | do {
59 | let request = try buildRequest(endpoint: endpoint)
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:25:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
25 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
26 | completion(process(data, response, error))
27 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:38:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
38 | let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
39 | completion(process(data, response, error))
40 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:50:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
50 | let task = urlSession.downloadTask(with: request) { url, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
51 | completion(process(url, response, error))
52 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:53:53: error: cannot find type 'URLRequest' in scope
51 | var encoding: Encoding { JSONEncoding() }
52 |
53 | func buildRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | try buildStandardRequest(endpoint: endpoint)
55 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:45:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | /// `URLSession` instance, which is used for task execution
44 | /// - Note: Provided default implementation.
45 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | }
47 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:49:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | public extension URLServer {
49 | var urlSession: URLSession { .shared }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | var decoding: Decoding { JSONDecoding() }
51 | var encoding: Encoding { JSONEncoding() }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:49:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |
48 | public extension URLServer {
49 | var urlSession: URLSession { .shared }
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | var decoding: Decoding { JSONDecoding() }
51 | var encoding: Encoding { JSONEncoding() }
[24/24] Compiling FTAPIKit URLServer.swift
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:9:18: error: cannot find type 'URLRequest' in scope
7 | extension URLServer {
8 | func task<R>(
9 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | /// implementation to your needs.
34 | ///
35 | public protocol URLServer: Server where Request == URLRequest {
| `- error: cannot find type 'URLRequest' in scope
36 | /// Error type which is initialized during the request execution
37 | /// - Note: Provided default implementation.
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:11:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | request: URLRequest,
10 | file: URL?,
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:13:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
12 | completion: @escaping (Result<R, ErrorType>) -> Void
13 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | if let file = file {
15 | return uploadTask(request: request, file: file, process: process, completion: completion)
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/FTAPIKit/URLServer+Task.swift:21:18: error: cannot find type 'URLRequest' in scope
19 |
20 | private func dataTask<R>(
21 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:22:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private func dataTask<R>(
21 | request: URLRequest,
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:24:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let task = urlSession.dataTask(with: request) { data, response, error in
26 | completion(process(data, response, error))
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/FTAPIKit/URLServer+Task.swift:33:18: error: cannot find type 'URLRequest' in scope
31 |
32 | private func uploadTask<R>(
33 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:35:36: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | request: URLRequest,
34 | file: URL,
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:37:10: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | process: @escaping (Data?, URLResponse?, Error?) -> Result<R, ErrorType>,
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 | completion(process(data, response, error))
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:46:18: error: cannot find type 'URLRequest' in scope
44 |
45 | func downloadTask(
46 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:47:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | func downloadTask(
46 | request: URLRequest,
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:49:10: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | process: @escaping (URL?, URLResponse?, Error?) -> Result<URL, ErrorType>,
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let task = urlSession.downloadTask(with: request) { url, response, error in
51 | completion(process(url, response, error))
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:57:48: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | func request(endpoint: Endpoint) -> Result<URLRequest, ErrorType> {
| `- error: cannot find type 'URLRequest' in scope
58 | do {
59 | let request = try buildRequest(endpoint: endpoint)
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:25:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
23 | completion: @escaping (Result<R, ErrorType>) -> Void
24 | ) -> URLSessionDataTask? {
25 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
26 | completion(process(data, response, error))
27 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:38:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
36 | completion: @escaping (Result<R, ErrorType>) -> Void
37 | ) -> URLSessionUploadTask? {
38 | let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
39 | completion(process(data, response, error))
40 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:50:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
48 | completion: @escaping (Result<URL, ErrorType>) -> Void
49 | ) -> URLSessionDownloadTask? {
50 | let task = urlSession.downloadTask(with: request) { url, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
51 | completion(process(url, response, error))
52 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:53:53: error: cannot find type 'URLRequest' in scope
51 | var encoding: Encoding { JSONEncoding() }
52 |
53 | func buildRequest(endpoint: Endpoint) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | try buildStandardRequest(endpoint: endpoint)
55 | }
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:45:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | /// `URLSession` instance, which is used for task execution
44 | /// - Note: Provided default implementation.
45 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | }
47 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:49:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 | public extension URLServer {
49 | var urlSession: URLSession { .shared }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | var decoding: Decoding { JSONDecoding() }
51 | var encoding: Encoding { JSONEncoding() }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FTAPIKit/URLServer.swift:49:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 |
48 | public extension URLServer {
49 | var urlSession: URLSession { .shared }
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | var decoding: Decoding { JSONDecoding() }
51 | var encoding: Encoding { JSONEncoding() }
BUILD FAILURE 6.1 wasm