Build Information
Failed to build papyrus, reference main (63fbe1), with Swift 6.3 for Wasm on 14 Apr 2026 14:27:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joshuawright11/papyrus.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/joshuawright11/papyrus
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 63fbe12 bump swift-syntax
Cloned https://github.com/joshuawright11/papyrus.git
Revision (git rev-parse @):
63fbe12b859fdc1dd7b66be807f423c3f21d12b3
SUCCESS checkout https://github.com/joshuawright11/papyrus.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/joshuawright11/papyrus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-macro-testing
[1/961] Fetching swift-macro-testing
[962/75933] Fetching swift-macro-testing, swift-syntax
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (6.38s)
Fetched https://github.com/swiftlang/swift-syntax from cache (6.45s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (8.88s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.5 (0.40s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16046] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.14s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.2 (3.52s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5464] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.40s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.75s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5723] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.70s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (1.09s)
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.6.5
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.2
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.50s)
Building for debugging...
[0/12] Write sources
[4/12] Write swift-version-24593BA9C3E375BF.txt
[6/24] Compiling PapyrusPlugin EndpointParameter.swift
[7/25] Compiling PapyrusPlugin PapyrusPluginError.swift
[8/25] Compiling PapyrusPlugin Plugin.swift
[9/25] Compiling PapyrusPlugin EndpointAttribute.swift
[10/25] Emitting module PapyrusPlugin
[11/25] Compiling PapyrusPlugin String+Utilities.swift
[12/25] Compiling PapyrusPlugin SwiftSyntax+Utilities.swift
[13/25] Compiling PapyrusPlugin APIMacro.swift
[14/25] Compiling PapyrusPlugin DecoratorMacro.swift
[15/25] Compiling PapyrusPlugin MockMacro.swift
[16/25] Compiling PapyrusPlugin RoutesMacro.swift
[17/25] Compiling PapyrusPlugin API.swift
[18/25] Compiling PapyrusPlugin Declaration.swift
[19/26] Wrapping AST for PapyrusPlugin for debugging
[20/26] Write Objects.LinkFileList
[21/26] Linking PapyrusPlugin-tool
[23/74] Compiling Papyrus Part.swift
[24/74] Compiling Papyrus PapyrusError.swift
[25/74] Compiling Papyrus PapyrusMacros.swift
[26/77] Compiling Papyrus RouterRequest.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[27/77] Compiling Papyrus RouterResponse.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[28/77] Compiling Papyrus URLEncodedForm.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[29/77] Emitting module Papyrus
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[30/77] Compiling Papyrus Coders.swift
[31/77] Compiling Papyrus String+Multipart.swift
[32/77] Compiling Papyrus URLSession+Papyrus.swift
[33/77] Compiling Papyrus HTTPBodyEncoder.swift
[34/77] Compiling Papyrus HTTPService.swift
[35/77] Compiling Papyrus CurlInterceptor.swift
[36/77] Compiling Papyrus KeyMappable.swift
[37/77] Compiling Papyrus Provider.swift
[38/77] Compiling Papyrus KeyMapping.swift
[39/77] Compiling Papyrus MultipartDecoder.swift
[40/77] Compiling Papyrus MultipartEncoder.swift
[41/77] Compiling Papyrus RequestBuilder.swift
[42/77] Compiling Papyrus PapyrusRouter.swift
[43/77] Compiling Papyrus RequestParser.swift
[44/77] Compiling Papyrus HTTPBodyDecoder.swift
[45/77] Compiling Papyrus PapyrusRequest.swift
[46/77] Compiling Papyrus PapyrusResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/77] Emitting module Papyrus
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: value of type '_' expected to be instance of class or class-constrained type
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = 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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[48/80] Compiling Papyrus URLEncodedFormDecoder.swift
[49/80] Compiling Papyrus URLEncodedFormEncoder.swift
[50/80] Compiling Papyrus URLEncodedFormNode.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: value of type '_' expected to be instance of class or class-constrained type
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = 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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:90:19: error: cannot find type 'URLRequest' in scope
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
90 | (self as! URLRequest)
| `- error: cannot find type 'URLRequest' in scope
91 | }
92 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: value of type '_' expected to be instance of class or class-constrained type
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = 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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:90:19: error: cannot find type 'URLRequest' in scope
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
90 | (self as! URLRequest)
| `- error: cannot find type 'URLRequest' in scope
91 | }
92 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: value of type '_' expected to be instance of class or class-constrained type
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = 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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:90:19: error: cannot find type 'URLRequest' in scope
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
90 | (self as! URLRequest)
| `- error: cannot find type 'URLRequest' in scope
91 | }
92 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: value of type '_' expected to be instance of class or class-constrained type
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = 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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:90:19: error: cannot find type 'URLRequest' in scope
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
90 | (self as! URLRequest)
| `- error: cannot find type 'URLRequest' in scope
91 | }
92 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm