Build Information
Failed to build IPGeolocation, reference main (c3b6b3), with Swift 6.1 for Wasm on 22 Apr 2026 13:32:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git
Reference: main
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/IPGeolocation/ip-geolocation-api-swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c3b6b30 Update README.md
Cloned https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git
Revision (git rev-parse @):
c3b6b300de1a6f360065b6f607e2ccca08170a2f
SUCCESS checkout https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git
https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling IPGeolocation IPGeolocationClient.swift
[4/17] Compiling IPGeolocation IPGeolocationClientConfig.swift
[5/17] Compiling IPGeolocation ConfigNormalizer.swift
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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/IPGeolocation/Internal/HTTPTransport.swift:34:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
32 | maxResponseBodyBytes: Int
33 | ) {
34 | let configuration = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
35 | configuration.timeoutIntervalForRequest = requestTimeout
36 | configuration.timeoutIntervalForResource = resourceTimeout
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:38:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
36 | configuration.timeoutIntervalForResource = resourceTimeout
37 | configuration.urlCache = nil
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:40:49: error: cannot infer contextual base in reference to member 'never'
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
| `- error: cannot infer contextual base in reference to member 'never'
41 | configuration.urlCredentialStorage = nil
42 | configuration.httpShouldSetCookies = false
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | let blocker = RedirectBlocker()
46 | self.redirectBlocker = blocker
47 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | configuration: configuration,
49 | delegate: blocker,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:50:28: error: 'nil' requires a contextual type
48 | configuration: configuration,
49 | delegate: blocker,
50 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
51 | )
52 | self.maxResponseBodyBytes = maxResponseBodyBytes
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
60 |
61 | func close() {
62 | session.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
63 | }
64 |
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:66:26: error: cannot find 'URLRequest' in scope
64 |
65 | func send(_ request: HTTPRequestData) async throws -> HTTPResponseData {
66 | var urlRequest = URLRequest(url: request.url)
| `- error: cannot find 'URLRequest' in scope
67 | urlRequest.httpMethod = request.method
68 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:73:39: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
71 | }
72 |
73 | let bytesSequence: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | let response: URLResponse
75 | do {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:74:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | let bytesSequence: URLSession.AsyncBytes
74 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
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/IPGeolocation/Internal/HTTPTransport.swift:76:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
74 | let response: URLResponse
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
77 | } catch {
78 | throw Self.mapTransportError(error)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
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/IPGeolocation/Internal/HTTPTransport.swift:102:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |
101 | return HTTPResponseData(
102 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | body: bodyString,
104 | headers: headers
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:125:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
126 | guard let name = rawKey as? String else { continue }
127 | let canonical = RequestNormalizer.canonicalHeaderName(name)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:215:27: error: 'nil' requires a contextual type
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
215 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
216 | }
217 | }
[6/17] Compiling IPGeolocation HTTPTransport.swift
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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/IPGeolocation/Internal/HTTPTransport.swift:34:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
32 | maxResponseBodyBytes: Int
33 | ) {
34 | let configuration = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
35 | configuration.timeoutIntervalForRequest = requestTimeout
36 | configuration.timeoutIntervalForResource = resourceTimeout
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:38:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
36 | configuration.timeoutIntervalForResource = resourceTimeout
37 | configuration.urlCache = nil
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:40:49: error: cannot infer contextual base in reference to member 'never'
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
| `- error: cannot infer contextual base in reference to member 'never'
41 | configuration.urlCredentialStorage = nil
42 | configuration.httpShouldSetCookies = false
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | let blocker = RedirectBlocker()
46 | self.redirectBlocker = blocker
47 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | configuration: configuration,
49 | delegate: blocker,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:50:28: error: 'nil' requires a contextual type
48 | configuration: configuration,
49 | delegate: blocker,
50 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
51 | )
52 | self.maxResponseBodyBytes = maxResponseBodyBytes
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
60 |
61 | func close() {
62 | session.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
63 | }
64 |
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:66:26: error: cannot find 'URLRequest' in scope
64 |
65 | func send(_ request: HTTPRequestData) async throws -> HTTPResponseData {
66 | var urlRequest = URLRequest(url: request.url)
| `- error: cannot find 'URLRequest' in scope
67 | urlRequest.httpMethod = request.method
68 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:73:39: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
71 | }
72 |
73 | let bytesSequence: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | let response: URLResponse
75 | do {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:74:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | let bytesSequence: URLSession.AsyncBytes
74 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
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/IPGeolocation/Internal/HTTPTransport.swift:76:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
74 | let response: URLResponse
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
77 | } catch {
78 | throw Self.mapTransportError(error)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
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/IPGeolocation/Internal/HTTPTransport.swift:102:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |
101 | return HTTPResponseData(
102 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | body: bodyString,
104 | headers: headers
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:125:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
126 | guard let name = rawKey as? String else { continue }
127 | let canonical = RequestNormalizer.canonicalHeaderName(name)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:215:27: error: 'nil' requires a contextual type
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
215 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
216 | }
217 | }
[7/18] Compiling IPGeolocation ResponseMapper.swift
[8/18] Compiling IPGeolocation JSONOutput.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/18] Emitting module IPGeolocation
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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
[10/18] Compiling IPGeolocation APIResponse.swift
[11/18] Compiling IPGeolocation Errors.swift
[12/18] Compiling IPGeolocation Language.swift
[13/18] Compiling IPGeolocation LookupRequest.swift
[14/18] Compiling IPGeolocation Models.swift
[15/18] Compiling IPGeolocation ResponseFormat.swift
[16/18] Compiling IPGeolocation QueryBuilder.swift
[17/18] Compiling IPGeolocation RequestNormalizer.swift
[18/18] Compiling IPGeolocation Version.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] Compiling IPGeolocation QueryBuilder.swift
[3/16] Compiling IPGeolocation RequestNormalizer.swift
[4/16] Compiling IPGeolocation ResponseMapper.swift
[5/16] Compiling IPGeolocation JSONOutput.swift
[6/16] Compiling IPGeolocation ConfigNormalizer.swift
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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/IPGeolocation/Internal/HTTPTransport.swift:34:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
32 | maxResponseBodyBytes: Int
33 | ) {
34 | let configuration = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
35 | configuration.timeoutIntervalForRequest = requestTimeout
36 | configuration.timeoutIntervalForResource = resourceTimeout
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:38:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
36 | configuration.timeoutIntervalForResource = resourceTimeout
37 | configuration.urlCache = nil
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:40:49: error: cannot infer contextual base in reference to member 'never'
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
| `- error: cannot infer contextual base in reference to member 'never'
41 | configuration.urlCredentialStorage = nil
42 | configuration.httpShouldSetCookies = false
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | let blocker = RedirectBlocker()
46 | self.redirectBlocker = blocker
47 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | configuration: configuration,
49 | delegate: blocker,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:50:28: error: 'nil' requires a contextual type
48 | configuration: configuration,
49 | delegate: blocker,
50 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
51 | )
52 | self.maxResponseBodyBytes = maxResponseBodyBytes
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
60 |
61 | func close() {
62 | session.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
63 | }
64 |
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:66:26: error: cannot find 'URLRequest' in scope
64 |
65 | func send(_ request: HTTPRequestData) async throws -> HTTPResponseData {
66 | var urlRequest = URLRequest(url: request.url)
| `- error: cannot find 'URLRequest' in scope
67 | urlRequest.httpMethod = request.method
68 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:73:39: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
71 | }
72 |
73 | let bytesSequence: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | let response: URLResponse
75 | do {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:74:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | let bytesSequence: URLSession.AsyncBytes
74 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
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/IPGeolocation/Internal/HTTPTransport.swift:76:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
74 | let response: URLResponse
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
77 | } catch {
78 | throw Self.mapTransportError(error)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
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/IPGeolocation/Internal/HTTPTransport.swift:102:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |
101 | return HTTPResponseData(
102 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | body: bodyString,
104 | headers: headers
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:125:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
126 | guard let name = rawKey as? String else { continue }
127 | let canonical = RequestNormalizer.canonicalHeaderName(name)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:215:27: error: 'nil' requires a contextual type
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
215 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
216 | }
217 | }
[7/16] Compiling IPGeolocation HTTPTransport.swift
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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/IPGeolocation/Internal/HTTPTransport.swift:34:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
32 | maxResponseBodyBytes: Int
33 | ) {
34 | let configuration = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
35 | configuration.timeoutIntervalForRequest = requestTimeout
36 | configuration.timeoutIntervalForResource = resourceTimeout
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:38:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
36 | configuration.timeoutIntervalForResource = resourceTimeout
37 | configuration.urlCache = nil
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:40:49: error: cannot infer contextual base in reference to member 'never'
38 | configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
39 | configuration.httpCookieStorage = nil
40 | configuration.httpCookieAcceptPolicy = .never
| `- error: cannot infer contextual base in reference to member 'never'
41 | configuration.urlCredentialStorage = nil
42 | configuration.httpShouldSetCookies = false
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | let blocker = RedirectBlocker()
46 | self.redirectBlocker = blocker
47 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | configuration: configuration,
49 | delegate: blocker,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:50:28: error: 'nil' requires a contextual type
48 | configuration: configuration,
49 | delegate: blocker,
50 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
51 | )
52 | self.maxResponseBodyBytes = maxResponseBodyBytes
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:62:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
60 |
61 | func close() {
62 | session.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
63 | }
64 |
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:66:26: error: cannot find 'URLRequest' in scope
64 |
65 | func send(_ request: HTTPRequestData) async throws -> HTTPResponseData {
66 | var urlRequest = URLRequest(url: request.url)
| `- error: cannot find 'URLRequest' in scope
67 | urlRequest.httpMethod = request.method
68 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:73:39: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
71 | }
72 |
73 | let bytesSequence: URLSession.AsyncBytes
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | let response: URLResponse
75 | do {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:74:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 |
73 | let bytesSequence: URLSession.AsyncBytes
74 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
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/IPGeolocation/Internal/HTTPTransport.swift:76:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
74 | let response: URLResponse
75 | do {
76 | (bytesSequence, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
77 | } catch {
78 | throw Self.mapTransportError(error)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:81:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | }
80 |
81 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | throw TransportError("HTTP transport error: unexpected non-HTTP response")
83 | }
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/IPGeolocation/Internal/HTTPTransport.swift:102:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
100 |
101 | return HTTPResponseData(
102 | statusCode: httpResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
103 | body: bodyString,
104 | headers: headers
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:125:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
126 | guard let name = rawKey as? String else { continue }
127 | let canonical = RequestNormalizer.canonicalHeaderName(name)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:215:27: error: 'nil' requires a contextual type
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
215 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
216 | }
217 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/17] Emitting module IPGeolocation
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | final class URLSessionHTTPTransport: HTTPTransport, @unchecked Sendable {
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let maxResponseBodyBytes: Int
27 | private let redirectBlocker: RedirectBlocker
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/IPGeolocation/Internal/HTTPTransport.swift:55:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | init(session: URLSession, maxResponseBodyBytes: Int) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | self.session = session
57 | self.maxResponseBodyBytes = maxResponseBodyBytes
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/IPGeolocation/Internal/HTTPTransport.swift:108:53: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
106 | }
107 |
108 | private func readBody(bytesSequence: URLSession.AsyncBytes) async throws -> Data {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
109 | let cap = maxResponseBodyBytes
110 | var buffer = Data()
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:123:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | }
122 |
123 | private func normalizeHeaders(_ response: HTTPURLResponse) -> [String: [String]] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | var result: [String: [String]] = [:]
125 | for (rawKey, rawValue) in response.allHeaderFields {
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/IPGeolocation/Internal/HTTPTransport.swift:207:40: error: cannot find type 'URLSessionTaskDelegate' in scope
205 | /// redirects is the safest default for an API client with query-string auth;
206 | /// consumers who need redirects can point `baseURL` at the final host.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
208 | func urlSession(
209 | _ session: URLSession,
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:212:29: error: cannot find type 'URLRequest' in scope
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
213 | completionHandler: @escaping (URLRequest?) -> Void
214 | ) {
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:213:39: error: cannot find type 'URLRequest' in scope
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
214 | ) {
215 | completionHandler(nil)
/host/spi-builder-workspace/Sources/IPGeolocation/Internal/HTTPTransport.swift:209:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | final class RedirectBlocker: NSObject, URLSessionTaskDelegate {
208 | func urlSession(
209 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
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/IPGeolocation/Internal/HTTPTransport.swift:210:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 | func urlSession(
209 | _ session: URLSession,
210 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 | willPerformHTTPRedirection response: HTTPURLResponse,
212 | newRequest request: URLRequest,
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/IPGeolocation/Internal/HTTPTransport.swift:211:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | _ session: URLSession,
210 | task: URLSessionTask,
211 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | newRequest request: URLRequest,
213 | completionHandler: @escaping (URLRequest?) -> Void
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
[9/17] Compiling IPGeolocation APIResponse.swift
[10/17] Compiling IPGeolocation Errors.swift
[11/17] Compiling IPGeolocation IPGeolocationClient.swift
[12/17] Compiling IPGeolocation IPGeolocationClientConfig.swift
[13/17] Compiling IPGeolocation Version.swift
[14/17] Compiling IPGeolocation Language.swift
[15/17] Compiling IPGeolocation LookupRequest.swift
[16/17] Compiling IPGeolocation Models.swift
[17/17] Compiling IPGeolocation ResponseFormat.swift
BUILD FAILURE 6.1 wasm