The Swift Package Index logo.Swift Package Index

Build Information

Failed to build warplink-ios-sdk, reference v1.2.0 (470bb8), with Swift 6.3 for Wasm on 28 Oct 2026 16:52:43 UTC.

Build Command

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

Build Log

110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[40/59] Compiling WarpLink FingerprintCollector.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[41/59] Compiling WarpLink HTTPTransport.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[42/59] Compiling WarpLink InstallMarkerStore.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[43/59] Compiling WarpLink KeychainStore.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[44/59] Compiling WarpLink LinkDomainNormalizer.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[45/59] Compiling WarpLink Logger.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:14:1: error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 12 |
 13 | /// `URLSessionTask` already declares exactly this method.
 14 | extension URLSessionTask: HTTPTask {}
    | `- error: non-nominal type 'URLSessionTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
 15 |
 16 | /// The handle for work that is already over by the time the caller sees it: an
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:33:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     func send(
 32 |         _ request: URLRequest,
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |     ) -> HTTPTask
 35 |
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/WarpLink/Internal/HTTPTransport.swift:69:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |
 68 |     private let lock = NSLock()
 69 |     private var session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     /// Whether `session` was made here. Only a session this transport made is
 71 |     /// its own to end: a host's session, `.shared` included, is never
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/WarpLink/Internal/HTTPTransport.swift:75:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         self.session = session
 77 |     }
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/WarpLink/Internal/HTTPTransport.swift:75:33: error: value of type '_' expected to be instance of class or class-constrained type
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: value of type '_' expected to be instance of class or class-constrained type
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:75:33: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 73 |     private var ownsSession = false
 74 |
 75 |     init(session: URLSession = .shared) {
    |                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         self.session = session
 77 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:80:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     /// The session the next request goes out on.
 80 |     var currentSession: URLSession {
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         lock.lock(); defer { lock.unlock() }
 82 |         return session
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/WarpLink/Internal/HTTPTransport.swift:87:20: error: cannot find type 'URLRequest' in scope
 85 |     @discardableResult
 86 |     func send(
 87 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:88:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |     func send(
 87 |         _ request: URLRequest,
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
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/WarpLink/Internal/HTTPTransport.swift:90:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 88 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 89 |     ) -> HTTPTask {
 90 |         let task = currentSession.dataTask(with: request, completionHandler: completion)
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 91 |         task.resume()
 92 |         return task
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:106:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
104 |         let old = session
105 |         let owned = ownsSession
106 |         session = URLSession(
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:107:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
105 |         let owned = ownsSession
106 |         session = URLSession(
107 |             configuration: old.configuration,
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:108:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
106 |         session = URLSession(
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
109 |             delegateQueue: old.delegateQueue
110 |         )
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:109:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
107 |             configuration: old.configuration,
108 |             delegate: old.delegate,
109 |             delegateQueue: old.delegateQueue
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegateQueue'
110 |         )
111 |         ownsSession = true
/host/spi-builder-workspace/Sources/WarpLink/Internal/HTTPTransport.swift:115:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
113 |         // Lets the abandoned attempt's cancellation land first, then releases
114 |         // every connection the old session was holding.
115 |         if owned { old.finishTasksAndInvalidate() }
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
116 |     }
117 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[46/59] Compiling WarpLink ReferralEvidenceStore.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[47/59] Compiling WarpLink ReferralHTTP.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[48/59] Compiling WarpLink ReferralInvitation.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[49/59] Compiling WarpLink ReferralMatch.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[50/59] Compiling WarpLink ReferralMessages.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[51/59] Compiling WarpLink ReferralPendingStore.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[52/59] Compiling WarpLink ReferralRedeemer.swift
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:47:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     /// holds no secret.
46 |     static func failure(
47 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
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/WarpLink/Referral/ReferralHTTP.swift:50:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:50:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     ) -> Failure? {
49 |         if let error = error { return .failed(.networkError(error)) }
50 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
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/WarpLink/Referral/ReferralHTTP.swift:53:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 |             return .failed(.serverError(statusCode: 0, message: "No HTTP response"))
52 |         }
53 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 |         case 200: return nil
55 |         case 401: return .failed(.invalidApiKey)
/host/spi-builder-workspace/Sources/WarpLink/Referral/ReferralHTTP.swift:68:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 |             return .failed(
67 |                 .serverError(
68 |                     statusCode: http.statusCode,
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |                     message: errorBody(data).message ?? "Server error"
70 |                 )
[53/59] Compiling WarpLink URL+WarpLink.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[54/59] Compiling WarpLink APIClient+Attribution.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[55/59] Compiling WarpLink APIClient+ResolveLink.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[56/59] Compiling WarpLink APIClient.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[57/59] Compiling WarpLink AttemptWatchdog.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[58/59] Compiling WarpLink AttributionResponse.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
[59/59] Compiling WarpLink BoundedRetry.swift
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:57:10: error: cannot find type 'URLRequest' in scope
 55 |     func makeAttributionRequest(
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
 58 |         var request = URLRequest(url: url)
 59 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:107:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 |
106 |     private static func parseAttributionResponse(
107 |         data: Data?, response: URLResponse?, error: Error?
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/HTTPTransport.swift:32:20: error: cannot find type 'URLRequest' in scope
 30 |     @discardableResult
 31 |     func send(
 32 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 33 |         completion: @escaping (Data?, URLResponse?, Error?) -> Void
 34 |     ) -> HTTPTask
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:46:78: error: argument type '_' expected to be an instance of a class or class-constrained type
 44 |
 45 |         return transport.send(request) { data, response, error in
 46 |             let result = Self.parseAttributionResponse(data: data, response: response, error: error)
    |                                                                              `- error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |             SDKEnvironment.deliver { completion(result) }
 48 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:40:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 38 |                 isReinstall: isReinstall
 39 |             ))
 40 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 41 |             completion(.failure(.decodingError(error)))
 42 |             return CompletedHTTPTask()
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:58:23: error: cannot find 'URLRequest' in scope
 56 |         url: URL, tapId: String?, timeout: TimeInterval?
 57 |     ) -> URLRequest {
 58 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 59 |         request.httpMethod = "POST"
 60 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:110:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     ) -> Result<AttributionResponse, WarpLinkError> {
109 |         if let error = error { return .failure(.networkError(error)) }
110 |         guard let http = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
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/WarpLink/Internal/APIClient+Attribution.swift:113:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
112 |         }
113 |         switch http.statusCode {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 |         case 200:
115 |             return AttributionResponse.decode(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+Attribution.swift:121:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
119 |             return .failure(RateLimit.error(for: http))
120 |         default:
121 |             return .failure(.serverError(statusCode: http.statusCode, message: "Server error"))
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
122 |         }
123 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:103:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     private static func parseResolveLinkResponse(
102 |         data: Data?,
103 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         error: Error?
105 |     ) -> Result<LinkResolutionResponse, WarpLinkError> {
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/WarpLink/Internal/APIClient.swift:47:67: error: cannot find type 'URLRequest' in scope
45 |
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
   |                                                                   `- error: cannot find type 'URLRequest' in scope
48 |         var request = URLRequest(url: url)
49 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:69:39: error: argument type '_' expected to be an instance of a class or class-constrained type
 67 |         return transport.send(request) { data, response, error in
 68 |             let result = Self.parseResolveLinkResponse(
 69 |                 data: data, response: response, error: error
    |                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 70 |             )
 71 |             SDKEnvironment.deliver { completion(result) }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:109:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             return .failure(.networkError(error))
108 |         }
109 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
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/WarpLink/Internal/APIClient+ResolveLink.swift:112:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
111 |         }
112 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |         case 200:
114 |             return decodeResolveLinkBody(data: data)
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient+ResolveLink.swift:131:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |         default:
130 |             return .failure(.serverError(
131 |                 statusCode: httpResponse.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 |                 message: "Unexpected status code"
133 |             ))
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:77:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 |     private static func parseValidation(
77 |         data: Data?, response: URLResponse?, error: Error?
   |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
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/WarpLink/Internal/APIClient.swift:48:23: error: cannot find 'URLRequest' in scope
46 |     /// Create a GET request with standard WarpLink auth headers.
47 |     func makeAuthorizedRequest(url: URL, tapId: String? = nil) -> URLRequest {
48 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
49 |         request.httpMethod = "GET"
50 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:69:69: error: argument type '_' expected to be an instance of a class or class-constrained type
67 |         let request = makeAuthorizedRequest(url: url)
68 |         transport.send(request) { data, response, error in
69 |             let result = Self.parseValidation(data: data, response: response, error: error)
   |                                                                     `- error: argument type '_' expected to be an instance of a class or class-constrained type
70 |             SDKEnvironment.deliver { completion(result) }
71 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:80:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |     ) -> Result<ValidationResult, WarpLinkError> {
79 |         if let error = error { return .failure(.networkError(error)) }
80 |         guard let http = response as? HTTPURLResponse else {
   |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
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/WarpLink/Internal/APIClient.swift:83:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |             return .failure(.serverError(statusCode: 0, message: "No HTTP response"))
82 |         }
83 |         switch http.statusCode {
   |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 |         case 200:
85 |             let json = data.flatMap { (try? JSONSerialization.jsonObject(with: $0)) as? [String: Any] }
/host/spi-builder-workspace/Sources/WarpLink/Internal/APIClient.swift:92:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |             return .success(ValidationResult(valid: false, domains: []))
91 |         default:
92 |             return .failure(.serverError(statusCode: http.statusCode, message: "Unexpected status code"))
   |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 |         }
94 |     }
/host/spi-builder-workspace/Sources/WarpLink/Internal/AttemptWatchdog.swift:9:11: error: cannot find type 'DispatchWorkItem' in scope
  7 |
  8 | /// `DispatchWorkItem` already declares exactly this method.
  9 | extension DispatchWorkItem: ScheduledWork {}
    |           `- error: cannot find type 'DispatchWorkItem' in scope
 10 |
 11 | /// Bounds ONE attempt in wall time, whatever the connection is doing.
BUILD FAILURE 6.3 wasm