Build Information
Failed to build Netswift, reference 1.1.1 (2b4562
), with Swift 6.1 for Wasm on 28 May 2025 20:49:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MrSkwiggs/Netswift.git
Reference: 1.1.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/MrSkwiggs/Netswift
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at 2b45629 🔀 Merge pull request #48 from MrSkwiggs/bleeding_edge
Cloned https://github.com/MrSkwiggs/Netswift.git
Revision (git rev-parse @):
2b45629ae5f4859e62207b1d4064e08bd870e689
SUCCESS checkout https://github.com/MrSkwiggs/Netswift.git at 1.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/MrSkwiggs/Netswift.git
https://github.com/MrSkwiggs/Netswift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Netswift",
"name" : "Netswift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "Netswift",
"targets" : [
"Netswift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NetswiftTests",
"module_type" : "SwiftTarget",
"name" : "NetswiftTests",
"path" : "Tests/NetswiftTests",
"sources" : [
"NetswiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Netswift"
],
"type" : "test"
},
{
"c99name" : "Netswift",
"module_type" : "SwiftTarget",
"name" : "Netswift",
"path" : "Sources/Netswift",
"product_memberships" : [
"Netswift"
],
"sources" : [
"Core/GenericScheme.swift",
"Core/HTTPPerformer.swift",
"Core/MimeType.swift",
"Core/NetswiftAuthorizationType.swift",
"Core/NetswiftEncoder.swift",
"Core/NetswiftError/NetswiftError+Category.swift",
"Core/NetswiftError/NetswiftError.swift",
"Core/NetswiftHTTPMethod.swift",
"Core/NetswiftHTTPResponse.swift",
"Core/NetswiftHandler.swift",
"Core/NetswiftHeaders.swift",
"Core/NetswiftNetworkPerformer.swift",
"Core/NetswiftRequest.swift",
"Core/NetswiftRequestPerformable.swift",
"Core/NetswiftResult.swift",
"Core/NetswiftRoute.swift",
"Core/NetswiftSession.swift",
"Core/NetswiftTask.swift",
"Core/RequestHeader.swift",
"Core/URLRequestExtension.swift",
"NetswiftHTTPPerformer.swift",
"NetswiftPerformer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/23] Emitting module Netswift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
12 |
13 | /// The category for the error
14 | public let category: Category
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
15 | /// Additonal information about the error
16 | public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
11 | public extension NetswiftError {
12 | /// All the errors that can be raised while performing HTTP requests
13 | enum Category: CustomDebugStringConvertible {
| `- note: consider making enum 'Category' conform to the 'Sendable' protocol
14 |
15 | /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
[4/25] Compiling Netswift RequestHeader.swift
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
[5/25] Compiling Netswift URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
[6/25] Compiling Netswift NetswiftError.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
12 |
13 | /// The category for the error
14 | public let category: Category
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
15 | /// Additonal information about the error
16 | public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
11 | public extension NetswiftError {
12 | /// All the errors that can be raised while performing HTTP requests
13 | enum Category: CustomDebugStringConvertible {
| `- note: consider making enum 'Category' conform to the 'Sendable' protocol
14 |
15 | /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[7/25] Compiling Netswift NetswiftHTTPMethod.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
12 |
13 | /// The category for the error
14 | public let category: Category
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
15 | /// Additonal information about the error
16 | public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
11 | public extension NetswiftError {
12 | /// All the errors that can be raised while performing HTTP requests
13 | enum Category: CustomDebugStringConvertible {
| `- note: consider making enum 'Category' conform to the 'Sendable' protocol
14 |
15 | /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[8/25] Compiling Netswift NetswiftHTTPResponse.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:14:16: warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
12 |
13 | /// The category for the error
14 | public let category: Category
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'NetswiftError' has non-sendable type 'NetswiftError.Category'; this is an error in the Swift 6 language mode
15 | /// Additonal information about the error
16 | public let payload: Data?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError+Category.swift:13:10: note: consider making enum 'Category' conform to the 'Sendable' protocol
11 | public extension NetswiftError {
12 | /// All the errors that can be raised while performing HTTP requests
13 | enum Category: CustomDebugStringConvertible {
| `- note: consider making enum 'Category' conform to the 'Sendable' protocol
14 |
15 | /// The request couldn't be serialised before being sent out
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[9/25] Compiling Netswift NetswiftRequest.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
[10/25] Compiling Netswift NetswiftRequestPerformable.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
[11/25] Compiling Netswift NetswiftResult.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
[12/25] Compiling Netswift NetswiftRoute.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[13/25] Compiling Netswift NetswiftSession.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[14/25] Compiling Netswift NetswiftTask.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[15/25] Compiling Netswift NetswiftHandler.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[16/25] Compiling Netswift NetswiftHeaders.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[17/25] Compiling Netswift NetswiftNetworkPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[18/25] Compiling Netswift GenericScheme.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
[19/25] Compiling Netswift HTTPPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
[20/25] Compiling Netswift MimeType.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
[21/25] Compiling Netswift NetswiftHTTPPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:35:29: error: cannot find 'DispatchGroup' in scope
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
35 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
36 |
37 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:52:33: error: cannot find 'DispatchGroup' in scope
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
53 |
54 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
[22/25] Compiling Netswift NetswiftPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:35:29: error: cannot find 'DispatchGroup' in scope
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
35 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
36 |
37 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:52:33: error: cannot find 'DispatchGroup' in scope
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
53 |
54 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
[23/25] Compiling Netswift NetswiftAuthorizationType.swift
[24/25] Compiling Netswift NetswiftEncoder.swift
[25/25] Compiling Netswift NetswiftError+Category.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 Netswift NetswiftHandler.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[3/22] Compiling Netswift NetswiftHeaders.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[4/22] Compiling Netswift NetswiftNetworkPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
[5/24] Compiling Netswift RequestHeader.swift
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
[6/24] Compiling Netswift URLRequestExtension.swift
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
[7/24] Compiling Netswift NetswiftAuthorizationType.swift
[8/24] Compiling Netswift NetswiftEncoder.swift
[9/24] Compiling Netswift NetswiftError+Category.swift
[10/24] Compiling Netswift GenericScheme.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
[11/24] Compiling Netswift HTTPPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
[12/24] Compiling Netswift MimeType.swift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/24] Emitting module Netswift
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/URLRequestExtension.swift:15:18: error: cannot find type 'URLRequest' in scope
13 |
14 | /// Convenience wrapper functions
15 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | mutating func setHTTPMethod(_ method: NetswiftHTTPMethod) {
17 | self.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
[14/24] Compiling Netswift NetswiftError.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[15/24] Compiling Netswift NetswiftHTTPMethod.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[16/24] Compiling Netswift NetswiftHTTPResponse.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:134:32: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
132 | var fullDescription: String {
133 | switch self {
134 | case .typeMismatch(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:136:33: warning: immutable value 'any' was never used; consider replacing with '_' or removing it
134 | case .typeMismatch(let any, let context):
135 | return context.debugDescription
136 | case .valueNotFound(let any, let context):
| `- warning: immutable value 'any' was never used; consider replacing with '_' or removing it
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftError/NetswiftError.swift:138:31: warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
136 | case .valueNotFound(let any, let context):
137 | return context.debugDescription
138 | case .keyNotFound(let codingKey, let context):
| `- warning: immutable value 'codingKey' was never used; consider replacing with '_' or removing it
139 | return context.debugDescription
140 | case .dataCorrupted(let context):
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:20:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
19 | }
20 | public let URLResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public let error: Swift.Error?
22 |
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/Netswift/Core/NetswiftHTTPResponse.swift:24:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init(data: Data?,
24 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | error: Swift.Error? = nil) {
26 | self.data = data
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/Netswift/Core/NetswiftHTTPResponse.swift:18:29: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
19 | }
20 | public let URLResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftHTTPResponse.swift:18:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | public let data: Data?
17 | public var statusCode: Int? {
18 | return (URLResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 | public let URLResponse: URLResponse?
[17/24] Compiling Netswift NetswiftHTTPPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:35:29: error: cannot find 'DispatchGroup' in scope
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
35 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
36 |
37 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:52:33: error: cannot find 'DispatchGroup' in scope
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
53 |
54 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
[18/24] Compiling Netswift NetswiftPerformer.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:44: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:19:71: error: cannot infer contextual base in reference to member 'default'
17 | public let session: NetswiftSession
18 |
19 | public init(session: NetswiftSession = URLSession(configuration: .default)) {
| `- error: cannot infer contextual base in reference to member 'default'
20 | self.session = session
21 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:23:34: error: cannot find type 'URLRequest' in scope
21 | }
22 |
23 | open func perform(_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
24 | return session.perform(request) { response in
25 | completion(self.validate(response))
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |
29 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
30 | open func perform(_ request: URLRequest) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
31 | return await validate(session.perform(request))
32 | }
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:34: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:34:56: error: cannot find type 'DispatchTime' in scope
32 | }
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
| `- error: cannot find type 'DispatchTime' in scope
35 | let dispatchGroup = DispatchGroup()
36 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:34: error: cannot find type 'URLRequest' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'URLRequest' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:50:56: error: cannot find type 'DispatchTime' in scope
48 |
49 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
| `- error: cannot find type 'DispatchTime' in scope
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:23:30: error: cannot find type 'URLRequest' in scope
21 | - parameter completion: A block that will be called when the data task eventually returns
22 | */
23 | func perform (_ request: URLRequest, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:33:29: error: cannot find type 'URLRequest' in scope
31 | */
32 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
33 | func perform(_ request: URLRequest) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:30: error: cannot find type 'URLRequest' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:43:52: error: cannot find type 'DispatchTime' in scope
41 | - parameter completion: A block that will be called when the data task eventually returns
42 | */
43 | func perform (_ request: URLRequest, deadline: DispatchTime, completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask
| `- error: cannot find type 'DispatchTime' in scope
44 |
45 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:29: error: cannot find type 'URLRequest' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/Core/HTTPPerformer.swift:54:51: error: cannot find type 'DispatchTime' in scope
52 | */
53 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
54 | func perform(_ request: URLRequest, deadline: DispatchTime) async -> NetswiftResult<Data?>
| `- error: cannot find type 'DispatchTime' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:35:29: error: cannot find 'DispatchGroup' in scope
33 |
34 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5), completion: @escaping (NetswiftResult<Data?>) -> Void) -> NetswiftTask {
35 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
36 |
37 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftHTTPPerformer.swift:52:33: error: cannot find 'DispatchGroup' in scope
50 | open func perform(_ request: URLRequest, deadline: DispatchTime = .now() + .seconds(5)) async -> NetswiftResult<Data?> {
51 | await withCheckedContinuation{ continuation in
52 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
53 |
54 | if dispatchGroup.wait(timeout: deadline) == .timedOut {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:24:59: error: cannot find type 'DispatchTime' in scope
22 | @discardableResult
23 | public func perform<Request: NetswiftRequest>(_ request: Request,
24 | deadline: DispatchTime? = nil,
| `- error: cannot find type 'DispatchTime' in scope
25 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask? {
26 | guard let deadline = deadline else {
/host/spi-builder-workspace/Sources/Netswift/NetswiftPerformer.swift:89:43: error: cannot find type 'URLRequest' in scope
87 | Override this function to perform extra configuration on the outgoing URLRequest, before it is sent out.
88 | */
89 | open func hook(into urlRequest: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
90 | // overridable, empty default
91 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftNetworkPerformer.swift:26:54: error: cannot find type 'DispatchTime' in scope
24 | */
25 | func perform<Request: NetswiftRequest>(_ request: Request,
26 | deadline: DispatchTime?,
| `- error: cannot find type 'DispatchTime' in scope
27 | handler: @escaping NetswiftHandler<Request.Response>) -> NetswiftTask?
28 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
[19/24] Compiling Netswift NetswiftRoute.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[20/24] Compiling Netswift NetswiftSession.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[21/24] Compiling Netswift NetswiftTask.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | typealias RequestHandler = (NetswiftHTTPResponse) -> Void
17 |
18 | func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:21:32: error: cannot find type 'URLRequest' in scope
19 |
20 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
21 | func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse
| `- error: cannot find type 'URLRequest' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
24 | /// Extension to make URLSession compliant with NetswiftSession
25 | extension URLSession: NetswiftSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |
27 | ///DataTask call made via NetswiftSession Protocol
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftTask.swift:21:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
19 | }
20 |
21 | extension URLSessionDataTask: NetswiftTask {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
22 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:39: error: cannot find type 'URLRequest' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'URLRequest' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:70: error: cannot find type 'RequestHandler' in scope
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: cannot find type 'RequestHandler' in scope
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:28:60: error: @escaping attribute only applies to function types
26 |
27 | ///DataTask call made via NetswiftSession Protocol
28 | public func perform(_ urlRequest: URLRequest, handler: @escaping RequestHandler) -> NetswiftTask {
| `- error: @escaping attribute only applies to function types
29 | let task = dataTask(with: urlRequest) { data, response, error in
30 | handler(.init(data: data, response: response, error: error))
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftSession.swift:59:39: error: cannot find type 'URLRequest' in scope
57 | /// Asynchronous data call made via NetswiftSession Protocol
58 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12.0, *)
59 | public func perform(_ urlRequest: URLRequest) async -> NetswiftHTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
60 | do {
61 | let (data, response) = try await self.data(for: urlRequest)
[22/24] Compiling Netswift NetswiftRequest.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
[23/24] Compiling Netswift NetswiftRequestPerformable.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
[24/24] Compiling Netswift NetswiftResult.swift
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:47:40: error: cannot find type 'URLRequest' in scope
45 | - parameter completion: A completion block that takes in a NetswiftResult that either succeeds with a useable URLRequest, or fails with a NetswiftError
46 | */
47 | func serialise() -> NetswiftResult<URLRequest>
| `- error: cannot find type 'URLRequest' in scope
48 |
49 | /**
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:99:40: error: cannot find type 'URLRequest' in scope
97 |
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
100 | var request = URLRequest(url: self.url)
101 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:109:40: error: cannot find type 'URLRequest' in scope
107 |
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
| `- error: cannot find type 'URLRequest' in scope
110 | var request = URLRequest(url: self.url)
111 | request.setHTTPMethod(self.method)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:100:23: error: cannot find 'URLRequest' in scope
98 | public extension NetswiftRequest where Self: NetswiftRoute {
99 | func serialise() -> NetswiftResult<URLRequest> {
100 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
101 | request.setHTTPMethod(self.method)
102 | request.addHeaders(headers.all)
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:110:23: error: cannot find 'URLRequest' in scope
108 | public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
109 | func serialise() -> NetswiftResult<URLRequest> {
110 | var request = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
111 | request.setHTTPMethod(self.method)
112 |
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequest.swift:116:15: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
114 | do {
115 | request.httpBody = try bodyEncoder.encode(body)
116 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
117 | return .failure(.init(.requestSerialisationError))
118 | }
/host/spi-builder-workspace/Sources/Netswift/Core/NetswiftRequestPerformable.swift:28:28: error: cannot find type 'DispatchTime' in scope
26 | - returns: An optional `NetswiftTask` which can be used for further management of the ongoing request.
27 | */
28 | func perform(deadline: DispatchTime, _ handler: @escaping NetswiftHandler<Self.Response>) -> NetswiftTask?
| `- error: cannot find type 'DispatchTime' in scope
29 |
30 | /**
BUILD FAILURE 6.1 wasm