Build Information
Failed to build Prch, reference main (517608
), with Swift 6.1 for Wasm on 28 May 2025 07:51:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5176087 Unhide dev dependencies
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
517608703fde10ef3ce65b3e664ecb01bc1a8d95
SUCCESS checkout https://github.com/brightdigit/Prch.git at main
========================================
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" : [
{
"identity" : "komondor",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/shibapm/Komondor"
},
{
"identity" : "swiftformat",
"requirement" : {
"range" : [
{
"lower_bound" : "0.47.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/nicklockwood/SwiftFormat"
},
{
"identity" : "swiftlint",
"requirement" : {
"range" : [
{
"lower_bound" : "0.43.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/realm/SwiftLint"
},
{
"identity" : "rocket",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/shibapm/Rocket.git"
},
{
"identity" : "swift-test-codecov",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/brightdigit/swift-test-codecov"
}
],
"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-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/brightdigit/swift-test-codecov
Fetching https://github.com/shibapm/Rocket.git
Fetching https://github.com/realm/SwiftLint
Fetching https://github.com/shibapm/Komondor
[1/509] Fetching komondor
[510/839] Fetching komondor, swift-test-codecov
[514/2225] Fetching komondor, swift-test-codecov, rocket
Fetched https://github.com/shibapm/Komondor from cache (0.58s)
Fetched https://github.com/shibapm/Rocket.git from cache (0.60s)
[331/150713] Fetching swift-test-codecov, swiftlint
[332/198895] Fetching swift-test-codecov, swiftlint, swiftformat
Fetched https://github.com/brightdigit/swift-test-codecov from cache (61.18s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (62.27s)
Fetched https://github.com/realm/SwiftLint from cache (63.29s)
Computing version for https://github.com/brightdigit/swift-test-codecov
Computed https://github.com/brightdigit/swift-test-codecov at 1.1.0 (64.36s)
Fetching https://github.com/apple/swift-argument-parser
[1/15351] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.39s)
Computing version for https://github.com/shibapm/Rocket.git
Computed https://github.com/shibapm/Rocket.git at 1.3.0 (2.39s)
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/shibapm/PackageConfig.git
[1/116] Fetching logger
[117/696] Fetching logger, packageconfig
[697/5559] Fetching logger, packageconfig, swiftshell
Fetched https://github.com/shibapm/Logger from cache (0.45s)
[1845/5443] Fetching packageconfig, swiftshell
[1846/16100] Fetching packageconfig, swiftshell, yams
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.47s)
[1412/15520] Fetching swiftshell, yams
Fetched https://github.com/kareman/SwiftShell from cache (0.86s)
[5329/10657] Fetching yams
Fetched https://github.com/jpsim/Yams from cache (2.36s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (3.39s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (3.92s)
Computing version for https://github.com/shibapm/Komondor
Computed https://github.com/shibapm/Komondor at 1.1.4 (1.10s)
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.38s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (1.51s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (1.08s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (1.02s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.4.0 (1.01s)
Computing version for https://github.com/realm/SwiftLint
Computed https://github.com/realm/SwiftLint at 0.59.1 (1.30s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/JohnSundell/CollectionConcurrencyKit.git
Fetching https://github.com/jpsim/SourceKitten.git
[1/84] Fetching collectionconcurrencykit
[85/13025] Fetching collectionconcurrencykit, cryptoswift
Fetched https://github.com/JohnSundell/CollectionConcurrencyKit.git from cache (0.42s)
[1424/12941] Fetching cryptoswift
[1813/29053] Fetching cryptoswift, sourcekitten
Fetched https://github.com/jpsim/SourceKitten.git from cache (2.53s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (2.79s)
[1/929] Fetching swiftytexttable
[930/71377] Fetching swiftytexttable, swift-syntax
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (12.52s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (12.79s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (22.73s)
Computing version for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Computed https://github.com/JohnSundell/CollectionConcurrencyKit.git at 0.2.0 (3.18s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (4.01s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.37.0 (1.42s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[1/2820] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.60s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.0 (1.89s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 7.0.2 (1.06s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.56.2 (1.15s)
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.4.0
Creating working copy for https://github.com/shibapm/Komondor
Working copy of https://github.com/shibapm/Komondor resolved at 1.1.4
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/JohnSundell/CollectionConcurrencyKit.git
Working copy of https://github.com/JohnSundell/CollectionConcurrencyKit.git resolved at 0.2.0
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/shibapm/Rocket.git
Working copy of https://github.com/shibapm/Rocket.git resolved at 1.3.0
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.56.2
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.4
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 7.0.2
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.37.0
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/kareman/SwiftShell
Working copy of https://github.com/kareman/SwiftShell resolved at 5.1.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/realm/SwiftLint
Working copy of https://github.com/realm/SwiftLint resolved at 0.59.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.0
Creating working copy for https://github.com/brightdigit/swift-test-codecov
Working copy of https://github.com/brightdigit/swift-test-codecov resolved at 1.1.0
Creating working copy for https://github.com/shibapm/PackageConfig.git
Working copy of https://github.com/shibapm/PackageConfig.git resolved at 1.1.3
warning: 'komondor': 'komondor' dependency on 'https://github.com/f-meloni/Rocket' conflicts with dependency on 'https://github.com/shibapm/Rocket.git' which has the same identity 'rocket'. this will be escalated to an error in future versions of SwiftPM.
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftLintCommandPlugin
[3/3] Compiling plugin SwiftLintBuildToolPlugin
[4/4] Compiling plugin SwiftFormatPlugin
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/48] 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 {
[8/48] 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 {
[9/48] 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 {
[10/48] 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 {
[11/48] 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 {
[12/53] 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),
[13/53] 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),
[14/53] 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),
[15/53] 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),
[16/53] 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),
[17/53] 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),
[18/53] Compiling Prch Model.swift
[19/53] Compiling Prch DateDay.swift
[20/53] Compiling Prch File.swift
[21/53] Compiling Prch ID.swift
[22/53] Compiling Prch UploadFile.swift
[23/53] Compiling Prch ResponseComponents.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/53] 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
[25/53] 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 |
[26/53] 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 |
[27/53] 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 |
[28/53] 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 |
[29/53] 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 |
[30/53] 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 |
[31/53] Compiling Prch API.swift
[32/53] Compiling Prch AnyCodable.Codable.swift
[33/53] Compiling Prch AnyCodable.Equatable.swift
[34/53] Compiling Prch AnyCodable.Expressible.swift
[35/53] Compiling Prch AnyCodable.StringConverable.swift
[36/53] Compiling Prch AnyCodable.swift
[37/53] Compiling Prch DateFormatter.swift
[38/53] Compiling Prch DecodingError.swift
[39/53] Compiling Prch KeyedDecodingContainer.swift
[40/53] Compiling Prch KeyedEncodingContainer.swift
[41/53] Compiling Prch RequestEncoder.swift
[42/53] Compiling Prch ResponseDecoder.swift
[43/53] Compiling Prch StringCodingKey.swift
[44/53] Compiling Prch DateEncodingContainer.swift
[45/53] Compiling Prch DeprecatedRequest.swift
[46/53] Compiling Prch DeprecatedResponse.swift
[47/53] Compiling Prch DeprecatedResponseResult.swift
[48/53] Compiling Prch TypeAliases.swift
[49/53] Compiling Prch SecurityRequirement.swift
[50/53] Compiling Prch Service.swift
[51/53] Compiling Prch ServiceRequest.swift
[52/53] Compiling Prch StatusCodeProvider.swift
[53/53] Compiling Prch SuccessModel.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'komondor': 'komondor' dependency on 'https://github.com/f-meloni/Rocket' conflicts with dependency on 'https://github.com/shibapm/Rocket.git' which has the same identity 'rocket'. this will be escalated to an error in future versions of SwiftPM.
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftLintCommandPlugin
[3/3] Compiling plugin SwiftLintBuildToolPlugin
[4/4] Compiling plugin SwiftFormatPlugin
Building for debugging...
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/47] 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
[7/47] 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 {
[8/47] 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 {
[9/47] 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 {
[10/47] 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 {
[11/47] 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 {
[12/52] 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),
[13/52] 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),
[14/52] 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),
[15/52] 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),
[16/52] 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),
[17/52] 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),
[18/52] Compiling Prch Model.swift
[19/52] Compiling Prch DateDay.swift
[20/52] Compiling Prch File.swift
[21/52] Compiling Prch ID.swift
[22/52] Compiling Prch UploadFile.swift
[23/52] Compiling Prch ResponseComponents.swift
[24/52] Compiling Prch DateFormatter.swift
[25/52] Compiling Prch DecodingError.swift
[26/52] Compiling Prch KeyedDecodingContainer.swift
[27/52] Compiling Prch KeyedEncodingContainer.swift
[28/52] Compiling Prch RequestEncoder.swift
[29/52] Compiling Prch ResponseDecoder.swift
[30/52] Compiling Prch StringCodingKey.swift
[31/52] Compiling Prch DateEncodingContainer.swift
[32/52] Compiling Prch DeprecatedRequest.swift
[33/52] Compiling Prch DeprecatedResponse.swift
[34/52] Compiling Prch DeprecatedResponseResult.swift
[35/52] Compiling Prch TypeAliases.swift
[36/52] 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/52] 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/52] 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/52] 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/52] 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/52] 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 {
[42/52] Compiling Prch SecurityRequirement.swift
[43/52] Compiling Prch Service.swift
[44/52] Compiling Prch ServiceRequest.swift
[45/52] Compiling Prch StatusCodeProvider.swift
[46/52] Compiling Prch SuccessModel.swift
[47/52] Compiling Prch API.swift
[48/52] Compiling Prch AnyCodable.Codable.swift
[49/52] Compiling Prch AnyCodable.Equatable.swift
[50/52] Compiling Prch AnyCodable.Expressible.swift
[51/52] Compiling Prch AnyCodable.StringConverable.swift
[52/52] Compiling Prch AnyCodable.swift
BUILD FAILURE 6.1 wasm