The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OSRMRoute, reference main (74a389), with Swift 6.1 for Wasm on 23 Oct 2026 13:54:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Mammadoff/osrmroute-swift.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/Mammadoff/osrmroute-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 74a3892 Release 0.2.0 with App Attest mobile access
Cloned https://github.com/Mammadoff/osrmroute-swift.git
Revision (git rev-parse @):
74a38922bfce041cedf122c337dfb3168b4630c4
SUCCESS checkout https://github.com/Mammadoff/osrmroute-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Mammadoff/osrmroute-swift.git
https://github.com/Mammadoff/osrmroute-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
af0a519ef6b4: Pulling fs layer
1766f561578e: Pulling fs layer
60446ce17dda: Pulling fs layer
084d29024ec2: Pulling fs layer
7c8bfe2af377: Pulling fs layer
a701be23f03a: Pulling fs layer
f3bd0dc0c10f: Pulling fs layer
4d25b4483e63: Pulling fs layer
cd6e5e71cc18: Pulling fs layer
50f0c9148f9c: Pulling fs layer
1766f561578e: Download complete
7c8bfe2af377: Download complete
50f0c9148f9c: Download complete
cd6e5e71cc18: Download complete
af0a519ef6b4: Download complete
375d04b20e9a: Download complete
084d29024ec2: Download complete
60446ce17dda: Download complete
af0a519ef6b4: Pull complete
f3bd0dc0c10f: Download complete
a701be23f03a: Download complete
4d25b4483e63: Download complete
4d25b4483e63: Pull complete
1766f561578e: Pull complete
084d29024ec2: Pull complete
7c8bfe2af377: Pull complete
cd6e5e71cc18: Pull complete
a701be23f03a: Pull complete
f3bd0dc0c10f: Pull complete
50f0c9148f9c: Pull complete
60446ce17dda: Pull complete
Digest: sha256:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
Status: Downloaded newer image for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling OSRMRoute Models.swift
[4/6] Emitting module OSRMRoute
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:7:44: error: cannot find type 'URLSessionTaskDelegate' in scope
  5 | #endif
  6 |
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:10:79: error: cannot find type 'URLRequest' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                               `- error: cannot find type 'URLRequest' in scope
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:11:35: error: cannot find type 'URLRequest' in scope
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
 12 |   ) {
 13 |     completionHandler(nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:9:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:9:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:10:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
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/OSRMRoute/Client.swift:23:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |   private let timeout: TimeInterval
 22 |   private let retries: Int
 23 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |   public convenience init(
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/OSRMRoute/Client.swift:38:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |   init(
 37 |     baseURL: URL, timeout: TimeInterval = 30, retries: Int = 0,
 38 |     allowInsecureLocalhost: Bool = false, configuration: URLSessionConfiguration,
    |                                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     tokenProvider: @escaping @Sendable () async throws -> String
 40 |   ) throws {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:18:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |   private let proof: ProofProvider
 17 |   private let endpoint: URL
 18 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |   private var cached: (String, Date)?
 20 |   private var pending: Task<String, Error>?
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/OSRMRoute/MobileAccess.swift:26:68: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
    |                                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |        proof: @escaping ProofProvider) throws {
 28 |     guard UUID(uuidString: appID) != nil, (16...256).contains(keyID.count),
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:79:50: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | }
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:81:93: error: cannot find type 'URLRequest' in scope
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 83 | }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:49: error: cannot find type 'URLRequest' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                 `- error: cannot find type 'URLRequest' in scope
 83 | }
 84 |
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:80:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:80:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:81:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 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/OSRMRoute/MobileAccess.swift:24:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |   public init(appID: String, keyID: String, endpoint: URL = URL(string: "https://osrmroute.com")!,
 23 |               proof: @escaping ProofProvider) throws {
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
    |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:34:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 32 |     else { throw SDKError.invalidInput }
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:35:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:49: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                                                 `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:107: error: 'nil' requires a contextual type
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                                                                                                           `- error: 'nil' requires a contextual type
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
[5/6] Compiling OSRMRoute Client.swift
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:7:44: error: cannot find type 'URLSessionTaskDelegate' in scope
  5 | #endif
  6 |
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:10:79: error: cannot find type 'URLRequest' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                               `- error: cannot find type 'URLRequest' in scope
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:11:35: error: cannot find type 'URLRequest' in scope
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
 12 |   ) {
 13 |     completionHandler(nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:9:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:9:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:10:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
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/OSRMRoute/Client.swift:23:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |   private let timeout: TimeInterval
 22 |   private let retries: Int
 23 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |   public convenience init(
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/OSRMRoute/Client.swift:38:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |   init(
 37 |     baseURL: URL, timeout: TimeInterval = 30, retries: Int = 0,
 38 |     allowInsecureLocalhost: Bool = false, configuration: URLSessionConfiguration,
    |                                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     tokenProvider: @escaping @Sendable () async throws -> String
 40 |   ) throws {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:13:23: error: 'nil' requires a contextual type
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
 13 |     completionHandler(nil)
    |                       `- error: 'nil' requires a contextual type
 14 |   }
 15 | }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:32:71: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 30 |     try self.init(
 31 |       baseURL: baseURL, timeout: timeout, retries: retries,
 32 |       allowInsecureLocalhost: allowInsecureLocalhost, configuration: .ephemeral,
    |                                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 33 |       tokenProvider: tokenProvider)
 34 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:52:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 50 |     self.retries = retries
 51 |     self.tokenProvider = tokenProvider
 52 |     configuration.timeoutIntervalForRequest = timeout
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:53:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 51 |     self.tokenProvider = tokenProvider
 52 |     configuration.timeoutIntervalForRequest = timeout
 53 |     configuration.timeoutIntervalForResource = timeout
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:54:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 52 |     configuration.timeoutIntervalForRequest = timeout
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:55:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:56:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCredentialStorage'
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCredentialStorage'
 57 |     self.session = URLSession(
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:57:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
 59 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:58:77: error: 'nil' requires a contextual type
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
    |                                                                             `- error: 'nil' requires a contextual type
 59 |   }
 60 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:60:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
 59 |   }
 60 |   deinit { session.invalidateAndCancel() }
    |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 61 |   public func route(_ points: [Coordinate], profile: Profile = .car, steps: Bool = false)
 62 |     async throws -> RouteResponse
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:148:21: error: cannot find 'URLRequest' in scope
146 |         token.utf8.allSatisfy({ (33...126).contains($0) })
147 |       else { throw SDKError.invalidInput }
148 |       var request = URLRequest(
    |                     `- error: cannot find 'URLRequest' in scope
149 |         url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeout)
150 |       request.httpMethod = method
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:149:33: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
147 |       else { throw SDKError.invalidInput }
148 |       var request = URLRequest(
149 |         url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeout)
    |                                 `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
150 |       request.httpMethod = method
151 |       request.httpBody = body
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:156:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |       if body != nil { request.setValue("application/json", forHTTPHeaderField: "Content-Type") }
155 |       let data: Data
156 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |       do { (data, response) = try await session.data(for: request) } catch {
158 |         if Task.isCancelled { throw CancellationError() }
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/OSRMRoute/Client.swift:157:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
155 |       let data: Data
156 |       let response: URLResponse
157 |       do { (data, response) = try await session.data(for: request) } catch {
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
158 |         if Task.isCancelled { throw CancellationError() }
159 |         throw SDKError.transport
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:161:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
159 |         throw SDKError.transport
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
162 |       if (200...299).contains(http.statusCode) {
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:161:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |         throw SDKError.transport
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |       if (200...299).contains(http.statusCode) {
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
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/OSRMRoute/Client.swift:162:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
162 |       if (200...299).contains(http.statusCode) {
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
164 |         return data
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:166:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 |         return data
165 |       }
166 |       let header = http.value(forHTTPHeaderField: "Retry-After")
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 |       let seconds = header.flatMap(Double.init)
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:168:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       let header = http.value(forHTTPHeaderField: "Retry-After")
167 |       let seconds = header.flatMap(Double.init)
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |         header == nil || (seconds != nil && seconds!.isFinite && (0...30).contains(seconds!))
170 |       else { throw SDKError.http(status: http.statusCode) }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:170:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
169 |         header == nil || (seconds != nil && seconds!.isFinite && (0...30).contains(seconds!))
170 |       else { throw SDKError.http(status: http.statusCode) }
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
171 |       let delay = seconds ?? (0.25 * pow(2, Double(attempt)))
172 |       try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
[6/6] Compiling OSRMRoute MobileAccess.swift
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:18:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |   private let proof: ProofProvider
 17 |   private let endpoint: URL
 18 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |   private var cached: (String, Date)?
 20 |   private var pending: Task<String, Error>?
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/OSRMRoute/MobileAccess.swift:26:68: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
    |                                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |        proof: @escaping ProofProvider) throws {
 28 |     guard UUID(uuidString: appID) != nil, (16...256).contains(keyID.count),
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:79:50: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | }
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:81:93: error: cannot find type 'URLRequest' in scope
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 83 | }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:49: error: cannot find type 'URLRequest' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                 `- error: cannot find type 'URLRequest' in scope
 83 | }
 84 |
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:80:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:80:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:81:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 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/OSRMRoute/MobileAccess.swift:24:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |   public init(appID: String, keyID: String, endpoint: URL = URL(string: "https://osrmroute.com")!,
 23 |               proof: @escaping ProofProvider) throws {
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
    |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:34:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 32 |     else { throw SDKError.invalidInput }
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:35:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:49: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                                                 `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:107: error: 'nil' requires a contextual type
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                                                                                                           `- error: 'nil' requires a contextual type
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:39:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
    |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 40 |
 41 |   public func token() async throws -> String {
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:51:19: error: cannot find 'URLRequest' in scope
 49 |   public func invalidate() { cached = nil }
 50 |   private func post(_ operation: String, _ body: [String: String]) async throws -> [String: Any] {
 51 |     var request = URLRequest(url: endpoint.appendingPathComponent("api/mobile/\(operation)"))
    |                   `- error: cannot find 'URLRequest' in scope
 52 |     request.httpMethod = "POST"; request.setValue("application/json", forHTTPHeaderField: "Content-Type")
 53 |     request.httpBody = try JSONSerialization.data(withJSONObject: body)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:54:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |     request.httpMethod = "POST"; request.setValue("application/json", forHTTPHeaderField: "Content-Type")
 53 |     request.httpBody = try JSONSerialization.data(withJSONObject: body)
 54 |     let (data, response) = try await session.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |     guard let http = response as? HTTPURLResponse, http.statusCode == 200,
 56 |       data.count <= 32768,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:91: error: 'nil' requires a contextual type
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                                                           `- error: 'nil' requires a contextual type
 83 | }
 84 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling OSRMRoute Models.swift
[3/5] Emitting module OSRMRoute
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:7:44: error: cannot find type 'URLSessionTaskDelegate' in scope
  5 | #endif
  6 |
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:10:79: error: cannot find type 'URLRequest' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                               `- error: cannot find type 'URLRequest' in scope
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:11:35: error: cannot find type 'URLRequest' in scope
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
 12 |   ) {
 13 |     completionHandler(nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:9:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:9:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:10:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
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/OSRMRoute/Client.swift:23:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |   private let timeout: TimeInterval
 22 |   private let retries: Int
 23 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |   public convenience init(
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/OSRMRoute/Client.swift:38:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |   init(
 37 |     baseURL: URL, timeout: TimeInterval = 30, retries: Int = 0,
 38 |     allowInsecureLocalhost: Bool = false, configuration: URLSessionConfiguration,
    |                                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     tokenProvider: @escaping @Sendable () async throws -> String
 40 |   ) throws {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:18:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |   private let proof: ProofProvider
 17 |   private let endpoint: URL
 18 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |   private var cached: (String, Date)?
 20 |   private var pending: Task<String, Error>?
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/OSRMRoute/MobileAccess.swift:26:68: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
    |                                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |        proof: @escaping ProofProvider) throws {
 28 |     guard UUID(uuidString: appID) != nil, (16...256).contains(keyID.count),
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:79:50: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | }
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:81:93: error: cannot find type 'URLRequest' in scope
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 83 | }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:49: error: cannot find type 'URLRequest' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                 `- error: cannot find type 'URLRequest' in scope
 83 | }
 84 |
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:80:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:80:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:81:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 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/OSRMRoute/MobileAccess.swift:24:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |   public init(appID: String, keyID: String, endpoint: URL = URL(string: "https://osrmroute.com")!,
 23 |               proof: @escaping ProofProvider) throws {
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
    |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:34:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 32 |     else { throw SDKError.invalidInput }
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:35:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:49: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                                                 `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:107: error: 'nil' requires a contextual type
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                                                                                                           `- error: 'nil' requires a contextual type
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
[4/5] Compiling OSRMRoute Client.swift
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:7:44: error: cannot find type 'URLSessionTaskDelegate' in scope
  5 | #endif
  6 |
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:10:79: error: cannot find type 'URLRequest' in scope
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                               `- error: cannot find type 'URLRequest' in scope
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:11:35: error: cannot find type 'URLRequest' in scope
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
 12 |   ) {
 13 |     completionHandler(nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:9:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:9:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 | private final class NoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 11 |     completionHandler: @escaping (URLRequest?) -> Void
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/OSRMRoute/Client.swift:10:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |   func urlSession(
  9 |     _ session: URLSession, task: URLSessionTask,
 10 |     willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
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/OSRMRoute/Client.swift:23:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |   private let timeout: TimeInterval
 22 |   private let retries: Int
 23 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |   public convenience init(
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/OSRMRoute/Client.swift:38:58: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |   init(
 37 |     baseURL: URL, timeout: TimeInterval = 30, retries: Int = 0,
 38 |     allowInsecureLocalhost: Bool = false, configuration: URLSessionConfiguration,
    |                                                          `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     tokenProvider: @escaping @Sendable () async throws -> String
 40 |   ) throws {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:13:23: error: 'nil' requires a contextual type
 11 |     completionHandler: @escaping (URLRequest?) -> Void
 12 |   ) {
 13 |     completionHandler(nil)
    |                       `- error: 'nil' requires a contextual type
 14 |   }
 15 | }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:32:71: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 30 |     try self.init(
 31 |       baseURL: baseURL, timeout: timeout, retries: retries,
 32 |       allowInsecureLocalhost: allowInsecureLocalhost, configuration: .ephemeral,
    |                                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 33 |       tokenProvider: tokenProvider)
 34 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:52:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 50 |     self.retries = retries
 51 |     self.tokenProvider = tokenProvider
 52 |     configuration.timeoutIntervalForRequest = timeout
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:53:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 51 |     self.tokenProvider = tokenProvider
 52 |     configuration.timeoutIntervalForRequest = timeout
 53 |     configuration.timeoutIntervalForResource = timeout
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:54:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 52 |     configuration.timeoutIntervalForRequest = timeout
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:55:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 53 |     configuration.timeoutIntervalForResource = timeout
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:56:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCredentialStorage'
 54 |     configuration.urlCache = nil
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCredentialStorage'
 57 |     self.session = URLSession(
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:57:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |     configuration.httpCookieStorage = nil
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
 59 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:58:77: error: 'nil' requires a contextual type
 56 |     configuration.urlCredentialStorage = nil
 57 |     self.session = URLSession(
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
    |                                                                             `- error: 'nil' requires a contextual type
 59 |   }
 60 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:60:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 58 |       configuration: configuration, delegate: NoRedirects(), delegateQueue: nil)
 59 |   }
 60 |   deinit { session.invalidateAndCancel() }
    |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 61 |   public func route(_ points: [Coordinate], profile: Profile = .car, steps: Bool = false)
 62 |     async throws -> RouteResponse
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:148:21: error: cannot find 'URLRequest' in scope
146 |         token.utf8.allSatisfy({ (33...126).contains($0) })
147 |       else { throw SDKError.invalidInput }
148 |       var request = URLRequest(
    |                     `- error: cannot find 'URLRequest' in scope
149 |         url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeout)
150 |       request.httpMethod = method
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:149:33: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
147 |       else { throw SDKError.invalidInput }
148 |       var request = URLRequest(
149 |         url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: timeout)
    |                                 `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
150 |       request.httpMethod = method
151 |       request.httpBody = body
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:156:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |       if body != nil { request.setValue("application/json", forHTTPHeaderField: "Content-Type") }
155 |       let data: Data
156 |       let response: URLResponse
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |       do { (data, response) = try await session.data(for: request) } catch {
158 |         if Task.isCancelled { throw CancellationError() }
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/OSRMRoute/Client.swift:157:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
155 |       let data: Data
156 |       let response: URLResponse
157 |       do { (data, response) = try await session.data(for: request) } catch {
    |                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
158 |         if Task.isCancelled { throw CancellationError() }
159 |         throw SDKError.transport
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:161:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
159 |         throw SDKError.transport
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
162 |       if (200...299).contains(http.statusCode) {
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:161:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |         throw SDKError.transport
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |       if (200...299).contains(http.statusCode) {
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
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/OSRMRoute/Client.swift:162:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
160 |       }
161 |       guard let http = response as? HTTPURLResponse else { throw SDKError.invalidResponse }
162 |       if (200...299).contains(http.statusCode) {
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |         guard data.count <= 8 * 1024 * 1024 else { throw SDKError.invalidResponse }
164 |         return data
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:166:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 |         return data
165 |       }
166 |       let header = http.value(forHTTPHeaderField: "Retry-After")
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 |       let seconds = header.flatMap(Double.init)
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:168:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       let header = http.value(forHTTPHeaderField: "Retry-After")
167 |       let seconds = header.flatMap(Double.init)
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |         header == nil || (seconds != nil && seconds!.isFinite && (0...30).contains(seconds!))
170 |       else { throw SDKError.http(status: http.statusCode) }
/host/spi-builder-workspace/Sources/OSRMRoute/Client.swift:170:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |       guard method == "GET", [429, 502, 503, 504].contains(http.statusCode), attempt < retries,
169 |         header == nil || (seconds != nil && seconds!.isFinite && (0...30).contains(seconds!))
170 |       else { throw SDKError.http(status: http.statusCode) }
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
171 |       let delay = seconds ?? (0.25 * pow(2, Double(attempt)))
172 |       try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
[5/5] Compiling OSRMRoute MobileAccess.swift
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:18:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |   private let proof: ProofProvider
 17 |   private let endpoint: URL
 18 |   private let session: URLSession
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |   private var cached: (String, Date)?
 20 |   private var pending: Task<String, Error>?
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/OSRMRoute/MobileAccess.swift:26:68: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
    |                                                                    `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |        proof: @escaping ProofProvider) throws {
 28 |     guard UUID(uuidString: appID) != nil, (16...256).contains(keyID.count),
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:79:50: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | }
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                                  `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:81:93: error: cannot find type 'URLRequest' in scope
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 83 | }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:49: error: cannot find type 'URLRequest' in scope
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                 `- error: cannot find type 'URLRequest' in scope
 83 | }
 84 |
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:80:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:80:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 | public enum MobileAccessError: Error { case unavailable, unsupportedDevice }
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
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/OSRMRoute/MobileAccess.swift:81:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 | private final class MobileNoRedirects: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
    |                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
 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/OSRMRoute/MobileAccess.swift:24:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 22 |   public init(appID: String, keyID: String, endpoint: URL = URL(string: "https://osrmroute.com")!,
 23 |               proof: @escaping ProofProvider) throws {
 24 |     try self.init(appID: appID, keyID: keyID, endpoint: endpoint, configuration: .ephemeral, proof: proof)
    |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 25 |   }
 26 |   init(appID: String, keyID: String, endpoint: URL, configuration: URLSessionConfiguration,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:34:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 32 |     else { throw SDKError.invalidInput }
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForRequest'
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:35:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 33 |     self.appID = appID; self.keyID = keyID; self.endpoint = endpoint; self.proof = proof
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'timeoutIntervalForResource'
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:19: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                   `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:36:49: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 34 |     configuration.timeoutIntervalForRequest = 15
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
    |                                                 `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'httpCookieStorage'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:37:107: error: 'nil' requires a contextual type
 35 |     configuration.timeoutIntervalForResource = 30
 36 |     configuration.urlCache = nil; configuration.httpCookieStorage = nil
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
    |                                                                                                           `- error: 'nil' requires a contextual type
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:39:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 37 |     self.session = URLSession(configuration: configuration, delegate: MobileNoRedirects(), delegateQueue: nil)
 38 |   }
 39 |   deinit { session.invalidateAndCancel() }
    |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 40 |
 41 |   public func token() async throws -> String {
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:51:19: error: cannot find 'URLRequest' in scope
 49 |   public func invalidate() { cached = nil }
 50 |   private func post(_ operation: String, _ body: [String: String]) async throws -> [String: Any] {
 51 |     var request = URLRequest(url: endpoint.appendingPathComponent("api/mobile/\(operation)"))
    |                   `- error: cannot find 'URLRequest' in scope
 52 |     request.httpMethod = "POST"; request.setValue("application/json", forHTTPHeaderField: "Content-Type")
 53 |     request.httpBody = try JSONSerialization.data(withJSONObject: body)
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:54:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 52 |     request.httpMethod = "POST"; request.setValue("application/json", forHTTPHeaderField: "Content-Type")
 53 |     request.httpBody = try JSONSerialization.data(withJSONObject: body)
 54 |     let (data, response) = try await session.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 55 |     guard let http = response as? HTTPURLResponse, http.statusCode == 200,
 56 |       data.count <= 32768,
/host/spi-builder-workspace/Sources/OSRMRoute/MobileAccess.swift:82:91: error: 'nil' requires a contextual type
 80 |   func urlSession(_ session: URLSession, task: URLSessionTask,
 81 |                   willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest,
 82 |                   completionHandler: @escaping (URLRequest?) -> Void) { completionHandler(nil) }
    |                                                                                           `- error: 'nil' requires a contextual type
 83 | }
 84 |
BUILD FAILURE 6.1 wasm