The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TripKit, reference main (4d924f), with Swift 6.3 for Wasm on 4 Oct 2026 14:35:02 UTC.

Build Command

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

Build Log

550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[20/60] Compiling TripKitAPI Codable+Helpers.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:237:14: error: cannot find type 'DispatchTimeInterval' in scope
235 |     url: URL,
236 |     parameters: [String: Any]? = nil,
237 |     timeout: DispatchTimeInterval
    |              `- error: cannot find type 'DispatchTimeInterval' in scope
238 |   ) throws -> Data {
239 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:521:18: error: cannot find type 'URLRequest' in scope
519 |
520 |   enum Info {
521 |     case request(URLRequest)
    |                  `- error: cannot find type 'URLRequest' in scope
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
523 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:19: error: cannot find type 'URLRequest' in scope
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                   `- error: cannot find type 'URLRequest' in scope
523 |   }
524 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |   }
524 |
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/TripKitAPI/TKServer.swift:562:38: error: cannot find type 'URLRequest' in scope
560 |   }
561 |
562 |   private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                                      `- error: cannot find type 'URLRequest' in scope
563 |     let uuid = UUID()
564 |     info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:593:138: error: cannot find type 'URLRequest' in scope
591 | extension TKServer {
592 |
593 |   private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
594 |
595 |     switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:616:124: error: cannot find type 'URLRequest' in scope
614 |   }
615 |
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                            `- error: cannot find type 'URLRequest' in scope
617 |
618 |     var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:240:21: error: cannot find 'DispatchSemaphore' in scope
238 |   ) throws -> Data {
239 |
240 |     let semaphore = DispatchSemaphore(value: 0)
    |                     `- error: cannot find 'DispatchSemaphore' in scope
241 |     var dataResult: Result<Data, Error>? = nil
242 |     hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:246:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
244 |       semaphore.signal()
245 |     }
246 |     _ = semaphore.wait(timeout: .now() + .seconds(10))
    |                                  `- error: cannot call value of non-function type 'ContinuousClock.Instant'
247 |     let data = try dataResult.orThrow(ServerError.noData).get()
248 |     guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:534:9: error: cannot find 'DispatchQueue' in scope
532 |     func callback(_ response: Response<Data?>) {
533 |       if callbackOnMain {
534 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
535 |           completion(response)
536 |         }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:542:18: error: cannot find type 'URLRequest' in scope
540 |     }
541 |
542 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
543 |     do {
544 |       request = try self.request(path: path, baseURL: self.baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |             `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
550 |
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |     `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[21/60] Compiling TripKitAPI Date+Helpers.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:237:14: error: cannot find type 'DispatchTimeInterval' in scope
235 |     url: URL,
236 |     parameters: [String: Any]? = nil,
237 |     timeout: DispatchTimeInterval
    |              `- error: cannot find type 'DispatchTimeInterval' in scope
238 |   ) throws -> Data {
239 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:521:18: error: cannot find type 'URLRequest' in scope
519 |
520 |   enum Info {
521 |     case request(URLRequest)
    |                  `- error: cannot find type 'URLRequest' in scope
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
523 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:19: error: cannot find type 'URLRequest' in scope
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                   `- error: cannot find type 'URLRequest' in scope
523 |   }
524 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |   }
524 |
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/TripKitAPI/TKServer.swift:562:38: error: cannot find type 'URLRequest' in scope
560 |   }
561 |
562 |   private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                                      `- error: cannot find type 'URLRequest' in scope
563 |     let uuid = UUID()
564 |     info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:593:138: error: cannot find type 'URLRequest' in scope
591 | extension TKServer {
592 |
593 |   private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
594 |
595 |     switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:616:124: error: cannot find type 'URLRequest' in scope
614 |   }
615 |
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                            `- error: cannot find type 'URLRequest' in scope
617 |
618 |     var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:240:21: error: cannot find 'DispatchSemaphore' in scope
238 |   ) throws -> Data {
239 |
240 |     let semaphore = DispatchSemaphore(value: 0)
    |                     `- error: cannot find 'DispatchSemaphore' in scope
241 |     var dataResult: Result<Data, Error>? = nil
242 |     hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:246:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
244 |       semaphore.signal()
245 |     }
246 |     _ = semaphore.wait(timeout: .now() + .seconds(10))
    |                                  `- error: cannot call value of non-function type 'ContinuousClock.Instant'
247 |     let data = try dataResult.orThrow(ServerError.noData).get()
248 |     guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:534:9: error: cannot find 'DispatchQueue' in scope
532 |     func callback(_ response: Response<Data?>) {
533 |       if callbackOnMain {
534 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
535 |           completion(response)
536 |         }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:542:18: error: cannot find type 'URLRequest' in scope
540 |     }
541 |
542 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
543 |     do {
544 |       request = try self.request(path: path, baseURL: self.baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |             `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
550 |
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |     `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[22/60] Compiling TripKitAPI NSError+customError.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:237:14: error: cannot find type 'DispatchTimeInterval' in scope
235 |     url: URL,
236 |     parameters: [String: Any]? = nil,
237 |     timeout: DispatchTimeInterval
    |              `- error: cannot find type 'DispatchTimeInterval' in scope
238 |   ) throws -> Data {
239 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:521:18: error: cannot find type 'URLRequest' in scope
519 |
520 |   enum Info {
521 |     case request(URLRequest)
    |                  `- error: cannot find type 'URLRequest' in scope
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
523 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:19: error: cannot find type 'URLRequest' in scope
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                   `- error: cannot find type 'URLRequest' in scope
523 |   }
524 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |   }
524 |
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/TripKitAPI/TKServer.swift:562:38: error: cannot find type 'URLRequest' in scope
560 |   }
561 |
562 |   private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                                      `- error: cannot find type 'URLRequest' in scope
563 |     let uuid = UUID()
564 |     info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:593:138: error: cannot find type 'URLRequest' in scope
591 | extension TKServer {
592 |
593 |   private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
594 |
595 |     switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:616:124: error: cannot find type 'URLRequest' in scope
614 |   }
615 |
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                            `- error: cannot find type 'URLRequest' in scope
617 |
618 |     var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:240:21: error: cannot find 'DispatchSemaphore' in scope
238 |   ) throws -> Data {
239 |
240 |     let semaphore = DispatchSemaphore(value: 0)
    |                     `- error: cannot find 'DispatchSemaphore' in scope
241 |     var dataResult: Result<Data, Error>? = nil
242 |     hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:246:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
244 |       semaphore.signal()
245 |     }
246 |     _ = semaphore.wait(timeout: .now() + .seconds(10))
    |                                  `- error: cannot call value of non-function type 'ContinuousClock.Instant'
247 |     let data = try dataResult.orThrow(ServerError.noData).get()
248 |     guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:534:9: error: cannot find 'DispatchQueue' in scope
532 |     func callback(_ response: Response<Data?>) {
533 |       if callbackOnMain {
534 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
535 |           completion(response)
536 |         }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:542:18: error: cannot find type 'URLRequest' in scope
540 |     }
541 |
542 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
543 |     do {
544 |       request = try self.request(path: path, baseURL: self.baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |             `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
550 |
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |     `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[23/60] Compiling TripKitAPI UserDefaults+SharedDefaults.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:237:14: error: cannot find type 'DispatchTimeInterval' in scope
235 |     url: URL,
236 |     parameters: [String: Any]? = nil,
237 |     timeout: DispatchTimeInterval
    |              `- error: cannot find type 'DispatchTimeInterval' in scope
238 |   ) throws -> Data {
239 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:521:18: error: cannot find type 'URLRequest' in scope
519 |
520 |   enum Info {
521 |     case request(URLRequest)
    |                  `- error: cannot find type 'URLRequest' in scope
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
523 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:19: error: cannot find type 'URLRequest' in scope
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                   `- error: cannot find type 'URLRequest' in scope
523 |   }
524 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |   }
524 |
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/TripKitAPI/TKServer.swift:562:38: error: cannot find type 'URLRequest' in scope
560 |   }
561 |
562 |   private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                                      `- error: cannot find type 'URLRequest' in scope
563 |     let uuid = UUID()
564 |     info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:593:138: error: cannot find type 'URLRequest' in scope
591 | extension TKServer {
592 |
593 |   private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
594 |
595 |     switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:616:124: error: cannot find type 'URLRequest' in scope
614 |   }
615 |
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                            `- error: cannot find type 'URLRequest' in scope
617 |
618 |     var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:240:21: error: cannot find 'DispatchSemaphore' in scope
238 |   ) throws -> Data {
239 |
240 |     let semaphore = DispatchSemaphore(value: 0)
    |                     `- error: cannot find 'DispatchSemaphore' in scope
241 |     var dataResult: Result<Data, Error>? = nil
242 |     hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:246:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
244 |       semaphore.signal()
245 |     }
246 |     _ = semaphore.wait(timeout: .now() + .seconds(10))
    |                                  `- error: cannot call value of non-function type 'ContinuousClock.Instant'
247 |     let data = try dataResult.orThrow(ServerError.noData).get()
248 |     guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:534:9: error: cannot find 'DispatchQueue' in scope
532 |     func callback(_ response: Response<Data?>) {
533 |       if callbackOnMain {
534 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
535 |           completion(response)
536 |         }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:542:18: error: cannot find type 'URLRequest' in scope
540 |     }
541 |
542 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
543 |     do {
544 |       request = try self.request(path: path, baseURL: self.baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |             `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
550 |
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |     `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[24/60] Compiling TripKitAPI AlertAPIModels.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:237:14: error: cannot find type 'DispatchTimeInterval' in scope
235 |     url: URL,
236 |     parameters: [String: Any]? = nil,
237 |     timeout: DispatchTimeInterval
    |              `- error: cannot find type 'DispatchTimeInterval' in scope
238 |   ) throws -> Data {
239 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:521:18: error: cannot find type 'URLRequest' in scope
519 |
520 |   enum Info {
521 |     case request(URLRequest)
    |                  `- error: cannot find type 'URLRequest' in scope
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
523 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:19: error: cannot find type 'URLRequest' in scope
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                   `- error: cannot find type 'URLRequest' in scope
523 |   }
524 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:522:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
520 |   enum Info {
521 |     case request(URLRequest)
522 |     case response(URLRequest, URLResponse?, Result<Data?, Error>)
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
523 |   }
524 |
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/TripKitAPI/TKServer.swift:562:38: error: cannot find type 'URLRequest' in scope
560 |   }
561 |
562 |   private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                                      `- error: cannot find type 'URLRequest' in scope
563 |     let uuid = UUID()
564 |     info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:593:138: error: cannot find type 'URLRequest' in scope
591 | extension TKServer {
592 |
593 |   private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                                          `- error: cannot find type 'URLRequest' in scope
594 |
595 |     switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:616:124: error: cannot find type 'URLRequest' in scope
614 |   }
615 |
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
    |                                                                                                                            `- error: cannot find type 'URLRequest' in scope
617 |
618 |     var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:240:21: error: cannot find 'DispatchSemaphore' in scope
238 |   ) throws -> Data {
239 |
240 |     let semaphore = DispatchSemaphore(value: 0)
    |                     `- error: cannot find 'DispatchSemaphore' in scope
241 |     var dataResult: Result<Data, Error>? = nil
242 |     hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:246:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
244 |       semaphore.signal()
245 |     }
246 |     _ = semaphore.wait(timeout: .now() + .seconds(10))
    |                                  `- error: cannot call value of non-function type 'ContinuousClock.Instant'
247 |     let data = try dataResult.orThrow(ServerError.noData).get()
248 |     guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:534:9: error: cannot find 'DispatchQueue' in scope
532 |     func callback(_ response: Response<Data?>) {
533 |       if callbackOnMain {
534 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
535 |           completion(response)
536 |         }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:542:18: error: cannot find type 'URLRequest' in scope
540 |     }
541 |
542 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
543 |     do {
544 |       request = try self.request(path: path, baseURL: self.baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |             `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
550 |
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:549:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
547 |     }
548 |
549 |     Self.hit(request, info: info, completion: callback)
    |     `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
550 |
551 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
551 |   }
552 |
553 |   private func hit(_ url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
    |                `- note: 'hit(_:method:parameters:headers:info:completion:)' declared here
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |               `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:556:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
554 |     do {
555 |       let request = try request(for: url, method: method, parameters: parameters, headers: headers)
556 |       Self.hit(request, info: info, completion: completion)
    |       `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
557 |     } catch {
558 |       completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:566:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
564 |     info(uuid, .request(request))
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
    |                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
567 |       let status = (response as? HTTPURLResponse)?.statusCode
568 |       let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:567:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
565 |
566 |     URLSession.shared.dataTask(with: request) { data, response, error in
567 |       let status = (response as? HTTPURLResponse)?.statusCode
    |                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
568 |       let result: Result<Data?, Error>
569 |       if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:618:18: error: cannot find type 'URLRequest' in scope
616 |   private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
617 |
618 |     var request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
619 |
620 |     if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:628:17: error: cannot find 'URLRequest' in scope
626 |       components.queryItems = queryItems
627 |       let merged = try components.url.orThrow(RequestError.invalidURL)
628 |       request = URLRequest(url: merged)
    |                 `- error: cannot find 'URLRequest' in scope
629 |     } else {
630 |       request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:630:17: error: cannot find 'URLRequest' in scope
628 |       request = URLRequest(url: merged)
629 |     } else {
630 |       request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
631 |     }
632 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:36: error: cannot infer contextual base in reference to member 'GET'
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                    `- error: cannot infer contextual base in reference to member 'GET'
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:686:69: error: 'nil' requires a contextual type
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
    |                                                                     `- error: 'nil' requires a contextual type
687 |   }
688 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/AlertAPIModels.swift:85:23: error: cannot find type 'TKColor' in scope
 83 | #if !os(Linux)
 84 |     /// This color applies to an individual service.
 85 |     public var color: TKColor? { return modeInfo.color }
    |                       `- error: cannot find type 'TKColor' in scope
 86 | #endif
 87 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[25/60] Compiling TripKitAPI TKAPIConfig.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[26/60] Compiling TripKitAPI TKConfig.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[27/60] Compiling TripKitAPI TKCrossPlatform.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[28/60] Compiling TripKitAPI TKLog.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[29/60] Compiling TripKitAPI TKRegionManager.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[30/60] Compiling TripKitAPI TKRouter.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[31/60] Compiling TripKitAPI TKRoutingServer.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[32/60] Compiling TripKitAPI TKServer+Regions.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:21:121: error: argument passed to call that takes no arguments
19 | #else
20 |     // Yes, main!
21 |     if let path = Bundle.main.url(forResource: "Config", withExtension: "plist"), let config = NSDictionary(contentsOf: path) as? [String: AnyHashable] {
   |                                                                                                                         `- error: argument passed to call that takes no arguments
22 |       configuration = config
23 |     } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:239:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | extension TKLog {
238 |
239 |   public typealias ServerResult = Result<(URLResponse, Data?), Error>
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |   /// The URL request along with a UUID to identify each request sent
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/TripKitAPI/TKLog.swift:243:25: error: cannot find type 'URLRequest' in scope
241 |   /// The URL request along with a UUID to identify each request sent
242 |   public struct ServerRequest: Hashable {
243 |     public let request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
244 |     public let id: String
245 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:287:56: error: cannot find type 'URLRequest' in scope
285 |   ///
286 |   /// When request request is completed make sure to call ``log(_:response:data:orError:for:uuid:)`` afterwards.
287 |   public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
288 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
289 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:120: error: cannot find type 'URLRequest' in scope
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                                                                                        `- error: cannot find type 'URLRequest' in scope
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:299:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
297 |   ///
298 |   /// Should always follow a call to ``log(_:request:uuid:)`` with a matching UUID.
299 |   public class func log(_ identifier: String, response: URLResponse?, data: Data?, orError error: Error?, for request: URLRequest, uuid: UUID) {
    |                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |     #if BETA || DEBUG || targetEnvironment(macCatalyst)
301 |     guard !loggers.isEmpty else { return }
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/TripKitAPI/TKLog.swift:347:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |   }
346 |
347 |   public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
348 |
349 |     let urlRequest = request.request
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/TripKitAPI/TKLog.swift:264:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
262 |       switch (lhs.result, rhs.result) {
263 |       case (.success(let left), .success(let right)):
264 |         return left == right
    |                     `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
265 |       case (.failure(let left), .failure(let right)):
266 |         return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:276:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
274 |       switch result {
275 |       case let .success((response, data)):
276 |         hasher.combine(response)
    |                `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
277 |         hasher.combine(data)
278 |       case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:351:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |     let urlRequest = request.request
350 |     guard
351 |       let httpResponse = response as? HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
352 |       let method = urlRequest.httpMethod,
353 |       let url = urlRequest.url else { return "[bad request]" }
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/TripKitAPI/TKLog.swift:362:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
360 |     }
361 |
362 |     var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 |     guard detailed else { return message }
364 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:365:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
363 |     guard detailed else { return message }
364 |
365 |     for header in httpResponse.allHeaderFields {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
366 |       message += "\n\(header.key): \(header.value)"
367 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:142:56: error: cannot find type 'TKColor' in scope
140 |   /// - Parameter mode: The mode identifier for which you want the official color
141 |   /// - Returns: The color as defined by the server
142 |   public func color(forModeIdentifier mode: String) -> TKColor? {
    |                                                        `- error: cannot find type 'TKColor' in scope
143 |     return response?.modes?[mode]?.rgbColor.color
144 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:32: error: no exact matches in call to instance method 'post'
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                `- error: no exact matches in call to instance method 'post'
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
FoundationEssentials.NotificationCenter.post:2:13: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject}
  |             `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:13: note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
1 | class NotificationCenter {
2 | public func post<Message>(_ message: Message) where Message : NotificationCenter.AsyncMessage}
  |             `- note: candidate '(_) -> ()' has 2 parameters, but context '(Message) -> ()' has 1
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |                        `- note: incorrect labels for candidate (have: '(name:object:)', expected: '(_:subject:)')
3 |
FoundationEssentials.NotificationCenter.post:2:24: note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
1 | class NotificationCenter {
2 | @MainActor public func post<Message>(_ message: Message) where Message : NotificationCenter.MainActorMessage}
  |                        `- note: candidate '@MainActor (_) -> ()' has 2 parameters, but context '@MainActor (Message) -> ()' has 1
3 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 93 |
 94 |     self.response = response
 95 |     NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
    |                                            `- error: reference to member 'TKRegionManagerUpdatedRegions' cannot be resolved without a contextual type
 96 |
 97 |     if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:47:27: error: cannot find type 'DispatchQueue' in scope
 45 |   public var workers: [Set<String>: TKRouter] = [:]
 46 |   public var finishedWorkers: UInt = 0
 47 |   public var workerQueue: DispatchQueue?
    |                           `- error: cannot find type 'DispatchQueue' in scope
 48 |
 49 |   public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:135:152: error: cannot find type 'URLRequest' in scope
133 | extension TKRouter {
134 |
135 |   public static func urlRequest<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = false, config: TKAPIConfig) throws -> URLRequest {
    |                                                                                                                                                        `- error: cannot find type 'URLRequest' in scope
136 |     let paras = requestParameters(
137 |       request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:685:94: error: cannot find type 'URLRequest' in scope
683 |   }
684 |
685 |   public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
686 |     try request(for: url, method: .GET, parameters: paras, headers: nil)
687 |   }
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:149:5: warning: no calls to throwing functions occur within 'try' expression
147 |
148 |   public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
149 |     try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
    |     `- warning: no calls to throwing functions occur within 'try' expression
150 |   }
151 |
[33/60] Compiling TripKitAPI VehicleAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[34/60] Compiling TripKitAPI TKBookingData.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[35/60] Compiling TripKitAPI TKBookingTypes.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[36/60] Compiling TripKitAPI TKError.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[37/60] Compiling TripKitAPI TKLocalCost.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[38/60] Compiling TripKitAPI TKMapTiles.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[39/60] Compiling TripKitAPI TKMiniInstruction.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:103:23: error: cannot find type 'TKColor' in scope
101 |
102 | #if !os(Linux)
103 |     public var color: TKColor? {
    |                       `- error: cannot find type 'TKColor' in scope
104 |       return rgbColor?.color
105 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
[40/60] Compiling TripKitAPI CLLocationCoordinate2D+EncodePolylineString.swift
[41/60] Compiling TripKitAPI Geometry.swift
[42/60] Compiling TripKitAPI MKPolygon+Union.swift
[43/60] Compiling TripKitAPI Polygon+GeoJSON.swift
[44/60] Compiling TripKitAPI Polygon.swift
[45/60] Compiling TripKitAPI QuickLookable.swift
[46/60] Compiling TripKitAPI DefaultCodable.swift
[47/60] Compiling TripKitAPI RegionsAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[48/60] Compiling TripKitAPI RouteAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[49/60] Compiling TripKitAPI RoutingAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[50/60] Compiling TripKitAPI ServiceAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[51/60] Compiling TripKitAPI StopAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[52/60] Compiling TripKitAPI TKAPI.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[53/60] Compiling TripKitAPI UserAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:40:28: error: cannot find type 'TKColor' in scope
38 |
39 | #if !os(Linux)
40 |     public var routeColor: TKColor? { _routeColor?.color }
   |                            `- error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/RouteAPIModel.swift:43:23: error: cannot find type 'TKColor' in scope
41 |
42 |     /// This color applies to an individual service.
43 |     public var color: TKColor? { return routeColor ?? modeInfo.color }
   |                       `- error: cannot find type 'TKColor' in scope
44 | #endif
45 |
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:52:21: error: cannot find type 'TKColor' in scope
 50 |
 51 | #if !os(Linux)
 52 |   public var color: TKColor? {
    |                     `- error: cannot find type 'TKColor' in scope
 53 |     return rgbColor?.color
 54 |   }
[54/60] Compiling TripKitAPI BaseAPIModels.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[55/60] Compiling TripKitAPI DeparturesAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[56/60] Compiling TripKitAPI EventAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[57/60] Compiling TripKitAPI LatestAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[58/60] Compiling TripKitAPI OpeningHoursAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[59/60] Compiling TripKitAPI PricingTableAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
[60/60] Compiling TripKitAPI RegionInfoAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:125:23: error: cannot find type 'TKColor' in scope
123 |
124 | #if !os(Linux)
125 |     public var color: TKColor {
    |                       `- error: cannot find type 'TKColor' in scope
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
127 |     }
/host/spi-builder-workspace/Sources/TripKitAPI/model/API/BaseAPIModels.swift:126:14: error: cannot find 'TKColor' in scope
124 | #if !os(Linux)
125 |     public var color: TKColor {
126 |       return TKColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
    |              `- error: cannot find 'TKColor' in scope
127 |     }
128 | #endif
BUILD FAILURE 6.3 wasm