Build Information
Failed to build Prch, reference 0.2.1 (600b49
), with Swift 6.1 for Wasm on 28 May 2025 07:48:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: 0.2.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/brightdigit/Prch
* tag 0.2.1 -> FETCH_HEAD
HEAD is now at 600b49c Version 0.2.1
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
600b49cc7a77271ea3d2a9f9e449be081562a087
SUCCESS checkout https://github.com/brightdigit/Prch.git at 0.2.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/brightdigit/Prch.git
https://github.com/brightdigit/Prch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Prch",
"name" : "Prch",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Prch",
"targets" : [
"Prch"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PrchTests",
"module_type" : "SwiftTarget",
"name" : "PrchTests",
"path" : "Tests/PrchTests",
"sources" : [
"PrchTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Prch"
],
"type" : "test"
},
{
"c99name" : "Prch",
"module_type" : "SwiftTarget",
"name" : "Prch",
"path" : "Sources/Prch",
"product_memberships" : [
"Prch"
],
"sources" : [
"API.swift",
"AnyCodable/AnyCodable.Codable.swift",
"AnyCodable/AnyCodable.Equatable.swift",
"AnyCodable/AnyCodable.Expressible.swift",
"AnyCodable/AnyCodable.StringConverable.swift",
"AnyCodable/AnyCodable.swift",
"BasicResponse.swift",
"BodyRequest.swift",
"Client.swift",
"ClientError.swift",
"ClientResult.swift",
"Coding/Coding.swift",
"Coding/DateFormatter.swift",
"Coding/DecodingError.swift",
"Coding/KeyedDecodingContainer.swift",
"Coding/KeyedEncodingContainer.swift",
"Coding/RequestEncoder.swift",
"Coding/ResponseDecoder.swift",
"Coding/StringCodingKey.swift",
"DateEncodingContainer.swift",
"Deprecated/DeprecatedRequest.swift",
"Deprecated/DeprecatedResponse.swift",
"Deprecated/DeprecatedResponseResult.swift",
"Deprecated/TypeAliases.swift",
"Model.swift",
"Models/DateDay.swift",
"Models/File.swift",
"Models/ID.swift",
"Models/UploadFile.swift",
"Networking/ResponseComponents.swift",
"Networking/Session.swift",
"Networking/Task.swift",
"Networking/URL.swift",
"Networking/URLSession.swift",
"Networking/URLSessionResponse.swift",
"Request.swift",
"Response.swift",
"ResponseResult.swift",
"Result.swift",
"Security/Authentication.swift",
"Security/BasicAuthentication.swift",
"Security/SecurityRequirement.swift",
"Service.swift",
"ServiceRequest.swift",
"StatusCodeProvider.swift",
"SuccessModel.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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/44] Emitting module Prch
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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
[4/49] Compiling Prch StringCodingKey.swift
[5/49] Compiling Prch DateEncodingContainer.swift
[6/49] Compiling Prch DeprecatedRequest.swift
[7/49] Compiling Prch DeprecatedResponse.swift
[8/49] Compiling Prch DeprecatedResponseResult.swift
[9/49] Compiling Prch TypeAliases.swift
[10/49] Compiling Prch BasicResponse.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[11/49] Compiling Prch BodyRequest.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[12/49] Compiling Prch Client.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[13/49] Compiling Prch ClientError.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[14/49] Compiling Prch ClientResult.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[15/49] Compiling Prch Coding.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
| `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
4 | CustomDebugStringConvertible {
5 | case success(SuccessType)
:
41 | struct FailedResponseError: ResponseError {
42 | public let statusCode: Int
43 | public let response: DefaultResponseType
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 | }
45 |
[16/49] Compiling Prch Response.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[17/49] Compiling Prch ResponseResult.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[18/49] Compiling Prch Result.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[19/49] Compiling Prch Authentication.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[20/49] Compiling Prch BasicAuthentication.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[21/49] Compiling Prch SecurityRequirement.swift
[22/49] Compiling Prch Service.swift
[23/49] Compiling Prch ServiceRequest.swift
[24/49] Compiling Prch StatusCodeProvider.swift
[25/49] Compiling Prch SuccessModel.swift
[26/49] Compiling Prch Model.swift
[27/49] Compiling Prch DateDay.swift
[28/49] Compiling Prch File.swift
[29/49] Compiling Prch ID.swift
[30/49] Compiling Prch UploadFile.swift
[31/49] Compiling Prch ResponseComponents.swift
[32/49] Compiling Prch DateFormatter.swift
[33/49] Compiling Prch DecodingError.swift
[34/49] Compiling Prch KeyedDecodingContainer.swift
[35/49] Compiling Prch KeyedEncodingContainer.swift
[36/49] Compiling Prch RequestEncoder.swift
[37/49] Compiling Prch ResponseDecoder.swift
[38/49] Compiling Prch Session.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[39/49] Compiling Prch Task.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[40/49] Compiling Prch URL.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[41/49] Compiling Prch URLSession.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[42/49] Compiling Prch URLSessionResponse.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[43/49] Compiling Prch Request.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[44/49] Compiling Prch API.swift
[45/49] Compiling Prch AnyCodable.Codable.swift
[46/49] Compiling Prch AnyCodable.Equatable.swift
[47/49] Compiling Prch AnyCodable.Expressible.swift
[48/49] Compiling Prch AnyCodable.StringConverable.swift
[49/49] Compiling Prch AnyCodable.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/43] Compiling Prch Session.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[3/43] Compiling Prch Task.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[4/43] Compiling Prch URL.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[5/43] Compiling Prch URLSession.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[6/43] Compiling Prch URLSessionResponse.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[7/43] Compiling Prch Request.swift
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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/Prch/Networking/URLSessionResponse.swift:17:15: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:17:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
15 |
16 | var statusCode: Int? {
17 | (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
18 | }
19 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:15:18: error: cannot find type 'URLRequest' in scope
13 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
14 | fileprivate func responseComponentsFrom(
15 | _ request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 | ) async throws -> ResponseComponents {
17 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:25:36: error: cannot find type 'RequestType' in scope
23 |
24 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
25 | public func request(_ request: RequestType) async throws -> ResponseComponents {
| `- error: cannot find type 'RequestType' in scope
26 | #if canImport(FoundationNetworking)
27 | return try await responseComponentsFrom(request)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:40:16: error: cannot find type 'URLRequest' in scope
38 |
39 | public func beginRequest(
40 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
41 | _ completion: @escaping ((Result<ResponseComponents, ClientError>) -> Void)
42 | ) -> Task {
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:60:15: error: cannot find type 'URLRequest' in scope
58 | andHeaders headers: [String: String],
59 | usingEncoder encoder: RequestEncoder
60 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | guard var componenets = URLComponents(
62 | url: baseURL.appendingPathComponent(request.path),
[8/43] Compiling Prch Response.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[9/43] Compiling Prch ResponseResult.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[10/43] Compiling Prch Result.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[11/43] Compiling Prch Authentication.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[12/43] Compiling Prch BasicAuthentication.swift
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[13/48] Compiling Prch Model.swift
[14/48] Compiling Prch DateDay.swift
[15/48] Compiling Prch File.swift
[16/48] Compiling Prch ID.swift
[17/48] Compiling Prch UploadFile.swift
[18/48] Compiling Prch ResponseComponents.swift
[19/48] Compiling Prch SecurityRequirement.swift
[20/48] Compiling Prch Service.swift
[21/48] Compiling Prch ServiceRequest.swift
[22/48] Compiling Prch StatusCodeProvider.swift
[23/48] Compiling Prch SuccessModel.swift
[24/48] Compiling Prch StringCodingKey.swift
[25/48] Compiling Prch DateEncodingContainer.swift
[26/48] Compiling Prch DeprecatedRequest.swift
[27/48] Compiling Prch DeprecatedResponse.swift
[28/48] Compiling Prch DeprecatedResponseResult.swift
[29/48] Compiling Prch TypeAliases.swift
[30/48] Compiling Prch DateFormatter.swift
[31/48] Compiling Prch DecodingError.swift
[32/48] Compiling Prch KeyedDecodingContainer.swift
[33/48] Compiling Prch KeyedEncodingContainer.swift
[34/48] Compiling Prch RequestEncoder.swift
[35/48] Compiling Prch ResponseDecoder.swift
[36/48] Compiling Prch BasicResponse.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[37/48] Compiling Prch BodyRequest.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[38/48] Compiling Prch Client.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[39/48] Compiling Prch ClientError.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[40/48] Compiling Prch ClientResult.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
[41/48] Compiling Prch Coding.swift
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:46: error: extra argument 'timeout' in call
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: extra argument 'timeout' in call
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:71:40: error: cannot call value of non-function type 'Date'
69 | _ request: RequestType
70 | ) throws -> RequestType.ResponseType.SuccessType {
71 | try requestSync(request, timeout: .now() + 5.0)
| `- error: cannot call value of non-function type 'Date'
72 | }
73 |
/host/spi-builder-workspace/Sources/Prch/Client.swift:79:21: error: cannot find 'DispatchSemaphore' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
79 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
80 | self.request(request) {
81 | result = $0
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/48] Compiling Prch API.swift
[43/48] Compiling Prch AnyCodable.Codable.swift
[44/48] Compiling Prch AnyCodable.Equatable.swift
[45/48] Compiling Prch AnyCodable.Expressible.swift
[46/48] Compiling Prch AnyCodable.StringConverable.swift
[47/48] Compiling Prch AnyCodable.swift
[48/48] Emitting module Prch
/host/spi-builder-workspace/Sources/Prch/Client.swift:76:33: error: cannot find type 'DispatchTime' in scope
74 | func requestSync<RequestType: Request>(
75 | _ request: RequestType,
76 | timeout: @autoclosure () -> DispatchTime
| `- error: cannot find type 'DispatchTime' in scope
77 | ) throws -> RequestType.ResponseType.SuccessType {
78 | var result: ClientResponseResult<RequestType.ResponseType>!
/host/spi-builder-workspace/Sources/Prch/ClientError.swift:13:16: error: cannot find type 'DispatchTime' in scope
11 | case badURL(URL, String)
12 | case urlComponents(URLComponents)
13 | case timeout(DispatchTime)
| `- error: cannot find type 'DispatchTime' in scope
14 |
15 | public var name: String {
/host/spi-builder-workspace/Sources/Prch/Networking/Task.swift:9:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
7 | public protocol Task {}
8 |
9 | extension URLSessionDataTask: Task {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
10 |
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession: Session {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | #if compiler(>=5.5.2) && canImport(_Concurrency)
9 | @available(macOS, deprecated: 12.0)
/host/spi-builder-workspace/Sources/Prch/Networking/URLSessionResponse.swift:8:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 |
7 | struct URLSessionResponse: ResponseComponents {
8 | init(data: Data?, response: URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | self.data = data
10 | self.response = response
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/Prch/Networking/URLSessionResponse.swift:14:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |
13 | let data: Data?
14 | let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | var statusCode: Int? {
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/Prch/Networking/URLSessionResponse.swift:21:17: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | static func resultBasedOnResponse(
21 | _ response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | data: Data?,
23 | error: Error?
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/Prch/Networking/URLSessionResponse.swift:34:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | extension URLSessionResponse {
34 | init(_ components: (Data, URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | self.init(data: components.0, response: components.1)
36 | }
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
BUILD FAILURE 6.1 wasm