Build Information
Failed to build HTTPCodable, reference 0.2.0 (6b40e0), with Swift 6.1 for Android on 27 May 2025 11:27:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/terwanerik/httpcodable.git
Reference: 0.2.0
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/terwanerik/httpcodable
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 6b40e00 Merge pull request #1 from terwanerik/passing-current-session
Cloned https://github.com/terwanerik/httpcodable.git
Revision (git rev-parse @):
6b40e00b7dad02c8010e0bc98ca1006d11fd0f5b
SUCCESS checkout https://github.com/terwanerik/httpcodable.git at 0.2.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/terwanerik/httpcodable.git
https://github.com/terwanerik/httpcodable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "futures",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/formbound/Futures.git"
}
],
"manifest_display_name" : "HTTPCodable",
"name" : "HTTPCodable",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HTTPCodable",
"targets" : [
"HTTPCodable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPCodableTests",
"module_type" : "SwiftTarget",
"name" : "HTTPCodableTests",
"path" : "Tests/HTTPCodableTests",
"sources" : [
"HTTPCodableTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HTTPCodable"
],
"type" : "test"
},
{
"c99name" : "HTTPCodable",
"module_type" : "SwiftTarget",
"name" : "HTTPCodable",
"path" : "Sources/HTTPCodable",
"product_dependencies" : [
"Futures"
],
"product_memberships" : [
"HTTPCodable"
],
"sources" : [
"Client.swift",
"CodableClient/CodableClient+Codable.swift",
"CodableClient/CodableClient+Request.swift",
"CodableClient/CodableClient+Rest.swift",
"CodableClient/CodableClient.swift",
"Errors/HTTPCodableError.swift",
"Extensions/Encodable+Query.swift",
"HTTP/HTTPCodableMethod.swift",
"HTTPCodable/HTTPCodable.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/formbound/Futures.git
[1/972] Fetching futures
Fetched https://github.com/formbound/Futures.git from cache (0.28s)
Computing version for https://github.com/formbound/Futures.git
Computed https://github.com/formbound/Futures.git at 1.6.1 (2.24s)
Creating working copy for https://github.com/formbound/Futures.git
Working copy of https://github.com/formbound/Futures.git resolved at 1.6.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Futures PromisesExtended.swift
[5/9] Compiling Futures AnyFuture.swift
[6/9] Compiling Futures Promise.swift
[7/9] Compiling Futures DispatchQueue+Futures.swift
[8/9] Compiling Futures Future.swift
[9/9] Emitting module Futures
[11/19] Compiling HTTPCodable HTTPCodableError.swift
[12/19] Compiling HTTPCodable HTTPCodableMethod.swift
[13/20] Compiling HTTPCodable Encodable+Query.swift
[14/20] Compiling HTTPCodable CodableClient.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
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/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
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/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | }
46 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:67: error: reference to member 'default' cannot be resolved without a contextual type
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: reference to member 'default' cannot be resolved without a contextual type
45 | }
46 |
[15/20] Compiling HTTPCodable CodableClient+Rest.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:10:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
8 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
9 |
10 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
11 | try self.decode(data: data, to: T.self)
12 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:27:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
25 | let response: DataResponse = request(.post, url: url, body: body, query: query)
26 |
27 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
28 | try self.decode(data: data, to: T.self)
29 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:44:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
42 | let response: DataResponse = request(.put, url: url, body: body, query: query)
43 |
44 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
45 | try self.decode(data: data, to: T.self)
46 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:61:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
59 | let response: DataResponse = request(.patch, url: url, body: body, query: query)
60 |
61 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
62 | try self.decode(data: data, to: T.self)
63 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:77:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
75 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
76 |
77 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
78 | try self.decode(data: data, to: T.self)
79 | }, task: response.task)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/20] Emitting module HTTPCodable
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:5:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Futures
3 |
4 | public final class Client: CodableClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
5 | public static let shared = Client()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var currentSession: URLSessionDataTask?
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
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/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
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/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
[17/20] Compiling HTTPCodable CodableClient+Request.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:44:23: error: cannot find 'URLRequest' in scope
42 | }
43 |
44 | var request = URLRequest(url: url,
| `- error: cannot find 'URLRequest' in scope
45 | cachePolicy: cachePolicy ?? .useProtocolCachePolicy,
46 | timeoutInterval: timeoutInterval ?? 60.0)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | request.addValue("application/json", forHTTPHeaderField: "Content-Type")
51 |
52 | let task = urlSession.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | if let error = error {
54 | return promise.reject(error)
[18/20] Compiling HTTPCodable Client.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:5:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Futures
3 |
4 | public final class Client: CodableClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
5 | public static let shared = Client()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var currentSession: URLSessionDataTask?
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[19/20] Compiling HTTPCodable CodableClient+Codable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:5:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Futures
3 |
4 | public final class Client: CodableClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
5 | public static let shared = Client()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var currentSession: URLSessionDataTask?
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[20/20] Compiling HTTPCodable HTTPCodable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling Futures PromisesExtended.swift
[3/7] Compiling Futures Promise.swift
[4/7] Compiling Futures DispatchQueue+Futures.swift
[5/7] Compiling Futures AnyFuture.swift
[6/7] Emitting module Futures
[7/7] Compiling Futures Future.swift
[9/17] Compiling HTTPCodable CodableClient.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
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/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
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/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | }
46 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:44:67: error: reference to member 'default' cannot be resolved without a contextual type
42 | extension CodableClient {
43 | public var urlSession: URLSession {
44 | return URLSession(configuration: sessionConfiguration ?? .default)
| `- error: reference to member 'default' cannot be resolved without a contextual type
45 | }
46 |
[10/18] Compiling HTTPCodable HTTPCodableMethod.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/18] Emitting module HTTPCodable
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:5:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 |
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
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/HTTPCodable/CodableClient/CodableClient.swift:6:55: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public protocol CodableClient {
5 | typealias DataResponse = (future: Future<Data>, task: URLSessionTask?)
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | var urlSession: URLSession { get }
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/HTTPCodable/CodableClient/CodableClient.swift:8:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | typealias Response<T> = (future: Future<T>, task: URLSessionTask?)
7 |
8 | var urlSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | var encoder: JSONEncoder { get }
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/HTTPCodable/CodableClient/CodableClient.swift:15:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | var baseUrl: String? { get }
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var cachePolicy: URLRequest.CachePolicy? { get }
17 | var timeoutInterval: TimeInterval? { get }
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/HTTPCodable/CodableClient/CodableClient.swift:43:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | /// Optionals
42 | extension CodableClient {
43 | public var urlSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | return URLSession(configuration: sessionConfiguration ?? .default)
45 | }
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/HTTPCodable/CodableClient/CodableClient.swift:59:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | public var sessionConfiguration: URLSessionConfiguration? {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | return nil
61 | }
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/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
[12/18] Compiling HTTPCodable Encodable+Query.swift
[13/18] Compiling HTTPCodable HTTPCodableError.swift
[14/18] Compiling HTTPCodable CodableClient+Request.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:44:23: error: cannot find 'URLRequest' in scope
42 | }
43 |
44 | var request = URLRequest(url: url,
| `- error: cannot find 'URLRequest' in scope
45 | cachePolicy: cachePolicy ?? .useProtocolCachePolicy,
46 | timeoutInterval: timeoutInterval ?? 60.0)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:63:29: error: cannot find type 'URLRequest' in scope
61 | }
62 |
63 | public var cachePolicy: URLRequest.CachePolicy? {
| `- error: cannot find type 'URLRequest' in scope
64 | return nil
65 | }
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Request.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | request.addValue("application/json", forHTTPHeaderField: "Content-Type")
51 |
52 | let task = urlSession.dataTask(with: request) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | if let error = error {
54 | return promise.reject(error)
[15/18] Compiling HTTPCodable CodableClient+Rest.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:10:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
8 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
9 |
10 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
11 | try self.decode(data: data, to: T.self)
12 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:27:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
25 | let response: DataResponse = request(.post, url: url, body: body, query: query)
26 |
27 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
28 | try self.decode(data: data, to: T.self)
29 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:44:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
42 | let response: DataResponse = request(.put, url: url, body: body, query: query)
43 |
44 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
45 | try self.decode(data: data, to: T.self)
46 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:61:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
59 | let response: DataResponse = request(.patch, url: url, body: body, query: query)
60 |
61 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
62 | try self.decode(data: data, to: T.self)
63 | }, task: response.task)
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient+Rest.swift:77:45: error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
75 | let response: DataResponse = request(.get, url: url, body: nil, query: query)
76 |
77 | return (future: response.future.map { data in
| `- error: invalid conversion from throwing function of type '(Data) throws -> T' to non-throwing function type '(Data) -> T'
78 | try self.decode(data: data, to: T.self)
79 | }, task: response.task)
[16/18] Compiling HTTPCodable Client.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[17/18] Compiling HTTPCodable CodableClient+Codable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/Client.swift:7:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | public static let shared = Client()
6 |
7 | public var currentSession: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public var baseUrl: String?
9 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
[18/18] Compiling HTTPCodable HTTPCodable.swift
/host/spi-builder-workspace/Sources/HTTPCodable/CodableClient/CodableClient.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |
15 | var sessionConfiguration: URLSessionConfiguration? { get }
16 | var cachePolicy: URLRequest.CachePolicy? { get }
| `- error: cannot find type 'URLRequest' in scope
17 | var timeoutInterval: TimeInterval? { get }
18 |
BUILD FAILURE 6.1 android