The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IPGeolocation, reference main (c3b6b3), with Swift 6.3 for Wasm on 22 Apr 2026 13:33:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build 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.3
Building package at path:  $PWD
https://github.com/IPGeolocation/ip-geolocation-api-swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling IPGeolocation Language.swift
[4/17] Compiling IPGeolocation LookupRequest.swift
[5/18] Compiling IPGeolocation QueryBuilder.swift
[6/18] Compiling IPGeolocation RequestNormalizer.swift
[7/18] 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 | }
[8/18] 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 | }
[9/18] Compiling IPGeolocation ResponseMapper.swift
[10/18] Compiling IPGeolocation JSONOutput.swift
[11/18] Compiling IPGeolocation Models.swift
[12/18] Compiling IPGeolocation ResponseFormat.swift
[13/18] Compiling IPGeolocation Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/18] Compiling IPGeolocation IPGeolocationClient.swift
[15/18] Compiling IPGeolocation IPGeolocationClientConfig.swift
[16/18] Compiling IPGeolocation APIResponse.swift
[17/18] Compiling IPGeolocation Errors.swift
[18/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
BUILD FAILURE 6.3 wasm