Build Information
Failed to build IPData, reference 1.0.0 (057083), with Swift 6.2 for Android on 18 Jun 2025 07:18:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heyzooi/IPData.git
Reference: 1.0.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/heyzooi/IPData
* tag 1.0.0 -> FETCH_HEAD
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 1.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/heyzooi/IPData.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/12] Compiling IPData Language.swift
[4/13] Compiling IPData Threat.swift
[5/13] Compiling IPData StatusCode.swift
[6/13] Compiling IPData IP.swift
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
3 | public class IPData {
4 |
5 | public static var urlSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 |
7 | public static var apiKey: String?
/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.
12 | @discardableResult
13 | public static func lookup(
14 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | apiKey: String? = apiKey,
16 | ip: String = "",
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/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ip: String = "",
17 | completionHandler: @escaping (Result<IP>) -> Void
18 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)")!
20 | urlComponents.queryItems = [
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/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | @discardableResult
31 | public static func carrier(
32 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | apiKey: String? = apiKey,
34 | ip: String,
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/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | ip: String,
35 | completionHandler: @escaping (Result<Carrier>) -> Void
36 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)/carrier")!
38 | urlComponents.queryItems = [
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/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | @discardableResult
49 | public static func lookup(
50 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | apiKey: String? = apiKey,
52 | bulk ips: [String],
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/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | bulk ips: [String],
53 | completionHandler: @escaping (Result<[IP]>) -> Void
54 | ) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | var urlComponents = URLComponents(string: "https://api.ipdata.co/bulk")!
56 | urlComponents.queryItems = [
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/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private static func responseHandler<SucessType>(
76 | data: Data?,
77 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | error: Error?,
79 | completionHandler: (Result<SucessType>) -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IPData/IPData.swift:23:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
21 | URLQueryItem(name: "api-key", value: apiKey)
22 | ]
23 | let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
24 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
25 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:41:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
39 | URLQueryItem(name: "api-key", value: apiKey)
40 | ]
41 | let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
42 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
43 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:59:23: error: cannot find 'URLRequest' in scope
57 | URLQueryItem(name: "api-key", value: apiKey)
58 | ]
59 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
60 | do {
61 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/IPData/IPData.swift:64:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
62 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
63 | request.httpBody = try JSONSerialization.data(withJSONObject: ips)
64 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
65 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
66 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:69:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
67 | task.resume()
68 | return task
69 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
70 | completionHandler(.failure(error))
71 | return nil
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
83 | return
84 | }
85 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
86 | completionHandler(.failure(IPDataError.unknown))
87 | return
/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.
83 | return
84 | }
85 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | completionHandler(.failure(IPDataError.unknown))
87 | return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IPData/IPData.swift:89:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | return
88 | }
89 | guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
91 | return
/host/spi-builder-workspace/Sources/IPData/IPData.swift:90:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 | }
89 | guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
90 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | return
92 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:104:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | let message = json["message"] as? String
103 | {
104 | let error = IPDataError(statusCode: response.statusCode, message: message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | completionHandler(.failure(error))
106 | return
/host/spi-builder-workspace/Sources/IPData/IPData.swift:111:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | }
110 | default:
111 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | }
113 | } catch {
[7/13] Compiling IPData IPData.swift
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
3 | public class IPData {
4 |
5 | public static var urlSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 |
7 | public static var apiKey: String?
/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.
12 | @discardableResult
13 | public static func lookup(
14 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | apiKey: String? = apiKey,
16 | ip: String = "",
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/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ip: String = "",
17 | completionHandler: @escaping (Result<IP>) -> Void
18 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)")!
20 | urlComponents.queryItems = [
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/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | @discardableResult
31 | public static func carrier(
32 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | apiKey: String? = apiKey,
34 | ip: String,
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/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | ip: String,
35 | completionHandler: @escaping (Result<Carrier>) -> Void
36 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)/carrier")!
38 | urlComponents.queryItems = [
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/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | @discardableResult
49 | public static func lookup(
50 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | apiKey: String? = apiKey,
52 | bulk ips: [String],
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/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | bulk ips: [String],
53 | completionHandler: @escaping (Result<[IP]>) -> Void
54 | ) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | var urlComponents = URLComponents(string: "https://api.ipdata.co/bulk")!
56 | urlComponents.queryItems = [
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/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private static func responseHandler<SucessType>(
76 | data: Data?,
77 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | error: Error?,
79 | completionHandler: (Result<SucessType>) -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IPData/IPData.swift:23:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
21 | URLQueryItem(name: "api-key", value: apiKey)
22 | ]
23 | let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
24 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
25 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:41:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
39 | URLQueryItem(name: "api-key", value: apiKey)
40 | ]
41 | let task = urlSession.dataTask(with: urlComponents.url!) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
42 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
43 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:59:23: error: cannot find 'URLRequest' in scope
57 | URLQueryItem(name: "api-key", value: apiKey)
58 | ]
59 | var request = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
60 | do {
61 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/IPData/IPData.swift:64:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
62 | request.setValue("application/json; charset=utf-8", forHTTPHeaderField: "Content-Type")
63 | request.httpBody = try JSONSerialization.data(withJSONObject: ips)
64 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
65 | responseHandler(data: data, response: response, error: error, completionHandler: completionHandler)
66 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:69:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
67 | task.resume()
68 | return task
69 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
70 | completionHandler(.failure(error))
71 | return nil
/host/spi-builder-workspace/Sources/IPData/IPData.swift:85:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
83 | return
84 | }
85 | guard let response = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
86 | completionHandler(.failure(IPDataError.unknown))
87 | return
/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.
83 | return
84 | }
85 | guard let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | completionHandler(.failure(IPDataError.unknown))
87 | return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/IPData/IPData.swift:89:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | return
88 | }
89 | guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
91 | return
/host/spi-builder-workspace/Sources/IPData/IPData.swift:90:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 | }
89 | guard let statusCode = StatusCode(rawValue: response.statusCode), let data = data else {
90 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | return
92 | }
/host/spi-builder-workspace/Sources/IPData/IPData.swift:104:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | let message = json["message"] as? String
103 | {
104 | let error = IPDataError(statusCode: response.statusCode, message: message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | completionHandler(.failure(error))
106 | return
/host/spi-builder-workspace/Sources/IPData/IPData.swift:111:93: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | }
110 | default:
111 | completionHandler(.failure(IPDataError.invalidResponse(statusCode: response.statusCode)))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 | }
113 | } catch {
[8/13] Compiling IPData IPDataError.swift
/host/spi-builder-workspace/Sources/IPData/IPDataError.swift:41:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
39 | return message
40 | case .invalidResponse(let statusCode):
41 | return HTTPURLResponse.localizedString(forStatusCode: statusCode)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
42 | case .unknown:
43 | return "Unknown Error"
[9/13] Compiling IPData Result.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling IPData Carrier.swift
[11/13] Compiling IPData Currency.swift
[12/13] Emitting module IPData
/host/spi-builder-workspace/Sources/IPData/IPData.swift:5:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
3 | public class IPData {
4 |
5 | public static var urlSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 |
7 | public static var apiKey: String?
/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.
12 | @discardableResult
13 | public static func lookup(
14 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | apiKey: String? = apiKey,
16 | ip: String = "",
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/IPData/IPData.swift:18:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ip: String = "",
17 | completionHandler: @escaping (Result<IP>) -> Void
18 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)")!
20 | urlComponents.queryItems = [
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/IPData/IPData.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | @discardableResult
31 | public static func carrier(
32 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | apiKey: String? = apiKey,
34 | ip: String,
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/IPData/IPData.swift:36:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | ip: String,
35 | completionHandler: @escaping (Result<Carrier>) -> Void
36 | ) -> URLSessionTask {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | var urlComponents = URLComponents(string: "https://api.ipdata.co/\(ip)/carrier")!
38 | urlComponents.queryItems = [
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/IPData/IPData.swift:50:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | @discardableResult
49 | public static func lookup(
50 | urlSession: URLSession = urlSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | apiKey: String? = apiKey,
52 | bulk ips: [String],
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/IPData/IPData.swift:54:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | bulk ips: [String],
53 | completionHandler: @escaping (Result<[IP]>) -> Void
54 | ) -> URLSessionTask? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | var urlComponents = URLComponents(string: "https://api.ipdata.co/bulk")!
56 | urlComponents.queryItems = [
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/IPData/IPData.swift:77:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | private static func responseHandler<SucessType>(
76 | data: Data?,
77 | response: URLResponse?,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | error: Error?,
79 | completionHandler: (Result<SucessType>) -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[13/13] Compiling IPData Timezone.swift
BUILD FAILURE 6.2 android