The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OktaClient, reference 2.1.4 (e75b06), with Swift 6.2 for Wasm on 11 Dec 2025 00:36:13 UTC.

Build Command

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

Build Log

 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |
 84 |     /// Invoked when a request returns a successful response.
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/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
 90 |
 91 | extension APIClientDelegate {
 92 |     public func api(client: any APIClient, willSend request: inout URLRequest) {}
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 93 |     public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
 91 | extension APIClientDelegate {
 92 |     public func api(client: any APIClient, willSend request: inout URLRequest) {}
 93 |     public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
    |                                                             `- error: cannot find type 'URLRequest' in scope
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
 95 |     public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
 92 |     public func api(client: any APIClient, willSend request: inout URLRequest) {}
 93 |     public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
    |                                                             `- error: cannot find type 'URLRequest' in scope
 95 |     public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
 96 |     public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:92: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     public func api(client: any APIClient, willSend request: inout URLRequest) {}
 93 |     public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
    |                                                                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
 96 |     public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
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/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
 93 |     public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
 95 |     public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
    |                                                                `- error: cannot find type 'URLRequest' in scope
 96 |     public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
 97 |         return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
 94 |     public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
 95 |     public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
 96 |     public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 97 |         return .default
 98 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:115:30: error: cannot find type 'URLRequest' in scope
113 |         let type: APIRetry
114 |         let requestId: String?
115 |         let originalRequest: URLRequest
    |                              `- error: cannot find type 'URLRequest' in scope
116 |         let retryCount: Int
117 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:158:41: error: cannot find type 'URLRequest' in scope
156 |     }
157 |
158 |     public func willSend(request: inout URLRequest) {}
    |                                         `- error: cannot find type 'URLRequest' in scope
159 |
160 |     public func didSend(request: URLRequest, received error: APIClientError) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:160:34: error: cannot find type 'URLRequest' in scope
158 |     public func willSend(request: inout URLRequest) {}
159 |
160 |     public func didSend(request: URLRequest, received error: APIClientError) {}
    |                                  `- error: cannot find type 'URLRequest' in scope
161 |
162 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:162:34: error: cannot find type 'URLRequest' in scope
160 |     public func didSend(request: URLRequest, received error: APIClientError) {}
161 |
162 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {}
    |                                  `- error: cannot find type 'URLRequest' in scope
163 |
164 |     public func didSend<T>(request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:162:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     public func didSend(request: URLRequest, received error: APIClientError) {}
161 |
162 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {}
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func didSend<T>(request: URLRequest, received response: APIResponse<T>) {}
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/AuthFoundation/Network/APIClient.swift:164:37: error: cannot find type 'URLRequest' in scope
162 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {}
163 |
164 |     public func didSend<T>(request: URLRequest, received response: APIResponse<T>) {}
    |                                     `- error: cannot find type 'URLRequest' in scope
165 |
166 |     public func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry { .default }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:166:38: error: cannot find type 'URLRequest' in scope
164 |     public func didSend<T>(request: URLRequest, received response: APIResponse<T>) {}
165 |
166 |     public func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry { .default }
    |                                      `- error: cannot find type 'URLRequest' in scope
167 |
168 |     // swiftlint:disable closure_body_length
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:169:36: error: cannot find type 'URLRequest' in scope
167 |
168 |     // swiftlint:disable closure_body_length
169 |     public func send<T>(_ request: URLRequest,
    |                                    `- error: cannot find type 'URLRequest' in scope
170 |                         parsing context: (any APIParsingContext)? = nil) async throws -> APIResponse<T>
171 |     {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:253:69: error: cannot find type 'URLRequest' in scope
251 |     // swiftlint:enable closure_body_length
252 |
253 |     private func addRetryHeadersToRequest(state: APIRetry.State) -> URLRequest {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
254 |         var request = state.originalRequest
255 |         if let requestId = state.requestId {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:287:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
285 |     }
286 |
287 |     private func validate<T>(data: Data, response: HTTPURLResponse, rateInfo: APIRateLimit?, parsing context: (any APIParsingContext)? = nil) throws -> APIResponse<T> {
    |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
288 |         var requestId: String?
289 |         if let requestIdHeader = requestIdHeader {
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/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
 23 |
 24 |     /// No response received from the server.
 25 |     case missingResponse(request: URLRequest? = nil)
    |                                   `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
 40 |
 41 |     /// The HTTP request cache policy to use.
 42 |     var cachePolicy: URLRequest.CachePolicy { get }
    |                      `- error: cannot find type 'URLRequest' in scope
 43 |
 44 |     /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
 55 |     /// - Parameter client: The ``APIClient`` the request is being sent through.
 56 |     /// - Returns: URLRequest instance for this API request.
 57 |     func request(for client: any APIClient) throws -> URLRequest
    |                                                       `- error: cannot find type 'URLRequest' in scope
 58 |
 59 |     /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:134:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |     /// - Parameter response: The response returned from the server.
133 |     /// - Returns: The result that should be inferred from this response.
134 |     func resultType(from response: HTTPURLResponse) -> APIResponseResult
    |                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 |     /// Generates an error response from an ``APIRequest`` result when an HTTP error occurs.
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/AuthFoundation/Network/APIRequest.swift:159:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |
158 |     @_documentation(visibility: private)
159 |     public func resultType(from response: HTTPURLResponse) -> APIResponseResult {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         APIResponseResult(statusCode: response.statusCode)
161 |     }
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/AuthFoundation/Network/APIRequest.swift:190:29: error: cannot find type 'URLRequest' in scope
188 |     public var acceptsType: APIContentType? { nil }
189 |     public var contentType: APIContentType? { nil }
190 |     public var cachePolicy: URLRequest.CachePolicy { .reloadIgnoringLocalAndRemoteCacheData }
    |                             `- error: cannot find type 'URLRequest' in scope
191 |     public var timeoutInterval: TimeInterval { 60 }
192 |     public var authorization: (any APIAuthorization)? { nil }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:195:62: error: cannot find type 'URLRequest' in scope
193 |
194 |     public func body() throws -> Data? { nil }
195 |     public func request(for client: any APIClient) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
196 |         guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true)
197 |         else {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/Internal/FormDataExtensions.swift:19:11: error: cannot find type 'URLRequest' in scope
17 | #endif
18 |
19 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
20 |     static func oktaURLFormEncodedString(for params: [String: any APIRequestArgument]) -> String? {
21 |         func escape(_ str: String) -> String {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/URLSessionProtocol.swift:22:28: error: cannot find type 'URLRequest' in scope
20 | @_documentation(visibility: internal)
21 | public protocol URLSessionProtocol: Sendable {
22 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
23 |     var configuration: URLSessionConfiguration { get }
24 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/URLSessionProtocol.swift:22:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | @_documentation(visibility: internal)
21 | public protocol URLSessionProtocol: Sendable {
22 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     var configuration: URLSessionConfiguration { get }
24 | }
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/AuthFoundation/Network/URLSessionProtocol.swift:23:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | public protocol URLSessionProtocol: Sendable {
22 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
23 |     var configuration: URLSessionConfiguration { get }
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AuthFoundation/Network/URLSessionProtocol.swift:27:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
25 |
26 | @_documentation(visibility: internal)
27 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 | #if canImport(FoundationNetworking)
29 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:301:23: error: cannot find type 'DispatchQueue' in scope
299 |
300 |     nonisolated public let delegateCollection = DelegateCollection<any OAuth2ClientDelegate>()
301 |     let refreshQueue: DispatchQueue
    |                       `- error: cannot find type 'DispatchQueue' in scope
302 |
303 |     let openIdConfigurationAction = CoalescedResult<OpenIdConfiguration>(taskName: "OpenIdConfiguration")
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 |     @_documentation(visibility: private)
458 |     public func willSend(request: inout URLRequest) {
    |                                         `- error: cannot find type 'URLRequest' in scope
459 |         delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 |     @_documentation(visibility: private)
463 |     public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
    |                                  `- error: cannot find type 'URLRequest' in scope
464 |         delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 |     @_documentation(visibility: private)
468 |     public func shouldRetry(request: URLRequest) -> APIRetry {
    |                                      `- error: cannot find type 'URLRequest' in scope
469 |         return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 |     @_documentation(visibility: private)
473 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {
    |                                  `- error: cannot find type 'URLRequest' in scope
474 |         delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 |     @_documentation(visibility: private)
473 |     public func didSend(request: URLRequest, received response: HTTPURLResponse) {
    |                                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 |         delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 |     }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 |     @_documentation(visibility: private)
478 |     public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
    |                                     `- error: cannot find type 'URLRequest' in scope
479 |         delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 |         [ "client_id": clientId ]
35 |     }
36 |     var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
   |                      `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 |     var httpMethod: APIRequestMethod { .get }
27 |     var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
   |                      `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
 73 |     /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
 74 |     /// - Parameter request: Request to decorate with the appropriate authorization header.
 75 |     public func authorize(_ request: inout URLRequest) async {
    |                                            `- error: cannot find type 'URLRequest' in scope
 76 |         _ = try? await refreshIfNeeded()
 77 |         authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 |     /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 |     /// - Parameter request: Request to decorate with the appropriate authorization header.
228 |     public func authorize(request: inout URLRequest) {
    |                                          `- error: cannot find type 'URLRequest' in scope
229 |         request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:405:71: error: cannot find type 'DispatchSourceTimer' in scope
403 |
404 |     nonisolated(unsafe) private var _automaticRefresh: Bool = false
405 |     nonisolated(unsafe) private(set) var _automaticRefreshTimer: (any DispatchSourceTimer)?
    |                                                                       `- error: cannot find type 'DispatchSourceTimer' in scope
406 |     nonisolated(unsafe) private var _automaticRefreshTask: Task<Void, Never>?
407 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Internal/DefaultCredentialDataSource.swift:16:25: error: cannot find 'DispatchQueue' in scope
14 |
15 | final class DefaultCredentialDataSource: CredentialDataSource {
16 |     private let queue = DispatchQueue(label: "com.okta.credentialDataSource.credentials",
   |                         `- error: cannot find 'DispatchQueue' in scope
17 |                                       attributes: .concurrent)
18 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Internal/DefaultCredentialDataSource.swift:17:52: error: cannot infer contextual base in reference to member 'concurrent'
15 | final class DefaultCredentialDataSource: CredentialDataSource {
16 |     private let queue = DispatchQueue(label: "com.okta.credentialDataSource.credentials",
17 |                                       attributes: .concurrent)
   |                                                    `- error: cannot infer contextual base in reference to member 'concurrent'
18 |
19 |     private var credentials: [Credential] = []
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
macro expansion @TaskLocal:1:50: error: cannot find type 'NotificationCenter' in scope
`- /host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:83: note: expanded code originates here
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |     `- note: in expansion of macro 'TaskLocal' on static property 'notificationCenter' here
    +--- macro expansion @TaskLocal ------------------------------------
    |1 | public static let $notificationCenter: TaskLocal<NotificationCenter> = TaskLocal(wrappedValue: .default)
    |  |                                                  `- error: cannot find type 'NotificationCenter' in scope
    +-------------------------------------------------------------------
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:145:17: error: cannot find 'DispatchGroup' in scope
143 | @_documentation(visibility: private)
144 | public func withIsolationSyncThrowing<T: Sendable>(priority: TaskPriority? = nil, @_inheritActorContext _ block: @Sendable @escaping () async throws -> T) throws -> T {
145 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
146 |     nonisolated(unsafe) var result: Result<T, any Error>?
147 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:184:17: error: cannot find 'DispatchGroup' in scope
182 |                                            @_inheritActorContext _ block: @Sendable @escaping () async -> T?) -> T?
183 | {
184 |     let group = DispatchGroup()
    |                 `- error: cannot find 'DispatchGroup' in scope
185 |     nonisolated(unsafe) var result: T?
186 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[127/141] Compiling AuthFoundation DelegateCollection.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[128/141] Compiling AuthFoundation Dictionary+Extensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[129/141] Compiling AuthFoundation Expires.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[130/141] Compiling AuthFoundation JSONCoding.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[131/141] Compiling AuthFoundation JSONDecodable.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[132/141] Compiling AuthFoundation JSONValue.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[133/141] Compiling AuthFoundation Lock.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[134/141] Compiling AuthFoundation LockedValue.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[135/141] Compiling AuthFoundation String+Extensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[136/141] Compiling AuthFoundation TimeCoordinator.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[137/141] Compiling AuthFoundation URL+Extensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[138/141] Compiling AuthFoundation URL+InternalExtensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[139/141] Compiling AuthFoundation WeakCollection.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[140/141] Compiling AuthFoundation Version+AuthFoundation.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
[141/141] Compiling AuthFoundation resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:24:8: error: Unsupported platform
 22 | import Bionic
 23 | #else
 24 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 25 | #endif
 26 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:41:12: error: Unsupported platform
 39 |     fileprivate typealias LockType = pthread_mutex_t
 40 |     #else
 41 |     #error("Unsupported platform")
    |            `- error: Unsupported platform
 42 |     #endif
 43 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:53:16: error: Unsupported platform
 51 |         precondition(status == 0, "pthread_mutex_init failed")
 52 |         #else
 53 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 54 |         #endif
 55 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:77:16: error: Unsupported platform
 75 |         precondition(status == 0, "pthread_mutex_lock failed")
 76 |         #else
 77 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 78 |         #endif
 79 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:87:16: error: Unsupported platform
 85 |         return pthread_mutex_trylock(_lock) == 0
 86 |         #else
 87 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 88 |         #endif
 89 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:98:16: error: Unsupported platform
 96 |         precondition(status == 0, "pthread_mutex_unlock failed")
 97 |         #else
 98 |         #error("Unsupported platform")
    |                `- error: Unsupported platform
 99 |         #endif
100 |     }
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/Lock.swift:44:65: error: cannot find type 'LockType' in scope
 42 |     #endif
 43 |
 44 |     nonisolated(unsafe) private let _lock: UnsafeMutablePointer<LockType> = {
    |                                                                 `- error: cannot find type 'LockType' in scope
 45 |         let result = UnsafeMutablePointer<LockType>.allocate(capacity: 1)
 46 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:54: error: cannot find type 'URLRequest' in scope
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:97:85: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
    |                                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
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/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
 74 | public protocol APIClientDelegate: AnyObject, Sendable {
 75 |     /// Invoked immediately prior to a URLRequest being converted to a DataTask.
 76 |     func api(client: any APIClient, willSend request: inout URLRequest)
    |                                                             `- error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
 77 |
 78 |     /// Invoked when a request fails.
 79 |     func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
 80 |
 81 |     /// Invoked when a request returns a successful response.
 82 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
    |                                                      `- error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
 83 |
 84 |     /// Invoked when a request returns a successful response.
 85 |     func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
    |                                                         `- error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Provides the APIRetry configurations from the delegate in responds to a retry request.
 88 |     func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
    |                                                          `- error: cannot find type 'URLRequest' in scope
 89 | }
 90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/AsyncUtilities.swift:24:54: error: cannot find type 'NotificationCenter' in scope
 22 |
 23 |     /// The NotificationCenter instance that should be used when posting or observing notifications.
 24 |     @TaskLocal public static var notificationCenter: NotificationCenter = .default
    |                                                      `- error: cannot find type 'NotificationCenter' in scope
 25 |
 26 |     /// The factor used to convert a time interval to nanoseconds.
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:69:75: error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 67 |     init() {
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
    |                                                                           `- error: cannot infer contextual base in reference to member 'oauth2ClientCreated'
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:70:73: error: 'nil' requires a contextual type
 68 |         self._offset = 0
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
    |                                                                         `- error: 'nil' requires a contextual type
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:71:72: error: 'nil' requires a contextual type
 69 |         self.observer = TaskData.notificationCenter.addObserver(forName: .oauth2ClientCreated,
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
    |                                                                        `- error: 'nil' requires a contextual type
 72 |                                                                 using: { [weak self] notification in
 73 |             guard let self = self,
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:72:86: error: cannot infer type of closure parameter 'notification' without a type annotation
 70 |                                                                 object: nil,
 71 |                                                                 queue: nil,
 72 |                                                                 using: { [weak self] notification in
    |                                                                                      `- error: cannot infer type of closure parameter 'notification' without a type annotation
 73 |             guard let self = self,
 74 |                   let client = notification.object as? OAuth2Client
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:98:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 96 |
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
    |                                       `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
100 |               let date = httpDateFormatter.date(from: dateString)
/host/spi-builder-workspace/Sources/AuthFoundation/Utilities/TimeCoordinator.swift:99:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 97 |     func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {
 98 |         guard request.cachePolicy == .reloadIgnoringLocalAndRemoteCacheData,
 99 |               let dateString = response.allHeaderFields["Date"] as? String,
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
100 |               let date = httpDateFormatter.date(from: dateString)
101 |         else {
BUILD FAILURE 6.2 wasm