The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Relax, reference 2.2.1 (30de4b), with Swift 6.1 for Wasm on 29 May 2025 03:55:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

 62 |         public static let contentType = Name("Content-Type")
    |                           |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     }
 64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 78 |
 79 |         /// Authorization type `Basic`
 80 |         public static let basic = AuthorizationType("Basic")
    |                           |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 80 |         public static let basic = AuthorizationType("Basic")
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
    |                           |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'bearer' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 82 |         public static let bearer = AuthorizationType("Bearer")
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
    |                           |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'digest' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 85 |     }
 86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
101 |
102 |         /// Content type of `application/json`
103 |         public static let applicationJSON = ContentType("application/json")
    |                           |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'applicationJSON' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
103 |         public static let applicationJSON = ContentType("application/json")
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
    |                           |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'textPlain' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 |     }
[11/19] Compiling Relax Headers.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:54:27: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 52 |
 53 |         /// Header name `Accept`
 54 |         public static let accept = Name("Accept")
    |                           |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 55 |         /// Header name `Accept-Language`
 56 |         public static let acceptLanguage = Name("Accept-Language")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:56:27: warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 54 |         public static let accept = Name("Accept")
 55 |         /// Header name `Accept-Language`
 56 |         public static let acceptLanguage = Name("Accept-Language")
    |                           |- warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'acceptLanguage' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |         /// Header name `Authorization`
 58 |         public static let authorization = Name("Authorization")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:58:27: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 56 |         public static let acceptLanguage = Name("Accept-Language")
 57 |         /// Header name `Authorization`
 58 |         public static let authorization = Name("Authorization")
    |                           |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |         /// Header name `Cache-Control`
 60 |         public static let cacheControl = Name("Cache-Control")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:60:27: warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 58 |         public static let authorization = Name("Authorization")
 59 |         /// Header name `Cache-Control`
 60 |         public static let cacheControl = Name("Cache-Control")
    |                           |- warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'cacheControl' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 61 |         /// Header name `Content-Type`
 62 |         public static let contentType = Name("Content-Type")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:62:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 60 |         public static let cacheControl = Name("Cache-Control")
 61 |         /// Header name `Content-Type`
 62 |         public static let contentType = Name("Content-Type")
    |                           |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     }
 64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 78 |
 79 |         /// Authorization type `Basic`
 80 |         public static let basic = AuthorizationType("Basic")
    |                           |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 80 |         public static let basic = AuthorizationType("Basic")
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
    |                           |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'bearer' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 82 |         public static let bearer = AuthorizationType("Bearer")
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
    |                           |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'digest' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 85 |     }
 86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
101 |
102 |         /// Content type of `application/json`
103 |         public static let applicationJSON = ContentType("application/json")
    |                           |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'applicationJSON' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
103 |         public static let applicationJSON = ContentType("application/json")
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
    |                           |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'textPlain' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 |     }
[12/19] Compiling Relax PathComponents.swift
[13/19] Compiling Relax QueryItems.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/19] Emitting module Relax
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 25 |
 26 |     /// A   `URLError` occurred with the request
 27 |     case urlError(request: Request, error: URLError)
    |          `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 27 |     case urlError(request: Request, error: URLError)
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
    |          `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 29 |     case decoding(request: Request, error: DecodingError)
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
    |          `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 31 |     case other(request: Request, message: String)
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
    |          `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 34 |
 35 |     public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 60 |         }
 61 |
 62 |         public enum ErrorType {
    |                     `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
 63 |             /// 400 Bad request
 64 |             case badRequest
    :
 82 |         public let statusCode: Int
 83 |         /// The http error type
 84 |         public let type: ErrorType
    |                    `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 85 |         /// The response received
 86 |         public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:54:27: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 52 |
 53 |         /// Header name `Accept`
 54 |         public static let accept = Name("Accept")
    |                           |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 55 |         /// Header name `Accept-Language`
 56 |         public static let acceptLanguage = Name("Accept-Language")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:56:27: warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 54 |         public static let accept = Name("Accept")
 55 |         /// Header name `Accept-Language`
 56 |         public static let acceptLanguage = Name("Accept-Language")
    |                           |- warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'acceptLanguage' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |         /// Header name `Authorization`
 58 |         public static let authorization = Name("Authorization")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:58:27: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 56 |         public static let acceptLanguage = Name("Accept-Language")
 57 |         /// Header name `Authorization`
 58 |         public static let authorization = Name("Authorization")
    |                           |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 59 |         /// Header name `Cache-Control`
 60 |         public static let cacheControl = Name("Cache-Control")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:60:27: warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 58 |         public static let authorization = Name("Authorization")
 59 |         /// Header name `Cache-Control`
 60 |         public static let cacheControl = Name("Cache-Control")
    |                           |- warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'cacheControl' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 61 |         /// Header name `Content-Type`
 62 |         public static let contentType = Name("Content-Type")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:62:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
 41 |     ///
 42 |     /// Common header names are provided, but additional can be added through an extension.
 43 |     public struct Name: RawRepresentable {
    |                   `- note: consider making struct 'Name' conform to the 'Sendable' protocol
 44 |         public var rawValue: String
 45 |
    :
 60 |         public static let cacheControl = Name("Cache-Control")
 61 |         /// Header name `Content-Type`
 62 |         public static let contentType = Name("Content-Type")
    |                           |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |     }
 64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 78 |
 79 |         /// Authorization type `Basic`
 80 |         public static let basic = AuthorizationType("Basic")
    |                           |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 80 |         public static let basic = AuthorizationType("Basic")
 81 |         /// Authorization type `Bearer`
 82 |         public static let bearer = AuthorizationType("Bearer")
    |                           |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'bearer' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
 66 |     ///
 67 |     /// Common authorization types are provided, but additional can be added through an extension.
 68 |     public struct AuthorizationType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
 69 |         public var rawValue: String
 70 |
    :
 82 |         public static let bearer = AuthorizationType("Bearer")
 83 |         /// Authorization type `Digest`
 84 |         public static let digest = AuthorizationType("Digest")
    |                           |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'digest' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 85 |     }
 86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
101 |
102 |         /// Content type of `application/json`
103 |         public static let applicationJSON = ContentType("application/json")
    |                           |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'applicationJSON' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// Additional content types may be added as needed.
 90 |     public struct ContentType: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
 91 |         public var rawValue: String
 92 |
    :
103 |         public static let applicationJSON = ContentType("application/json")
104 |         /// Content type of `text/plain`
105 |         public static let textPlain = ContentType("text/plain")
    |                           |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'textPlain' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 |     }
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
 31 | extension Request {
 32 |     /// A structure that groups properties of a request
 33 |     public struct Properties: Hashable {
    |                   `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
 34 |         public var headers: Headers = Headers(value: [:])
 35 |         public var queryItems: QueryItems = QueryItems(value: [])
    :
 51 |
 52 |         /// Provides an instance with no property values set
 53 |         public static let empty: Properties = .init()
    |                           |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 |         internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:124:26: error: cannot find type 'URLRequest' in scope
122 |         public init(
123 |             allowsCellularAccess: Bool = true,
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                          `- error: cannot find type 'URLRequest' in scope
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:126:33: error: cannot find type 'URLRequest' in scope
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
    |                                 `- error: cannot find type 'URLRequest' in scope
127 |             timeoutInterval: TimeInterval = 60,
128 |             httpShouldHandleCookies: Bool = true,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   `- error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Equatable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   |- error: type 'Request.Configuration' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
Swift.==:1:24: note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
3 |
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:20:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     ///    - urlResponse: The response received
 19 |     ///    - data: Data received in the request. If there is no data in the response, then this will be 0 bytes.
 20 |     public typealias Response = (request: Request, urlResponse: HTTPURLResponse, data: Data)
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// Response for decoding Decodable objects from an HTTP request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:28:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     ///    - urlResponse: The response received
 27 |     ///    - responseModel: The model decoded from data received
 28 |     public typealias ResponseModel<Model: Decodable> = (request: Request, urlResponse: HTTPURLResponse, responseModel: Model)
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Completion handler response for a request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     @discardableResult
 45 |     public func send(
 46 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
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/Sources/Relax/Request/Request+Send.swift:49:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
    |          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
 51 |             guard error == nil,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:110:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     public func send<ResponseModel: Decodable>(
109 |         decoder: JSONDecoder? = nil,
110 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         completion: @escaping (_ result: Result<ResponseModel, RequestError>) -> Void
112 |     ) {
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/Sources/Relax/Request/Request+Send.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     public func send<ResponseModel: Decodable>(
134 |         decoder: JSONDecoder? = nil,
135 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         completion: @escaping Request.ModelCompletion<ResponseModel>
137 |     ) {
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/Sources/Relax/Request/Request+SendAsync.swift:21:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///    - urlResponse: The response received
20 |     ///    - data: Data received. If there is no data in the response, then this will be 0 bytes.
21 |     public typealias AsyncResponse = (request: Request, urlResponse: HTTPURLResponse, data: Data)
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Send a request asynchronously
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     @discardableResult
30 |     public func send(
31 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
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/Sources/Relax/Request/Request+SendAsync.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |     public func send<ResponseModel: Decodable>(
64 |         decoder: JSONDecoder? = nil,
65 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 |     ) async throws -> ResponseModel {
67 |         let response: AsyncResponse = try await send(session: session)
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/Sources/Relax/Request/Request.swift:113:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     ///
112 |     /// - Tip: The session can also be overridden when sending requests.
113 |     public var session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     /// The decoder to use for this request
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:182:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:182:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:223:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |         parent: APIComponent.Type,
222 |         configuration: Configuration? = nil,
223 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         decoder: JSONDecoder? = nil,
225 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:241:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         url: URL,
240 |         configuration: Configuration,
241 |         sesssion: URLSession,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |         decoder: JSONDecoder,
243 |         properties: Properties
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/Sources/Relax/Request/Request.swift:271:27: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
269 |
270 |         /// `GET` request type
271 |         public static let get = HTTPMethod("GET")
    |                           |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |         /// `POST` request type
273 |         public static let post = HTTPMethod("POST")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:273:27: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
271 |         public static let get = HTTPMethod("GET")
272 |         /// `POST` request type
273 |         public static let post = HTTPMethod("POST")
    |                           |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
274 |         /// `PUT` request type
275 |         public static let put = HTTPMethod("PUT")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:275:27: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
273 |         public static let post = HTTPMethod("POST")
274 |         /// `PUT` request type
275 |         public static let put = HTTPMethod("PUT")
    |                           |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
276 |         /// `PATCH` request type
277 |         public static let patch = HTTPMethod("PATCH")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:277:27: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
275 |         public static let put = HTTPMethod("PUT")
276 |         /// `PATCH` request type
277 |         public static let patch = HTTPMethod("PATCH")
    |                           |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
278 |         /// `DELETE` request type
279 |         public static let delete = HTTPMethod("DELETE")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:279:27: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
277 |         public static let patch = HTTPMethod("PATCH")
278 |         /// `DELETE` request type
279 |         public static let delete = HTTPMethod("DELETE")
    |                           |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 |     }
281 | }
[15/19] Compiling Relax Service.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 25 |
 26 |     /// A   `URLError` occurred with the request
 27 |     case urlError(request: Request, error: URLError)
    |          `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 27 |     case urlError(request: Request, error: URLError)
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
    |          `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 29 |     case decoding(request: Request, error: DecodingError)
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
    |          `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 31 |     case other(request: Request, message: String)
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
    |          `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 34 |
 35 |     public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 60 |         }
 61 |
 62 |         public enum ErrorType {
    |                     `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
 63 |             /// 400 Bad request
 64 |             case badRequest
    :
 82 |         public let statusCode: Int
 83 |         /// The http error type
 84 |         public let type: ErrorType
    |                    `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 85 |         /// The response received
 86 |         public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Errors.swift:89:29: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
 89 |             HTTPURLResponse.localizedString(forStatusCode: statusCode)
    |                             `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 90 |         }
 91 |
/host/spi-builder-workspace/Sources/Relax/Errors.swift:97:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         /// - Parameter response: The response received
 96 |         public init?(response: Request.Response) {
 97 |             self.init(statusCode: response.urlResponse.statusCode, response: response)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         }
 99 |
[16/19] Compiling Relax Errors.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 25 |
 26 |     /// A   `URLError` occurred with the request
 27 |     case urlError(request: Request, error: URLError)
    |          `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 27 |     case urlError(request: Request, error: URLError)
 28 |     /// A `DecodingError` occurred when decoding data from the request
 29 |     case decoding(request: Request, error: DecodingError)
    |          `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 29 |     case decoding(request: Request, error: DecodingError)
 30 |     /// Other error occurred
 31 |     case other(request: Request, message: String)
    |          `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 31 |     case other(request: Request, message: String)
 32 |     /// HTTP status code error
 33 |     case httpStatus(request: Request, error: HTTPError)
    |          `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
 34 |
 35 |     public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 60 |         }
 61 |
 62 |         public enum ErrorType {
    |                     `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
 63 |             /// 400 Bad request
 64 |             case badRequest
    :
 82 |         public let statusCode: Int
 83 |         /// The http error type
 84 |         public let type: ErrorType
    |                    `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
 85 |         /// The response received
 86 |         public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
 49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
 50 | ///
 51 | public struct Request {
    |               `- note: consider making struct 'Request' conform to the 'Sendable' protocol
 52 |     /// The HTTP method of the request
 53 |     public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 84 |         public let type: ErrorType
 85 |         /// The response received
 86 |         public let response: Request.Response
    |                    `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: AnyObject, data: Data)'); this is an error in the Swift 6 language mode
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Errors.swift:89:29: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
 89 |             HTTPURLResponse.localizedString(forStatusCode: statusCode)
    |                             `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 90 |         }
 91 |
/host/spi-builder-workspace/Sources/Relax/Errors.swift:97:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         /// - Parameter response: The response received
 96 |         public init?(response: Request.Response) {
 97 |             self.init(statusCode: response.urlResponse.statusCode, response: response)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         }
 99 |
[17/19] Compiling Relax APIComponent.swift
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/API Structure/APIComponent.swift:56:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
[18/19] Compiling Relax Endpoint.swift
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/API Structure/APIComponent.swift:56:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
[19/19] Compiling Relax Request.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:113:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     ///
112 |     /// - Tip: The session can also be overridden when sending requests.
113 |     public var session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     /// The decoder to use for this request
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:182:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:182:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:223:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |         parent: APIComponent.Type,
222 |         configuration: Configuration? = nil,
223 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         decoder: JSONDecoder? = nil,
225 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:241:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         url: URL,
240 |         configuration: Configuration,
241 |         sesssion: URLSession,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |         decoder: JSONDecoder,
243 |         properties: Properties
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/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:271:27: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
269 |
270 |         /// `GET` request type
271 |         public static let get = HTTPMethod("GET")
    |                           |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
272 |         /// `POST` request type
273 |         public static let post = HTTPMethod("POST")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:273:27: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
271 |         public static let get = HTTPMethod("GET")
272 |         /// `POST` request type
273 |         public static let post = HTTPMethod("POST")
    |                           |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
274 |         /// `PUT` request type
275 |         public static let put = HTTPMethod("PUT")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:275:27: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
273 |         public static let post = HTTPMethod("POST")
274 |         /// `PUT` request type
275 |         public static let put = HTTPMethod("PUT")
    |                           |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
276 |         /// `PATCH` request type
277 |         public static let patch = HTTPMethod("PATCH")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:277:27: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
275 |         public static let put = HTTPMethod("PUT")
276 |         /// `PATCH` request type
277 |         public static let patch = HTTPMethod("PATCH")
    |                           |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
278 |         /// `DELETE` request type
279 |         public static let delete = HTTPMethod("DELETE")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:279:27: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 |     ///
258 |     /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 |     public struct HTTPMethod: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 |         public var rawValue: String
261 |
    :
277 |         public static let patch = HTTPMethod("PATCH")
278 |         /// `DELETE` request type
279 |         public static let delete = HTTPMethod("DELETE")
    |                           |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
280 |     }
281 | }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:140:23: error: cannot find 'URLRequest' in scope
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
140 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
141 |         request.httpMethod = httpMethod.rawValue
142 |         _properties.headers.value.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:306:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
304 |         hasher.combine(httpMethod)
305 |         hasher.combine(url)
306 |         hasher.combine(session)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
307 |     }
308 | }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:317:21: error: binary operator '==' cannot be applied to two 'URLSession' (aka 'AnyObject') operands
315 |         lhs.httpMethod == rhs.httpMethod &&
316 |         lhs.url == rhs.url &&
317 |         lhs.session == rhs.session
    |                     `- error: binary operator '==' cannot be applied to two 'URLSession' (aka 'AnyObject') operands
318 |     }
319 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] Compiling Relax APIComponent.swift
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/API Structure/APIComponent.swift:56:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
[3/16] Compiling Relax Endpoint.swift
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/API Structure/APIComponent.swift:56:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
[4/17] Compiling Relax Request+Modifiers.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:20:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     ///    - urlResponse: The response received
 19 |     ///    - data: Data received in the request. If there is no data in the response, then this will be 0 bytes.
 20 |     public typealias Response = (request: Request, urlResponse: HTTPURLResponse, data: Data)
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// Response for decoding Decodable objects from an HTTP request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:28:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     ///    - urlResponse: The response received
 27 |     ///    - responseModel: The model decoded from data received
 28 |     public typealias ResponseModel<Model: Decodable> = (request: Request, urlResponse: HTTPURLResponse, responseModel: Model)
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Completion handler response for a request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     @discardableResult
 45 |     public func send(
 46 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
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/Sources/Relax/Request/Request+Send.swift:49:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
    |          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
 51 |             guard error == nil,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:110:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     public func send<ResponseModel: Decodable>(
109 |         decoder: JSONDecoder? = nil,
110 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         completion: @escaping (_ result: Result<ResponseModel, RequestError>) -> Void
112 |     ) {
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/Sources/Relax/Request/Request+Send.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     public func send<ResponseModel: Decodable>(
134 |         decoder: JSONDecoder? = nil,
135 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         completion: @escaping Request.ModelCompletion<ResponseModel>
137 |     ) {
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:50:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 51 |             guard error == nil,
 52 |                   let data = data else {
[5/17] Compiling Relax Request+Send.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:20:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     ///    - urlResponse: The response received
 19 |     ///    - data: Data received in the request. If there is no data in the response, then this will be 0 bytes.
 20 |     public typealias Response = (request: Request, urlResponse: HTTPURLResponse, data: Data)
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// Response for decoding Decodable objects from an HTTP request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:28:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     ///    - urlResponse: The response received
 27 |     ///    - responseModel: The model decoded from data received
 28 |     public typealias ResponseModel<Model: Decodable> = (request: Request, urlResponse: HTTPURLResponse, responseModel: Model)
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Completion handler response for a request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     @discardableResult
 45 |     public func send(
 46 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
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/Sources/Relax/Request/Request+Send.swift:49:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
    |          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
 51 |             guard error == nil,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:110:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     public func send<ResponseModel: Decodable>(
109 |         decoder: JSONDecoder? = nil,
110 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         completion: @escaping (_ result: Result<ResponseModel, RequestError>) -> Void
112 |     ) {
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/Sources/Relax/Request/Request+Send.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     public func send<ResponseModel: Decodable>(
134 |         decoder: JSONDecoder? = nil,
135 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         completion: @escaping Request.ModelCompletion<ResponseModel>
137 |     ) {
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:50:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 51 |             guard error == nil,
 52 |                   let data = data else {
[6/17] Compiling Relax Request+SendAsync.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:21:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///    - urlResponse: The response received
20 |     ///    - data: Data received. If there is no data in the response, then this will be 0 bytes.
21 |     public typealias AsyncResponse = (request: Request, urlResponse: HTTPURLResponse, data: Data)
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Send a request asynchronously
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     @discardableResult
30 |     public func send(
31 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
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/Sources/Relax/Request/Request+SendAsync.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |     public func send<ResponseModel: Decodable>(
64 |         decoder: JSONDecoder? = nil,
65 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 |     ) async throws -> ResponseModel {
67 |         let response: AsyncResponse = try await send(session: session)
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/Sources/Relax/Request/Request+SendAsync.swift:33:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         session: URLSession? = nil
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         let onCancel = { task?.cancel() }
35 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:34:32: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
34 |         let onCancel = { task?.cancel() }
   |                                `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
35 |
36 |         return try await withTaskCancellationHandler {
[7/17] Compiling Relax Request+SendPublisher.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:21:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///    - urlResponse: The response received
20 |     ///    - data: Data received. If there is no data in the response, then this will be 0 bytes.
21 |     public typealias AsyncResponse = (request: Request, urlResponse: HTTPURLResponse, data: Data)
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Send a request asynchronously
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     @discardableResult
30 |     public func send(
31 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
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/Sources/Relax/Request/Request+SendAsync.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |     public func send<ResponseModel: Decodable>(
64 |         decoder: JSONDecoder? = nil,
65 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 |     ) async throws -> ResponseModel {
67 |         let response: AsyncResponse = try await send(session: session)
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/Sources/Relax/Request/Request+SendAsync.swift:33:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         session: URLSession? = nil
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
   |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         let onCancel = { task?.cancel() }
35 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:34:32: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
34 |         let onCancel = { task?.cancel() }
   |                                `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
35 |
36 |         return try await withTaskCancellationHandler {
[8/17] Compiling Relax RequestProperty.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:124:26: error: cannot find type 'URLRequest' in scope
122 |         public init(
123 |             allowsCellularAccess: Bool = true,
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                          `- error: cannot find type 'URLRequest' in scope
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:126:33: error: cannot find type 'URLRequest' in scope
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
    |                                 `- error: cannot find type 'URLRequest' in scope
127 |             timeoutInterval: TimeInterval = 60,
128 |             httpShouldHandleCookies: Bool = true,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   `- error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Equatable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   |- error: type 'Request.Configuration' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
Swift.==:1:24: note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
3 |
[9/17] Compiling Relax Request+Configuration.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:124:26: error: cannot find type 'URLRequest' in scope
122 |         public init(
123 |             allowsCellularAccess: Bool = true,
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                          `- error: cannot find type 'URLRequest' in scope
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:126:33: error: cannot find type 'URLRequest' in scope
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
    |                                 `- error: cannot find type 'URLRequest' in scope
127 |             timeoutInterval: TimeInterval = 60,
128 |             httpShouldHandleCookies: Bool = true,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   `- error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Equatable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   |- error: type 'Request.Configuration' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
Swift.==:1:24: note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
3 |
[10/17] Compiling Relax PathComponents.swift
[11/17] Compiling Relax QueryItems.swift
[12/17] Compiling Relax Body.swift
[13/17] Compiling Relax Headers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/17] Emitting module Relax
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:39:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ///
38 |     /// The default value is `URLSession.shared`.
39 |     static var session: URLSession { get }
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |
41 |     /// The decoder to use for any Requests provided by this component or its childern.
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/Sources/Relax/API Structure/APIComponent.swift:56:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |     public static var allProperties: Request.Properties { sharedProperties }
55 |
56 |     public static var session: URLSession { .shared }
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 |     public static var decoder: JSONDecoder { JSONDecoder() }
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/Sources/Relax/API Structure/APIComponent.swift:77:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |     }
76 |
77 |     public static var session: URLSession {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |         Parent.session
79 |     }
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/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:124:26: error: cannot find type 'URLRequest' in scope
122 |         public init(
123 |             allowsCellularAccess: Bool = true,
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
    |                          `- error: cannot find type 'URLRequest' in scope
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:126:33: error: cannot find type 'URLRequest' in scope
124 |             cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
125 |             httpShouldUsePipelining: Bool = false,
126 |             networkServiceType: URLRequest.NetworkServiceType = .default,
    |                                 `- error: cannot find type 'URLRequest' in scope
127 |             timeoutInterval: TimeInterval = 60,
128 |             httpShouldHandleCookies: Bool = true,
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   `- error: type 'Request.Configuration' does not conform to protocol 'Hashable'
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Request.Configuration' to 'Hashable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:15:19: error: type 'Request.Configuration' does not conform to protocol 'Equatable'
 13 | extension Request {
 14 |     /// Defines configuration options for requests to use
 15 |     public struct Configuration: Hashable {
    |                   |- error: type 'Request.Configuration' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 16 |         /// Allow access on cellular networks
 17 |         ///
    :
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
    :
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Request.Configuration' to 'Equatable'
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
Swift.==:1:24: note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Request.Configuration' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Request.Configuration' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Request.Configuration' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Request.Configuration, Request.Configuration) -> Bool'
3 |
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:20:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     ///    - urlResponse: The response received
 19 |     ///    - data: Data received in the request. If there is no data in the response, then this will be 0 bytes.
 20 |     public typealias Response = (request: Request, urlResponse: HTTPURLResponse, data: Data)
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// Response for decoding Decodable objects from an HTTP request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:28:88: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     ///    - urlResponse: The response received
 27 |     ///    - responseModel: The model decoded from data received
 28 |     public typealias ResponseModel<Model: Decodable> = (request: Request, urlResponse: HTTPURLResponse, responseModel: Model)
    |                                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Completion handler response for a request
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:46:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     @discardableResult
 45 |     public func send(
 46 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
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/Sources/Relax/Request/Request+Send.swift:49:10: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |         autoResumeTask: Bool = true,
 48 |         completion: @escaping Request.Completion
 49 |     ) -> URLSessionDataTask {
    |          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |         let task = (session ?? self.session).dataTask(with: urlRequest) { data, response, error in
 51 |             guard error == nil,
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:110:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     public func send<ResponseModel: Decodable>(
109 |         decoder: JSONDecoder? = nil,
110 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         completion: @escaping (_ result: Result<ResponseModel, RequestError>) -> Void
112 |     ) {
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/Sources/Relax/Request/Request+Send.swift:135:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |     public func send<ResponseModel: Decodable>(
134 |         decoder: JSONDecoder? = nil,
135 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         completion: @escaping Request.ModelCompletion<ResponseModel>
137 |     ) {
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/Sources/Relax/Request/Request+SendAsync.swift:21:70: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///    - urlResponse: The response received
20 |     ///    - data: Data received. If there is no data in the response, then this will be 0 bytes.
21 |     public typealias AsyncResponse = (request: Request, urlResponse: HTTPURLResponse, data: Data)
   |                                                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Send a request asynchronously
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:31:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |     @discardableResult
30 |     public func send(
31 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ) async throws -> AsyncResponse {
33 |         var task: URLSessionDataTask?
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/Sources/Relax/Request/Request+SendAsync.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |     public func send<ResponseModel: Decodable>(
64 |         decoder: JSONDecoder? = nil,
65 |         session: URLSession? = nil
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 |     ) async throws -> ResponseModel {
67 |         let response: AsyncResponse = try await send(session: session)
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/Sources/Relax/Request/Request.swift:113:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     ///
112 |     /// - Tip: The session can also be overridden when sending requests.
113 |     public var session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     /// The decoder to use for this request
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:182:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:182:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:223:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |         parent: APIComponent.Type,
222 |         configuration: Configuration? = nil,
223 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         decoder: JSONDecoder? = nil,
225 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:241:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         url: URL,
240 |         configuration: Configuration,
241 |         sesssion: URLSession,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |         decoder: JSONDecoder,
243 |         properties: Properties
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
[15/17] Compiling Relax Service.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Errors.swift:89:29: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
 89 |             HTTPURLResponse.localizedString(forStatusCode: statusCode)
    |                             `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 90 |         }
 91 |
/host/spi-builder-workspace/Sources/Relax/Errors.swift:97:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         /// - Parameter response: The response received
 96 |         public init?(response: Request.Response) {
 97 |             self.init(statusCode: response.urlResponse.statusCode, response: response)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         }
 99 |
[16/17] Compiling Relax Errors.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Errors.swift:89:29: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 87 |         /// A localized description of the error
 88 |         public var localizedDescription: String {
 89 |             HTTPURLResponse.localizedString(forStatusCode: statusCode)
    |                             `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 90 |         }
 91 |
/host/spi-builder-workspace/Sources/Relax/Errors.swift:97:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         /// - Parameter response: The response received
 96 |         public init?(response: Request.Response) {
 97 |             self.init(statusCode: response.urlResponse.statusCode, response: response)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         }
 99 |
[17/17] Compiling Relax Request.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:113:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |     ///
112 |     /// - Tip: The session can also be overridden when sending requests.
113 |     public var session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     /// The decoder to use for this request
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/Sources/Relax/Request/Request.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
    |                            `- error: cannot find type 'URLRequest' in scope
140 |         var request = URLRequest(url: url)
141 |         request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:182:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:182:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
180 |         url: URL,
181 |         configuration: Configuration = .default,
182 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
183 |         decoder: JSONDecoder = JSONDecoder(),
184 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:223:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |         parent: APIComponent.Type,
222 |         configuration: Configuration? = nil,
223 |         session: URLSession? = nil,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |         decoder: JSONDecoder? = nil,
225 |         @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
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/Sources/Relax/Request/Request.swift:241:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         url: URL,
240 |         configuration: Configuration,
241 |         sesssion: URLSession,
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |         decoder: JSONDecoder,
243 |         properties: Properties
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/Sources/Relax/Request/Request+Configuration.swift:21:33: error: cannot find type 'URLRequest' in scope
 19 |         public var allowsCellularAccess: Bool
 20 |         /// The cache policy of the request
 21 |         public var cachePolicy: URLRequest.CachePolicy
    |                                 `- error: cannot find type 'URLRequest' in scope
 22 |         /// Whether to continue transmitting data before receiving a response from an earlier transmission
 23 |         ///
/host/spi-builder-workspace/Sources/Relax/Request/Request+Configuration.swift:29:40: error: cannot find type 'URLRequest' in scope
 27 |         ///
 28 |         /// See [`networkServiceType`](https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype)
 29 |         public var networkServiceType: URLRequest.NetworkServiceType
    |                                        `- error: cannot find type 'URLRequest' in scope
 30 |         /// The timeout interval for the request
 31 |         public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:140:23: error: cannot find 'URLRequest' in scope
138 |     /// The URLRequest of the request
139 |     public var urlRequest: URLRequest {
140 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
141 |         request.httpMethod = httpMethod.rawValue
142 |         _properties.headers.value.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:306:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
304 |         hasher.combine(httpMethod)
305 |         hasher.combine(url)
306 |         hasher.combine(session)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
307 |     }
308 | }
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:317:21: error: binary operator '==' cannot be applied to two 'URLSession' (aka 'AnyObject') operands
315 |         lhs.httpMethod == rhs.httpMethod &&
316 |         lhs.url == rhs.url &&
317 |         lhs.session == rhs.session
    |                     `- error: binary operator '==' cannot be applied to two 'URLSession' (aka 'AnyObject') operands
318 |     }
319 | }
BUILD FAILURE 6.1 wasm