The Swift Package Index logo.Swift Package Index

Build Information

Failed to build papyrus, reference main (63fbe1), with Swift 6.3 for Android on 14 Apr 2026 14:27:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build 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:         android
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-4606859-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-macro-testing
[1/961] Fetching swift-macro-testing
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (0.35s)
[1/74972] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (12.48s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (16.58s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.5 (0.62s)
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.37s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.2 (3.90s)
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.51s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (1.04s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5723] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.02s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (2.09s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
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-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/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.5.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.44s)
Building for debugging...
[0/12] Write sources
[4/12] Write swift-version--4F562202D5529B1.txt
[6/24] Compiling PapyrusPlugin PapyrusPluginError.swift
[7/25] Compiling PapyrusPlugin EndpointParameter.swift
[8/25] Compiling PapyrusPlugin Plugin.swift
[9/25] Compiling PapyrusPlugin EndpointAttribute.swift
[10/25] Compiling PapyrusPlugin MockMacro.swift
[11/25] Compiling PapyrusPlugin RoutesMacro.swift
[12/25] Compiling PapyrusPlugin APIMacro.swift
[13/25] Compiling PapyrusPlugin DecoratorMacro.swift
[14/25] Emitting module PapyrusPlugin
[15/25] Compiling PapyrusPlugin String+Utilities.swift
[16/25] Compiling PapyrusPlugin SwiftSyntax+Utilities.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 RouterRequest.swift
[24/74] Compiling Papyrus RouterResponse.swift
[25/74] Compiling Papyrus URLEncodedForm.swift
[26/74] Compiling Papyrus Part.swift
[27/74] Compiling Papyrus PapyrusError.swift
[28/74] Compiling Papyrus PapyrusMacros.swift
[29/77] Compiling Papyrus HTTPBodyEncoder.swift
[30/77] Compiling Papyrus HTTPService.swift
[31/77] Compiling Papyrus CurlInterceptor.swift
[32/77] Compiling Papyrus KeyMappable.swift
[33/77] Emitting module Papyrus
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[34/77] Compiling Papyrus KeyMappable.swift
[35/77] Compiling Papyrus KeyMapping.swift
[36/77] Compiling Papyrus MultipartDecoder.swift
[37/77] Compiling Papyrus MultipartEncoder.swift
[38/77] Compiling Papyrus RequestBuilder.swift
[39/77] Compiling Papyrus PapyrusRouter.swift
[40/77] Compiling Papyrus RequestParser.swift
[41/77] Compiling Papyrus String+Multipart.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[42/77] Compiling Papyrus URLSession+Papyrus.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[43/77] Compiling Papyrus HTTPBodyDecoder.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[44/77] Compiling Papyrus HTTPBodyEncoder.swift
[45/77] Compiling Papyrus HTTPService.swift
[46/77] Compiling Papyrus CurlInterceptor.swift
[47/77] Compiling Papyrus URLEncodedFormDecoder.swift
[48/77] Compiling Papyrus URLEncodedFormEncoder.swift
[49/77] Compiling Papyrus URLEncodedFormNode.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/78] 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: 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: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: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
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
[64/81] Compiling Papyrus URLEncodedFormDecoder.swift
[65/81] Compiling Papyrus URLEncodedFormEncoder.swift
[66/81] Compiling Papyrus URLEncodedFormNode.swift
/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: 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: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: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: 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: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: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: 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: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: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: 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: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: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 android