Build Information
Failed to build Relax, reference main (30de4b), with Swift 6.3 for Wasm on 14 Apr 2026 06:35:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tdeleon/Relax.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/tdeleon/Relax
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 30de4b5 Merge pull request #60 from tdeleon/develop
Cloned https://github.com/tdeleon/Relax.git
Revision (git rev-parse @):
30de4b526965f008ab776baac3325a98ce6787f0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tdeleon/Relax.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/tdeleon/Relax.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/18] 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 '_' 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 '_' 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 '_' 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 '_' 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: value of type '_' expected to be instance of class or class-constrained type
180 | url: URL,
181 | configuration: Configuration = .default,
182 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
183 | decoder: JSONDecoder = JSONDecoder(),
184 | @Request.Properties.Builder properties: () -> Request.Properties = { .empty }
/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
[5/19] 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 {
[6/19] 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 {
[7/19] 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 '_' 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 '_' 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 '_' 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 '_' 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 |
[8/19] 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 '_' 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 '_' 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 '_' 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 '_' 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/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() }
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:56:46: error: value of type '_' expected to be instance of class or class-constrained type
54 | public static var allProperties: Request.Properties { sharedProperties }
55 |
56 | public static var session: URLSession { .shared }
| `- error: value of type '_' expected to be instance of class or class-constrained type
57 |
58 | public static var decoder: JSONDecoder { JSONDecoder() }
[10/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() }
/host/spi-builder-workspace/Sources/Relax/API Structure/APIComponent.swift:56:46: error: value of type '_' expected to be instance of class or class-constrained type
54 | public static var allProperties: Request.Properties { sharedProperties }
55 |
56 | public static var session: URLSession { .shared }
| `- error: value of type '_' expected to be instance of class or class-constrained type
57 |
58 | public static var decoder: JSONDecoder { JSONDecoder() }
[11/19] Compiling Relax Body.swift
[12/19] Compiling Relax Headers.swift
[13/19] Compiling Relax PathComponents.swift
[14/19] Compiling Relax QueryItems.swift
[15/19] 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 {
[16/19] 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 {
[17/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: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 |
[18/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: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 |
[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:182:32: error: value of type '_' expected to be instance of class or class-constrained type
180 | url: URL,
181 | configuration: Configuration = .default,
182 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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.3 wasm