Build Information
Failed to build SwiftyNetworking, reference master (4e3f29
), with Swift 6.1 for Wasm on 26 Aug 2025 16:35:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[16/24] Compiling SwiftyNetworking NetworkingQueue.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:13: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[17/24] Compiling SwiftyNetworking NetworkingDelegate.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:13: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[18/24] Compiling SwiftyNetworking NetworkingMimeType.swift
[19/24] Compiling SwiftyNetworking NetworkingResponseStatus.swift
[20/24] Compiling SwiftyNetworking NetworkingScheme.swift
[21/24] Compiling SwiftyNetworking NetworkingMetric.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
8 | import Foundation
9 |
10 | public struct NetworkingRequest: Sendable, RawRepresentable {
| |- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
11 | public private(set) var url: URL
12 | public var method: NetworkingMethod
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
[22/24] Compiling SwiftyNetworking NetworkingRequest.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
8 | import Foundation
9 |
10 | public struct NetworkingRequest: Sendable, RawRepresentable {
| |- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
11 | public private(set) var url: URL
12 | public var method: NetworkingMethod
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
[23/24] Compiling SwiftyNetworking URLRequestSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestSerializer: Sendable {
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
14 | urlRequest.httpMethod = httpMethod(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
29 | return request.cachePolicy.rawValue
30 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
| `- error: cannot find 'URLRequest' in scope
14 | urlRequest.httpMethod = httpMethod(request)
15 | urlRequest.httpBody = httpBody(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:20:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
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/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:32:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | }
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | HTTPURLResponse(
34 | url: response.url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
| `- error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | url: response.url,
24 | mimeType: response.mimeType?.rawValue.lowercased(),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
33 | HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | url: response.url,
35 | statusCode: response.code,
[24/24] Compiling SwiftyNetworking URLSessionTaskResultSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestSerializer: Sendable {
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
14 | urlRequest.httpMethod = httpMethod(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
29 | return request.cachePolicy.rawValue
30 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
| `- error: cannot find 'URLRequest' in scope
14 | urlRequest.httpMethod = httpMethod(request)
15 | urlRequest.httpBody = httpBody(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:20:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
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/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:32:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | }
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | HTTPURLResponse(
34 | url: response.url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
| `- error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | url: response.url,
24 | mimeType: response.mimeType?.rawValue.lowercased(),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
33 | HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | url: response.url,
35 | statusCode: response.code,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling SwiftyNetworking URLRequestSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestSerializer: Sendable {
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
14 | urlRequest.httpMethod = httpMethod(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
29 | return request.cachePolicy.rawValue
30 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
| `- error: cannot find 'URLRequest' in scope
14 | urlRequest.httpMethod = httpMethod(request)
15 | urlRequest.httpBody = httpBody(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:20:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
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/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:32:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | }
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | HTTPURLResponse(
34 | url: response.url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
| `- error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | url: response.url,
24 | mimeType: response.mimeType?.rawValue.lowercased(),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
33 | HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | url: response.url,
35 | statusCode: response.code,
[3/21] Compiling SwiftyNetworking URLSessionTaskResultSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestSerializer: Sendable {
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
14 | urlRequest.httpMethod = httpMethod(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
29 | return request.cachePolicy.rawValue
30 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
| `- error: cannot find 'URLRequest' in scope
14 | urlRequest.httpMethod = httpMethod(request)
15 | urlRequest.httpBody = httpBody(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:20:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
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/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:32:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | }
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | HTTPURLResponse(
34 | url: response.url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
| `- error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 | url: response.url,
24 | mimeType: response.mimeType?.rawValue.lowercased(),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
33 | HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | url: response.url,
35 | statusCode: response.code,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/23] Emitting module SwiftyNetworking
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func url(_ request: URLRequest) -> URL? {
| `- error: cannot find type 'URLRequest' in scope
29 | guard let url = request.url else { return nil }
30 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
34 | }
35 |
36 | func method(_ request: URLRequest) -> NetworkingMethod? {
| `- error: cannot find type 'URLRequest' in scope
37 | guard let httpMethod = request.httpMethod else { return nil }
38 | guard let method = NetworkingMethod(rawValue: httpMethod) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
40 | }
41 |
42 | func headers(_ request: URLRequest) -> [String: String] {
| `- error: cannot find type 'URLRequest' in scope
43 | guard let headers = request.allHTTPHeaderFields else { return [:] }
44 | return headers
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func queryParameters(_ request: URLRequest) -> [String: String]? {
| `- error: cannot find type 'URLRequest' in scope
48 | guard let url = request.url else { return nil }
49 | guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | func body(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
60 | return request.httpBody
61 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let cachePolicy = NetworkingCachePolicy(rawValue: request.cachePolicy) else { return nil }
65 | return cachePolicy
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | func timeout(_ request: URLRequest) -> TimeInterval {
| `- error: cannot find type 'URLRequest' in scope
69 | return request.timeoutInterval
70 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
21 | }
22 |
23 | func start(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
24 | metrics.taskInterval.start
25 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
25 | }
26 |
27 | func end(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 | metrics.taskInterval.end
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
29 | }
30 |
31 | func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
32 | metrics.taskInterval.duration
33 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
33 | }
34 |
35 | func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 | metrics.redirectCount
37 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
37 | }
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
41 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
41 | }
42 |
43 | func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
44 | guard let rawValue = metrics.transactionMetrics.last?.networkProtocolName?.uppercased() else { return nil }
45 | return NetworkingStandard(rawValue: rawValue)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public var rawValue: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
30 | switch self {
31 | case .respectProtocolStandard: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestSerializer: Sendable {
11 |
12 | func serialize(_ request: NetworkingRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
13 | var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(request))
14 | urlRequest.httpMethod = httpMethod(request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
29 | return request.cachePolicy.rawValue
30 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:20:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | func urlResponse(_ response: NetworkingResponse) -> URLResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | guard let httpUrlResponse = httpUrlResponse(response) else {
22 | return URLResponse(
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/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:32:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | }
31 |
32 | func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | HTTPURLResponse(
34 | url: response.url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
8 | import Foundation
9 |
10 | public struct NetworkingRequest: Sendable, RawRepresentable {
| |- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
11 | public private(set) var url: URL
12 | public var method: NetworkingMethod
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:40:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | guard let response = deserializer.deserialize(rawValue) else { return nil }
42 | self.url = response.url
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/SwiftyNetworking/Structs/NetworkingResponse.swift:52:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | public var rawValue: (data: Data, urlResponse: URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | return serializer.serialize(self)
54 | }
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/SwiftyNetworking/Typealiases/URLSessionTaskResult.swift:10:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
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
[5/23] Compiling SwiftyNetworking NetworkingClient.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:13: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[6/23] Compiling SwiftyNetworking NetworkingQueue.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:13: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[7/23] Compiling SwiftyNetworking NetworkingDelegate.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public actor NetworkingClient: Sendable {
11 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | private let delegate: NetworkingDelegate
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
16 | self.delegate = delegate
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
32 |
33 | public static let shared: NetworkingClient = {
34 | return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | }()
36 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
15 | self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | self.delegate = delegate
17 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:13: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:22:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
20 | do {
21 | guard request.scheme != nil else { throw NetworkingError.invalidRequest }
22 | let result = try await session.data(for: request.rawValue)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
23 | guard var response = NetworkingResponse(rawValue: result) else { throw NetworkingError.invalidResponse }
24 | response.metric = delegate.metric(for: request)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:15: error: value of type 'NetworkingQueue' has no member 'qualityOfService'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: value of type 'NetworkingQueue' has no member 'qualityOfService'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:14:35: error: cannot infer contextual base in reference to member 'utility'
12 | public static let `default`: NetworkingQueue = {
13 | let queue = NetworkingQueue()
14 | queue.qualityOfService = .utility
| `- error: cannot infer contextual base in reference to member 'utility'
15 | return queue
16 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Classes/NetworkingQueue.swift:10:37: error: cannot find type 'OperationQueue' in scope
8 | import Foundation
9 |
10 | public final class NetworkingQueue: OperationQueue, @unchecked Sendable {
| `- error: cannot find type 'OperationQueue' in scope
11 |
12 | public static let `default`: NetworkingQueue = {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
14 | self.cache = cache
15 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
12 |
13 | public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | }
16 |
17 | public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | guard let request = metrics.transactionMetrics.first?.request else { return }
19 | self.cache.setObject(metrics, forKey: NSNumber(value: request.hashValue))
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/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
26 |
27 | public static let `default`: NetworkingDelegate = {
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
29 | return NetworkingDelegate(cache: cache)
30 | }()
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
25 | }
26 |
27 | public static let `default`: NetworkingDelegate = {
| `- error: type of expression is ambiguous without a type annotation
28 | let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
29 | return NetworkingDelegate(cache: cache)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
8 | import Foundation
9 |
10 | public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
11 | private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
12 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: extra argument 'rawValue' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
22 | public func metric(for request: NetworkingRequest) -> NetworkingMetric? {
23 | guard let metrics = cache.object(forKey: NSNumber(value: request.rawValue.hashValue)) else { return nil }
24 | return NetworkingMetric(rawValue: metrics)
| `- error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
25 | }
26 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
16 | public let standard: NetworkingStandard?
17 |
18 | public init(
| `- note: 'init(start:end:duration:redirections:source:standard:)' declared here
19 | start: Date,
20 | end: Date,
[8/23] Compiling SwiftyNetworking NetworkingMetric.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
8 | import Foundation
9 |
10 | public struct NetworkingRequest: Sendable, RawRepresentable {
| |- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
11 | public private(set) var url: URL
12 | public var method: NetworkingMethod
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
[9/23] Compiling SwiftyNetworking NetworkingRequest.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
8 | import Foundation
9 |
10 | public struct NetworkingRequest: Sendable, RawRepresentable {
| |- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
| `- note: add stubs for conformance
11 | public private(set) var url: URL
12 | public var method: NetworkingMethod
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
| `- note: protocol requires nested type 'RawValue'
3 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
[10/23] Compiling SwiftyNetworking NetworkingSource.swift
[11/23] Compiling SwiftyNetworking NetworkingStandard.swift
[12/23] Compiling SwiftyNetworking NetworkingError.swift
[13/23] Compiling SwiftyNetworking NetworkingResponse.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:40:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | guard let response = deserializer.deserialize(rawValue) else { return nil }
42 | self.url = response.url
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/SwiftyNetworking/Structs/NetworkingResponse.swift:52:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | public var rawValue: (data: Data, urlResponse: URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | return serializer.serialize(self)
54 | }
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/SwiftyNetworking/Typealiases/URLSessionTaskResult.swift:10:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
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
[14/23] Compiling SwiftyNetworking URLSessionTaskResult.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:40:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | guard let response = deserializer.deserialize(rawValue) else { return nil }
42 | self.url = response.url
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/SwiftyNetworking/Structs/NetworkingResponse.swift:52:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | public var rawValue: (data: Data, urlResponse: URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | return serializer.serialize(self)
54 | }
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/SwiftyNetworking/Typealiases/URLSessionTaskResult.swift:10:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
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
[15/23] Compiling SwiftyNetworking NetworkingCachePolicy.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public var rawValue: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
30 | switch self {
31 | case .respectProtocolStandard: .useProtocolCachePolicy
[16/23] Compiling SwiftyNetworking NetworkingEncoding.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public var rawValue: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
30 | switch self {
31 | case .respectProtocolStandard: .useProtocolCachePolicy
[17/23] Compiling SwiftyNetworking NetworkingMethod.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public var rawValue: URLRequest.CachePolicy {
| `- error: cannot find type 'URLRequest' in scope
30 | switch self {
31 | case .respectProtocolStandard: .useProtocolCachePolicy
[18/23] Compiling SwiftyNetworking NetworkingMimeType.swift
[19/23] Compiling SwiftyNetworking NetworkingResponseStatus.swift
[20/23] Compiling SwiftyNetworking NetworkingScheme.swift
[21/23] Compiling SwiftyNetworking URLRequestDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func url(_ request: URLRequest) -> URL? {
| `- error: cannot find type 'URLRequest' in scope
29 | guard let url = request.url else { return nil }
30 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
34 | }
35 |
36 | func method(_ request: URLRequest) -> NetworkingMethod? {
| `- error: cannot find type 'URLRequest' in scope
37 | guard let httpMethod = request.httpMethod else { return nil }
38 | guard let method = NetworkingMethod(rawValue: httpMethod) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
40 | }
41 |
42 | func headers(_ request: URLRequest) -> [String: String] {
| `- error: cannot find type 'URLRequest' in scope
43 | guard let headers = request.allHTTPHeaderFields else { return [:] }
44 | return headers
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func queryParameters(_ request: URLRequest) -> [String: String]? {
| `- error: cannot find type 'URLRequest' in scope
48 | guard let url = request.url else { return nil }
49 | guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | func body(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
60 | return request.httpBody
61 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let cachePolicy = NetworkingCachePolicy(rawValue: request.cachePolicy) else { return nil }
65 | return cachePolicy
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | func timeout(_ request: URLRequest) -> TimeInterval {
| `- error: cannot find type 'URLRequest' in scope
69 | return request.timeoutInterval
70 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:10: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
21 | }
22 |
23 | func start(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
24 | metrics.taskInterval.start
25 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
25 | }
26 |
27 | func end(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 | metrics.taskInterval.end
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
29 | }
30 |
31 | func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
32 | metrics.taskInterval.duration
33 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
33 | }
34 |
35 | func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 | metrics.redirectCount
37 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
37 | }
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
41 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
41 | }
42 |
43 | func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
44 | guard let rawValue = metrics.transactionMetrics.last?.networkProtocolName?.uppercased() else { return nil }
45 | return NetworkingStandard(rawValue: rawValue)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
| `- error: cannot infer contextual base in reference to member 'localCache'
41 | }
42 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | return response.url
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | return response.url
29 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
28 | return response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
29 | }
30 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
33 | return response.statusCode
34 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | return response.statusCode
34 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
33 | return response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | }
35 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
39 | if let key = pair.key as? String, let value = pair.value as? String {
40 | dict[key] = value
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
48 |
49 | func contentLength(_ result: URLSessionTaskResult) -> Int {
50 | return Int(result.urlResponse.expectedContentLength)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
52 |
53 | func mimeType(_ result: URLSessionTaskResult) -> NetworkingMimeType? {
54 | guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
55 | return NetworkingMimeType(rawValue: rawValue)
56 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
57 |
58 | func encoding(_ result: URLSessionTaskResult) -> NetworkingEncoding? {
59 | guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
60 | return NetworkingEncoding(rawValue: rawValue)
61 | }
[22/23] Compiling SwiftyNetworking URLSessionTaskMetricsDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func url(_ request: URLRequest) -> URL? {
| `- error: cannot find type 'URLRequest' in scope
29 | guard let url = request.url else { return nil }
30 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
34 | }
35 |
36 | func method(_ request: URLRequest) -> NetworkingMethod? {
| `- error: cannot find type 'URLRequest' in scope
37 | guard let httpMethod = request.httpMethod else { return nil }
38 | guard let method = NetworkingMethod(rawValue: httpMethod) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
40 | }
41 |
42 | func headers(_ request: URLRequest) -> [String: String] {
| `- error: cannot find type 'URLRequest' in scope
43 | guard let headers = request.allHTTPHeaderFields else { return [:] }
44 | return headers
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func queryParameters(_ request: URLRequest) -> [String: String]? {
| `- error: cannot find type 'URLRequest' in scope
48 | guard let url = request.url else { return nil }
49 | guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | func body(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
60 | return request.httpBody
61 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let cachePolicy = NetworkingCachePolicy(rawValue: request.cachePolicy) else { return nil }
65 | return cachePolicy
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | func timeout(_ request: URLRequest) -> TimeInterval {
| `- error: cannot find type 'URLRequest' in scope
69 | return request.timeoutInterval
70 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:10: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
21 | }
22 |
23 | func start(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
24 | metrics.taskInterval.start
25 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
25 | }
26 |
27 | func end(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 | metrics.taskInterval.end
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
29 | }
30 |
31 | func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
32 | metrics.taskInterval.duration
33 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
33 | }
34 |
35 | func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 | metrics.redirectCount
37 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
37 | }
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
41 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
41 | }
42 |
43 | func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
44 | guard let rawValue = metrics.transactionMetrics.last?.networkProtocolName?.uppercased() else { return nil }
45 | return NetworkingStandard(rawValue: rawValue)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
| `- error: cannot infer contextual base in reference to member 'localCache'
41 | }
42 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | return response.url
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | return response.url
29 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
28 | return response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
29 | }
30 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
33 | return response.statusCode
34 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | return response.statusCode
34 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
33 | return response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | }
35 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
39 | if let key = pair.key as? String, let value = pair.value as? String {
40 | dict[key] = value
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
48 |
49 | func contentLength(_ result: URLSessionTaskResult) -> Int {
50 | return Int(result.urlResponse.expectedContentLength)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
52 |
53 | func mimeType(_ result: URLSessionTaskResult) -> NetworkingMimeType? {
54 | guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
55 | return NetworkingMimeType(rawValue: rawValue)
56 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
57 |
58 | func encoding(_ result: URLSessionTaskResult) -> NetworkingEncoding? {
59 | guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
60 | return NetworkingEncoding(rawValue: rawValue)
61 | }
[23/23] Compiling SwiftyNetworking URLSessionTaskResultDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: cannot find type 'URLRequest' in scope
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
26 | }
27 |
28 | func url(_ request: URLRequest) -> URL? {
| `- error: cannot find type 'URLRequest' in scope
29 | guard let url = request.url else { return nil }
30 | guard var components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
34 | }
35 |
36 | func method(_ request: URLRequest) -> NetworkingMethod? {
| `- error: cannot find type 'URLRequest' in scope
37 | guard let httpMethod = request.httpMethod else { return nil }
38 | guard let method = NetworkingMethod(rawValue: httpMethod) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
40 | }
41 |
42 | func headers(_ request: URLRequest) -> [String: String] {
| `- error: cannot find type 'URLRequest' in scope
43 | guard let headers = request.allHTTPHeaderFields else { return [:] }
44 | return headers
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
45 | }
46 |
47 | func queryParameters(_ request: URLRequest) -> [String: String]? {
| `- error: cannot find type 'URLRequest' in scope
48 | guard let url = request.url else { return nil }
49 | guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
57 | }
58 |
59 | func body(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
60 | return request.httpBody
61 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let cachePolicy = NetworkingCachePolicy(rawValue: request.cachePolicy) else { return nil }
65 | return cachePolicy
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | func timeout(_ request: URLRequest) -> TimeInterval {
| `- error: cannot find type 'URLRequest' in scope
69 | return request.timeoutInterval
70 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public init?(rawValue: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
50 | guard let request = deserializer.deserialize(rawValue) else { return nil }
51 | self.url = request.url
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | public var rawValue: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
61 | return serializer.serialize(self)
62 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:10: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
10 | struct URLRequestDeserializer: Sendable {
11 |
12 | func deserialize(_ request: URLRequest) -> NetworkingRequest? {
| `- error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
13 | guard let url = url(request) else { return nil }
14 | guard let method = method(request) else { return nil }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | case reloadRevalidatingCacheData = "RELOAD_REVALIDATING_CACHE_DATA"
17 |
18 | public init?(rawValue: URLRequest.CachePolicy) {
| `- error: cannot find type 'URLRequest' in scope
19 | switch rawValue {
20 | case .useProtocolCachePolicy: self = .respectProtocolStandard
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
10 | struct URLSessionTaskMetricsDeserializer: Sendable {
11 |
12 | func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
13 | return NetworkingMetric(
14 | start: start(metrics),
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
21 | }
22 |
23 | func start(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
24 | metrics.taskInterval.start
25 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
25 | }
26 |
27 | func end(_ metrics: URLSessionTaskMetrics) -> Date {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
28 | metrics.taskInterval.end
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
29 | }
30 |
31 | func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
32 | metrics.taskInterval.duration
33 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
33 | }
34 |
35 | func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
36 | metrics.redirectCount
37 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
37 | }
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
41 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
41 | }
42 |
43 | func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
44 | guard let rawValue = metrics.transactionMetrics.last?.networkProtocolName?.uppercased() else { return nil }
45 | return NetworkingStandard(rawValue: rawValue)
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
32 | }
33 |
34 | public init?(rawValue: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
35 | guard let metric = deserializer.deserialize(rawValue) else { return nil }
36 | self.start = metric.start
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
38 |
39 | func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
40 | metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
| `- error: cannot infer contextual base in reference to member 'localCache'
41 | }
42 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
28 | return response.url
29 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | return response.url
29 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
26 | func url(_ result: URLSessionTaskResult) -> URL? {
27 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
28 | return response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
29 | }
30 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
33 | return response.statusCode
34 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | return response.statusCode
34 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 | func code(_ result: URLSessionTaskResult) -> Int? {
32 | guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
33 | return response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 | }
35 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
39 | if let key = pair.key as? String, let value = pair.value as? String {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
36 | func headers(_ result: URLSessionTaskResult) -> [String: String] {
37 | guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
38 | return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
39 | if let key = pair.key as? String, let value = pair.value as? String {
40 | dict[key] = value
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
48 |
49 | func contentLength(_ result: URLSessionTaskResult) -> Int {
50 | return Int(result.urlResponse.expectedContentLength)
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
51 | }
52 |
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
52 |
53 | func mimeType(_ result: URLSessionTaskResult) -> NetworkingMimeType? {
54 | guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
55 | return NetworkingMimeType(rawValue: rawValue)
56 | }
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
57 |
58 | func encoding(_ result: URLSessionTaskResult) -> NetworkingEncoding? {
59 | guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
60 | return NetworkingEncoding(rawValue: rawValue)
61 | }
BUILD FAILURE 6.1 wasm