Build Information
Failed to build SwiftyNetworking, reference master (4e3f29
), with Swift 5.10 for Linux on 26 Aug 2025 16:36:20 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:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/antonio-war/SwiftyNetworking.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/antonio-war/SwiftyNetworking
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4e3f29e fix: send request method scope
Cloned https://github.com/antonio-war/SwiftyNetworking.git
Revision (git rev-parse @):
4e3f29e028c25b63c1a7e68f3c2fb90aa3e174f7
SUCCESS checkout https://github.com/antonio-war/SwiftyNetworking.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/antonio-war/SwiftyNetworking.git
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:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:f746aad7c5ec38b8c4300eda0f2f0c9a0b77dcddb8dbf0ff5a0c28d11b933b5b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/22] Emitting module SwiftyNetworking
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:17: error: expected '{' in body of function declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
public static let `default`: NetworkingDelegate = {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
func url(_ request: URLRequest) -> URL? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
func method(_ request: URLRequest) -> NetworkingMethod? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
func headers(_ request: URLRequest) -> [String: String] {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
func queryParameters(_ request: URLRequest) -> [String: String]? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
func body(_ request: URLRequest) -> Data? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
func timeout(_ request: URLRequest) -> TimeInterval {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
func start(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
func end(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
func serialize(_ request: NetworkingRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
^~~~~~~~~~
/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.
func urlResponse(_ response: NetworkingResponse) -> URLResponse {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:11:29: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingRequest' has non-sendable type 'URL'
public private(set) var url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:16:16: warning: stored property 'cachePolicy' of 'Sendable'-conforming struct 'NetworkingRequest' has non-sendable type 'NetworkingCachePolicy'
public var cachePolicy: NetworkingCachePolicy
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:11:13: note: consider making enum 'NetworkingCachePolicy' conform to the 'Sendable' protocol
public enum NetworkingCachePolicy: String, Decodable, RawRepresentable {
^
, Sendable
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
public struct NetworkingRequest: Sendable, RawRepresentable {
^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
associatedtype RawValue
^
/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.
public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public var rawValue: (data: Data, urlResponse: URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:11:16: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:17:16: warning: stored property 'encoding' of 'Sendable'-conforming struct 'NetworkingResponse' has non-sendable type 'NetworkingEncoding?'
public let encoding: NetworkingEncoding?
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingEncoding.swift:11:13: note: consider making enum 'NetworkingEncoding' conform to the 'Sendable' protocol
public enum NetworkingEncoding: String, Decodable {
^
, Sendable
/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.
public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[4/24] Compiling SwiftyNetworking NetworkingSource.swift
[5/24] Compiling SwiftyNetworking NetworkingStandard.swift
[6/24] Compiling SwiftyNetworking NetworkingError.swift
[7/24] Compiling SwiftyNetworking URLRequestSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
func serialize(_ request: NetworkingRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(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.
func urlResponse(_ response: NetworkingResponse) -> URLResponse {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLResponse(
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
HTTPURLResponse(
^~~~~~~~~~~~~~~
[8/24] Compiling SwiftyNetworking URLSessionTaskResultSerializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:12:53: error: cannot find type 'URLRequest' in scope
func serialize(_ request: NetworkingRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:28:55: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: NetworkingRequest) -> URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLRequestSerializer.swift:13:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url(request), cachePolicy: cachePolicy(request), timeoutInterval: timeoutInterval(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.
func urlResponse(_ response: NetworkingResponse) -> URLResponse {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
func httpUrlResponse(_ response: NetworkingResponse) -> HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:22:20: error: 'URLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLResponse(
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Serializers/URLSessionTaskResultSerializer.swift:33:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
HTTPURLResponse(
^~~~~~~~~~~~~~~
[9/24] Compiling SwiftyNetworking NetworkingMimeType.swift
[10/24] Compiling SwiftyNetworking NetworkingResponseStatus.swift
[11/24] Compiling SwiftyNetworking NetworkingScheme.swift
[12/24] Compiling SwiftyNetworking NetworkingCachePolicy.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest.CachePolicy {
^~~~~~~~~~
[13/24] Compiling SwiftyNetworking NetworkingEncoding.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest.CachePolicy {
^~~~~~~~~~
[14/24] Compiling SwiftyNetworking NetworkingMethod.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:29:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest.CachePolicy {
^~~~~~~~~~
[15/24] Compiling SwiftyNetworking NetworkingMetric.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:11:29: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingRequest' has non-sendable type 'URL'
public private(set) var url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
public struct NetworkingRequest: Sendable, RawRepresentable {
^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
associatedtype RawValue
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
[16/24] Compiling SwiftyNetworking NetworkingRequest.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:11:29: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingRequest' has non-sendable type 'URL'
public private(set) var url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:10:15: error: type 'NetworkingRequest' does not conform to protocol 'RawRepresentable'
public struct NetworkingRequest: Sendable, RawRepresentable {
^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
associatedtype RawValue
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
[17/24] Compiling SwiftyNetworking NetworkingClient.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:17: error: expected '{' in body of function declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
public static let `default`: NetworkingDelegate = {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
return NetworkingMetric(rawValue: metrics)
~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
return NetworkingMetric(rawValue: metrics)
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
public init(
^
[18/24] Compiling SwiftyNetworking NetworkingQueue.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:17: error: expected '{' in body of function declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
public static let `default`: NetworkingDelegate = {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
return NetworkingMetric(rawValue: metrics)
~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
return NetworkingMetric(rawValue: metrics)
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
public init(
^
[19/24] Compiling SwiftyNetworking NetworkingDelegate.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:14:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(configuration: URLSessionConfiguration = .default, delegate: NetworkingDelegate = .default, queue: NetworkingQueue = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:17: error: expected '{' in body of function declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:34:49: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
return NetworkingClient(configuration: .default, delegate: .default, queue: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: queue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:13:42: error: cannot find type 'URLSessionTaskMetrics' in scope
public init(cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:11:42: error: cannot find type 'URLSessionTaskMetrics' in scope
private let cache: NSCache<NSNumber, URLSessionTaskMetrics>
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:17:102: error: cannot find type 'URLSessionTaskMetrics' in scope
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:28:38: error: cannot find type 'URLSessionTaskMetrics' in scope
let cache: NSCache<NSNumber, URLSessionTaskMetrics> = NSCache()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:27:55: error: type of expression is ambiguous without a type annotation
public static let `default`: NetworkingDelegate = {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:10:50: error: cannot find type 'URLSessionTaskDelegate' in scope
public final class NetworkingDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:43: error: extra argument 'rawValue' in call
return NetworkingMetric(rawValue: metrics)
~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Delegates/NetworkingDelegate.swift:24:32: error: missing arguments for parameters 'start', 'end', 'duration', 'redirections', 'source', 'standard' in call
return NetworkingMetric(rawValue: metrics)
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:18:12: note: 'init(start:end:duration:redirections:source:standard:)' declared here
public init(
^
[20/24] Compiling SwiftyNetworking URLRequestDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
func url(_ request: URLRequest) -> URL? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
func method(_ request: URLRequest) -> NetworkingMethod? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
func headers(_ request: URLRequest) -> [String: String] {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
func queryParameters(_ request: URLRequest) -> [String: String]? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
func body(_ request: URLRequest) -> Data? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
func timeout(_ request: URLRequest) -> TimeInterval {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:31:33: error: 'nil' requires a contextual type
components.queryItems = nil
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
func start(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
func end(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
return response.url
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.statusCode
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
return Int(result.urlResponse.expectedContentLength)
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
[21/24] Compiling SwiftyNetworking URLSessionTaskMetricsDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
func url(_ request: URLRequest) -> URL? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
func method(_ request: URLRequest) -> NetworkingMethod? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
func headers(_ request: URLRequest) -> [String: String] {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
func queryParameters(_ request: URLRequest) -> [String: String]? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
func body(_ request: URLRequest) -> Data? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
func timeout(_ request: URLRequest) -> TimeInterval {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:31:33: error: 'nil' requires a contextual type
components.queryItems = nil
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
func start(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
func end(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
return response.url
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.statusCode
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
return Int(result.urlResponse.expectedContentLength)
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
[22/24] Compiling SwiftyNetworking URLSessionTaskResultDeserializer.swift
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:12:33: error: cannot find type 'URLRequest' in scope
func deserialize(_ request: URLRequest) -> NetworkingRequest? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:28:25: error: cannot find type 'URLRequest' in scope
func url(_ request: URLRequest) -> URL? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:36:28: error: cannot find type 'URLRequest' in scope
func method(_ request: URLRequest) -> NetworkingMethod? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:42:29: error: cannot find type 'URLRequest' in scope
func headers(_ request: URLRequest) -> [String: String] {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:47:37: error: cannot find type 'URLRequest' in scope
func queryParameters(_ request: URLRequest) -> [String: String]? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:59:26: error: cannot find type 'URLRequest' in scope
func body(_ request: URLRequest) -> Data? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:63:33: error: cannot find type 'URLRequest' in scope
func cachePolicy(_ request: URLRequest) -> NetworkingCachePolicy? {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:68:29: error: cannot find type 'URLRequest' in scope
func timeout(_ request: URLRequest) -> TimeInterval {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:49:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingRequest.swift:60:26: error: cannot find type 'URLRequest' in scope
public var rawValue: URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLRequestDeserializer.swift:31:33: error: 'nil' requires a contextual type
components.queryItems = nil
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Enums/NetworkingCachePolicy.swift:18:28: error: cannot find type 'URLRequest' in scope
public init?(rawValue: URLRequest.CachePolicy) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:12:33: error: cannot find type 'URLSessionTaskMetrics' in scope
func deserialize(_ metrics: URLSessionTaskMetrics) -> NetworkingMetric? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:23:27: error: cannot find type 'URLSessionTaskMetrics' in scope
func start(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:27:25: error: cannot find type 'URLSessionTaskMetrics' in scope
func end(_ metrics: URLSessionTaskMetrics) -> Date {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:31:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func duration(_ metrics: URLSessionTaskMetrics) -> TimeInterval {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:35:34: error: cannot find type 'URLSessionTaskMetrics' in scope
func redirections(_ metrics: URLSessionTaskMetrics) -> Int {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:39:28: error: cannot find type 'URLSessionTaskMetrics' in scope
func source(_ metrics: URLSessionTaskMetrics) -> NetworkingSource {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:43:30: error: cannot find type 'URLSessionTaskMetrics' in scope
func standard(_ metrics: URLSessionTaskMetrics) -> NetworkingStandard? {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingMetric.swift:34:28: error: cannot find type 'URLSessionTaskMetrics' in scope
public init?(rawValue: URLSessionTaskMetrics) {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskMetricsDeserializer.swift:40:79: error: cannot infer contextual base in reference to member 'localCache'
metrics.transactionMetrics.contains(where: { $0.resourceFetchType == .localCache }) ? .cache : .network
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:27:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: consecutive declarations on a line must be separated by ';'
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
;
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:19:64: error: expected declaration
public func send(_ request: NetworkingRequest) async throws(NetworkingError) -> NetworkingResponse {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Actors/NetworkingClient.swift:10:14: note: in declaration of 'NetworkingClient'
public actor NetworkingClient: Sendable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:28:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
return response.url
~~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:32:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return nil }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:33:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return response.statusCode
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:37:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^
/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.
guard let response = result.urlResponse as? HTTPURLResponse else { return [:] }
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:38:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
return response.allHeaderFields.reduce(into: [String: String]()) { dict, pair in
~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:50:39: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
return Int(result.urlResponse.expectedContentLength)
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:54:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
guard let rawValue = result.urlResponse.mimeType?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyNetworking/Deserializers/URLSessionTaskResultDeserializer.swift:59:49: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'textEncodingName'
guard let rawValue = result.urlResponse.textEncodingName?.uppercased() else { return nil }
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
[23/24] 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.
public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public var rawValue: (data: Data, urlResponse: URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:11:16: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/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.
public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[24/24] 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.
public init?(rawValue: (data: Data, urlResponse: URLResponse)) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public var rawValue: (data: Data, urlResponse: URLResponse) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:11:16: warning: stored property 'url' of 'Sendable'-conforming struct 'NetworkingResponse' has non-sendable type 'URL'
public let url: URL
^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
^
/host/spi-builder-workspace/Sources/SwiftyNetworking/Structs/NetworkingResponse.swift:8:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/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.
public typealias URLSessionTaskResult = (data: Data, urlResponse: URLResponse)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
error: fatalError
BUILD FAILURE 5.10 linux