Build Information
Failed to build IPData with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heyzooi/IPData.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/heyzooi/IPData
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 057083f Updating .cirrus.yml
Cloned https://github.com/heyzooi/IPData.git
Revision (git rev-parse @):
057083f83991c0bd7c39aac44612dd3416fc447c
SUCCESS checkout https://github.com/heyzooi/IPData.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/heyzooi/IPData.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling IPData Threat.swift
[4/13] Compiling IPData StatusCode.swift
[5/13] Compiling IPData Result.swift
[6/13] Compiling IPData Language.swift
[7/13] Compiling IPData IPDataError.swift
/host/spi-builder-workspace/Sources/IPData/IPDataError.swift:41:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: statusCode)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
[8/13] Compiling IPData Timezone.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/13] Compiling IPData Carrier.swift
[10/13] Compiling IPData Currency.swift
[11/13] Emitting module IPData
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var urlSession = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:14:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask? {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse?,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[12/13] Compiling IPData IP.swift
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var urlSession = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:14:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask? {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse?,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:23:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:41:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: urlComponents.url!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:64:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:69:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch {
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = response as? HTTPURLResponse else {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:89:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:90:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:104:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let error = IPDataError(statusCode: response.statusCode, message: message)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:111:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
[13/13] Compiling IPData IPData.swift
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var urlSession = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:14:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask? {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse?,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:23:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:41:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: urlComponents.url!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:64:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:69:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch {
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = response as? HTTPURLResponse else {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:89:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:90:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:104:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let error = IPDataError(statusCode: response.statusCode, message: message)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:111:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling IPData IPData.swift
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var urlSession = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:14:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask? {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse?,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:23:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:41:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: urlComponents.url!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:64:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = urlSession.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:69:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
} catch {
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = response as? HTTPURLResponse else {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:89:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:90:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:104:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
let error = IPDataError(statusCode: response.statusCode, message: message)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:111:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
~~~~~~~~ ^~~~~~~~~~
[3/5] Compiling IPData IPDataError.swift
/host/spi-builder-workspace/Sources/IPData/IPDataError.swift:41:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
return HTTPURLResponse.localizedString(forStatusCode: statusCode)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Compiling IPData IP.swift
[5/5] Emitting module IPData
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public static var urlSession = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/IPData/IPData.swift:14:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlSession: URLSession = urlSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
) -> URLSessionTask? {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse?,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1