Build Information
Failed to build RealHTTP, reference main (8f1ea5), with Swift 6.3 for Wasm on 15 Apr 2026 15:26:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[68/81] Compiling RealHTTP HTTPStubBodyMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[69/81] Compiling RealHTTP HTTPStubCustomMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[70/81] Compiling RealHTTP HTTPStubJSONMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[71/81] Compiling RealHTTP HTTPStubRegExMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[72/81] Compiling RealHTTP HTTPProgress.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[73/81] Compiling RealHTTP HTTPRequestPriority.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[74/81] Compiling RealHTTP HTTPScheme.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[75/81] Compiling RealHTTP HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[76/81] Compiling RealHTTP HTTPVersion.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[77/81] Compiling RealHTTP HTTPHeaderElement+Name.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[78/81] Compiling RealHTTP HTTPHeaders+Element.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[79/81] Compiling RealHTTP HTTPHeaders.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[80/81] Compiling RealHTTP MIMEType.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[81/81] Compiling RealHTTP HTTPMetrics.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:46:26: error: cannot find type 'Progress' in scope
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- error: cannot find type 'Progress' in scope
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:77:29: error: cannot find type 'Progress' in scope
75 | /// - partialData: partially downloaded data in case it's available and operation is `failed`.
76 | internal init(event: Event = .download,
77 | progress: Progress? = nil,
| `- error: cannot find type 'Progress' in scope
78 | currentLength: Int64, expectedLength: Int64,
79 | partialData: Data? = nil) {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:23:15: error: type 'HTTPProgress' does not conform to protocol 'Equatable'
21 | /// `HTTPProgress` is used to send periodic updates about an upload or a download
22 | /// session. It contains all the relevant information about the current state of the operation.
23 | public struct HTTPProgress: Comparable, Equatable {
| |- error: type 'HTTPProgress' does not conform to protocol 'Equatable'
| `- note: add stubs for conformance
24 |
25 | // MARK: - Support Structures
:
44 |
45 | /// Progress object which contains additional informations.
46 | public let progress: Progress?
| `- note: stored property type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPProgress' to 'Equatable'
47 |
48 | /// The number of bytes sent/received since the last time this delegate method was called.
Swift.==:1:24: note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
| `- note: candidate would match if 'HTTPProgress' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
| `- note: candidate would match if 'HTTPProgress' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'HTTPProgress' 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 'HTTPProgress' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: candidate would match if 'HTTPProgress' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
| `- note: candidate would match if 'HTTPProgress' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
| `- note: protocol requires function '==' with type '(HTTPProgress, HTTPProgress) -> Bool'
3 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm