Build Information
Failed to build IPAPI, reference master (739413
), with Swift 6.1 for Linux on 25 Apr 2025 20:41:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/arturgrigor/IPAPI.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/arturgrigor/IPAPI
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7394135 Merge pull request #4 from arturgrigor/develop
Submodule path 'Carthage/Checkouts/OHHTTPStubs': checked out 'a5f9693dbf7a98e91cd7b72fff02bdd291ac66e0'
Submodule 'Carthage/Checkouts/OHHTTPStubs' (https://github.com/AliSoftware/OHHTTPStubs.git) registered for path 'Carthage/Checkouts/OHHTTPStubs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/OHHTTPStubs'...
Cloned https://github.com/arturgrigor/IPAPI.git
Revision (git rev-parse @):
7394135f9162ab7127a5ebd94d48e797dc516414
SUCCESS checkout https://github.com/arturgrigor/IPAPI.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/arturgrigor/IPAPI.git
https://github.com/arturgrigor/IPAPI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "IPAPI",
"name" : "IPAPI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "8.0"
},
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "IPAPI",
"targets" : [
"IPAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "IPAPI",
"module_type" : "SwiftTarget",
"name" : "IPAPI",
"path" : "Sources",
"product_memberships" : [
"IPAPI"
],
"sources" : [
"Service.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
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/4] Emitting module IPAPI
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | /// Returns the session configuration of the receiver.
185 | open var configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 | // MARK: - Initialization -
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/Service.swift:190:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Our system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP click [here](http://ip-api.com/docs/unban).
18 | /// You are free to use ip-api.com for non-commercial use. **We do not allow commercial use without prior approval**.
19 | open class Service {
| `- note: class 'Service' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Types -
:
188 |
189 | /// The default instance of `Service` initialized with default values.
190 | public static let `default` = Service()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 |
192 | /// Initializes the `Service` instance with the given timeout interval.
/host/spi-builder-workspace/Sources/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 | ) {
205 | self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 | ) {
205 | self.pricingPlan = pricingPlan
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/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | /// - Returns: The new `URLSessionDataTask` instance.
220 | @discardableResult
221 | open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | var urlComponents: URLComponents
223 | do {
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/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | /// - Returns: The new `URLSessionDataTask` instance.
279 | @discardableResult
280 | open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | var urlComponents: URLComponents
282 | do {
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
[4/4] Compiling IPAPI Service.swift
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | /// Returns the session configuration of the receiver.
185 | open var configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 | // MARK: - Initialization -
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/Service.swift:190:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
17 | /// Our system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP click [here](http://ip-api.com/docs/unban).
18 | /// You are free to use ip-api.com for non-commercial use. **We do not allow commercial use without prior approval**.
19 | open class Service {
| `- note: class 'Service' does not conform to the 'Sendable' protocol
20 |
21 | // MARK: - Types -
:
188 |
189 | /// The default instance of `Service` initialized with default values.
190 | public static let `default` = Service()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Service' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
191 |
192 | /// Initializes the `Service` instance with the given timeout interval.
/host/spi-builder-workspace/Sources/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 | ) {
205 | self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 | ) {
205 | self.pricingPlan = pricingPlan
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/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | /// - Returns: The new `URLSessionDataTask` instance.
220 | @discardableResult
221 | open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | var urlComponents: URLComponents
223 | do {
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/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | /// - Returns: The new `URLSessionDataTask` instance.
279 | @discardableResult
280 | open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | var urlComponents: URLComponents
282 | do {
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/Service.swift:250:23: error: cannot find 'URLRequest' in scope
248 | }
249 |
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot find 'URLRequest' in scope
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:250:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
248 | }
249 |
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:252:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
253 |
254 | let task = session.dataTask(with: request, completionHandler: { data, response, error in
/host/spi-builder-workspace/Sources/Service.swift:309:23: error: cannot find 'URLRequest' in scope
307 | }
308 |
309 | var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot find 'URLRequest' in scope
310 | request.httpMethod = "POST"
311 | request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:309:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
307 | }
308 |
309 | var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
310 | request.httpMethod = "POST"
311 | request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:313:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
311 | request.httpBody = jsonBody
312 | let config = self.configuration
313 | let session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
314 |
315 | let task = session.dataTask(with: request, completionHandler: { data, response, error in
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/Sources/IPAPI.h': File not found.
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module IPAPI
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | /// Returns the session configuration of the receiver.
185 | open var configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 | // MARK: - Initialization -
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/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 | ) {
205 | self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 | ) {
205 | self.pricingPlan = pricingPlan
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/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | /// - Returns: The new `URLSessionDataTask` instance.
220 | @discardableResult
221 | open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | var urlComponents: URLComponents
223 | do {
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/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | /// - Returns: The new `URLSessionDataTask` instance.
279 | @discardableResult
280 | open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | var urlComponents: URLComponents
282 | do {
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
[3/3] Compiling IPAPI Service.swift
/host/spi-builder-workspace/Sources/Service.swift:185:29: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 | /// Returns the session configuration of the receiver.
185 | open var configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |
187 | // MARK: - Initialization -
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/Service.swift:203:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
204 | ) {
205 | self.pricingPlan = pricingPlan
/host/spi-builder-workspace/Sources/Service.swift:203:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | pricingPlan: PricingPlan = .free,
202 | timeoutInterval: TimeInterval = 15,
203 | configuration: URLSessionConfiguration = URLSessionConfiguration.default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 | ) {
205 | self.pricingPlan = pricingPlan
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/Service.swift:221:162: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | /// - Returns: The new `URLSessionDataTask` instance.
220 | @discardableResult
221 | open func fetch(query: String? = nil, fields: [Result.Field]? = nil, language: String? = nil, completion: ((Swift.Result<Result, Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | var urlComponents: URLComponents
223 | do {
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/Service.swift:280:108: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | /// - Returns: The new `URLSessionDataTask` instance.
279 | @discardableResult
280 | open func batch(_ queries: [Request], completion: ((Swift.Result<[Result], Swift.Error>) -> Void)?) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | var urlComponents: URLComponents
282 | do {
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/Service.swift:250:23: error: cannot find 'URLRequest' in scope
248 | }
249 |
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot find 'URLRequest' in scope
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:250:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
248 | }
249 |
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/Service.swift:252:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 | let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
251 | let config = self.configuration
252 | let session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
253 |
254 | let task = session.dataTask(with: request, completionHandler: { data, response, error in
/host/spi-builder-workspace/Sources/Service.swift:309:23: error: cannot find 'URLRequest' in scope
307 | }
308 |
309 | var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot find 'URLRequest' in scope
310 | request.httpMethod = "POST"
311 | request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:309:58: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
307 | }
308 |
309 | var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: self.timeoutInterval)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
310 | request.httpMethod = "POST"
311 | request.httpBody = jsonBody
/host/spi-builder-workspace/Sources/Service.swift:313:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
311 | request.httpBody = jsonBody
312 | let config = self.configuration
313 | let session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
314 |
315 | let task = session.dataTask(with: request, completionHandler: { data, response, error in
BUILD FAILURE 6.1 linux