Build Information
Failed to build TripKit, reference 5.0.0-rc2 (714285
), with Swift 6.1 for Wasm on 29 May 2025 09:15:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
[2/52] Emitting module TripKitAPI
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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/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/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/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/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/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/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
/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 | }
[3/59] Compiling TripKitAPI TKServer.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[4/59] Compiling TripKitAPI Array+Duplicates.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[5/59] Compiling TripKitAPI Codable+Helpers.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[6/59] Compiling TripKitAPI Date+Helpers.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[7/59] Compiling TripKitAPI NSError+customError.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[8/59] Compiling TripKitAPI UserDefaults+SharedDefaults.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[9/59] Compiling TripKitAPI AlertAPIModels.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:245:14: error: cannot find type 'DispatchTimeInterval' in scope
243 | url: URL,
244 | parameters: [String: Any]? = nil,
245 | timeout: DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
246 | ) throws -> Data {
247 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:530:18: error: cannot find type 'URLRequest' in scope
528 |
529 | enum Info {
530 | case request(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
532 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:19: error: cannot find type 'URLRequest' in scope
529 | enum Info {
530 | case request(URLRequest)
531 | case response(URLRequest, URLResponse?, Result<Data?, Error>)
| `- error: cannot find type 'URLRequest' in scope
532 | }
533 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:531:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
529 | enum Info {
530 | case request(URLRequest)
531 | 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.
532 | }
533 |
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:608:38: error: cannot find type 'URLRequest' in scope
606 | }
607 |
608 | private static func hit(_ request: URLRequest, info: @escaping ((UUID, Info) -> Void), completion: @escaping (Response<Data?>) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
609 | let uuid = UUID()
610 | info(uuid, .request(request))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:639:138: error: cannot find type 'URLRequest' in scope
637 | extension TKServer {
638 |
639 | private func request(path: String, baseURL: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
640 |
641 | switch method {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:662:124: error: cannot find type 'URLRequest' in scope
660 | }
661 |
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
663 |
664 | var request: URLRequest
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:731:94: error: cannot find type 'URLRequest' in scope
729 | }
730 |
731 | public func GETRequestWithSkedGoHTTPHeaders(for url: URL, paras: [String: Any]?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
732 | try request(for: url, method: .GET, parameters: paras, headers: nil)
733 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:248:21: error: cannot find 'DispatchSemaphore' in scope
246 | ) throws -> Data {
247 |
248 | let semaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
249 | var dataResult: Result<Data, Error>? = nil
250 | hit(url: url, parameters: parameters) { _, _, result in
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:254:34: error: cannot call value of non-function type 'ContinuousClock.Instant'
252 | semaphore.signal()
253 | }
254 | _ = semaphore.wait(timeout: .now() + .seconds(10))
| `- error: cannot call value of non-function type 'ContinuousClock.Instant'
255 | let data = try dataResult.orThrow(ServerError.noData).get()
256 | guard !data.isEmpty else { throw ServerError.noData }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:545:9: error: cannot find 'DispatchQueue' in scope
543 | func callback(_ response: Response<Data?>) {
544 | if callbackOnMain {
545 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
546 | completion(response)
547 | }
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:563:18: error: cannot find type 'URLRequest' in scope
561 | }
562 |
563 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
564 | do {
565 | request = try self.request(path: path, baseURL: baseURL, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:13: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
:
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:579:5: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
577 | }
578 |
579 | Self.hit(request, info: info) { response in
| `- error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
580 | switch (response.statusCode ?? 0 >= 500, response.result) {
581 | case (_, .success):
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:15: error: missing arguments for parameters 'method', 'parameters', 'headers' in call
597 | }
598 |
599 | 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
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | Self.hit(request, info: info, completion: completion)
| `- error: missing arguments for parameters 'method', 'parameters', 'headers' in call
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:602:7: error: instance member 'hit' cannot be used on type 'Self'; did you mean to use a value of this type instead?
600 | do {
601 | let request = try request(for: url, method: method, parameters: parameters, headers: headers)
602 | 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?
603 | } catch {
604 | completion(.init(headers: [:], result: .failure(error)))
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:612:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
610 | info(uuid, .request(request))
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
613 | let status = (response as? HTTPURLResponse)?.statusCode
614 | let result: Result<Data?, Error>
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:613:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
611 |
612 | URLSession.shared.dataTask(with: request) { data, response, error in
613 | let status = (response as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
614 | let result: Result<Data?, Error>
615 | if let error {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:664:18: error: cannot find type 'URLRequest' in scope
662 | private func request(for url: URL, method: HTTPMethod, parameters: [String: Any]?, headers: [String: String]?) throws -> URLRequest {
663 |
664 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
665 |
666 | if case .GET = method, let parameters, !parameters.isEmpty {
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:674:17: error: cannot find 'URLRequest' in scope
672 | components.queryItems = queryItems
673 | let merged = try components.url.orThrow(RequestError.invalidURL)
674 | request = URLRequest(url: merged)
| `- error: cannot find 'URLRequest' in scope
675 | } else {
676 | request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/TripKitAPI/TKServer.swift:676:17: error: cannot find 'URLRequest' in scope
674 | request = URLRequest(url: merged)
675 | } else {
676 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
677 | }
678 |
/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 | }
[10/59] Compiling TripKitAPI TKAPIConfig.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[11/59] Compiling TripKitAPI TKConfig.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[12/59] Compiling TripKitAPI TKCrossPlatform.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[13/59] Compiling TripKitAPI TKLog.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[14/59] Compiling TripKitAPI TKRegionManager.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[15/59] Compiling TripKitAPI TKRouter.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[16/59] Compiling TripKitAPI TKRoutingServer.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[17/59] Compiling TripKitAPI TKServer+Regions.swift
/host/spi-builder-workspace/Sources/TripKitAPI/TKConfig.swift:20:121: error: argument passed to call that takes no arguments
18 | #else
19 | // Yes, main!
20 | 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
21 | configuration = config
22 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:237:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
235 | extension TKLog {
236 |
237 | 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.
238 |
239 | /// 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:241:25: error: cannot find type 'URLRequest' in scope
239 | /// The URL request along with a UUID to identify each request sent
240 | public struct ServerRequest: Hashable {
241 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
242 | public let id: String
243 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:283:56: error: cannot find type 'URLRequest' in scope
281 |
282 | /// :nodoc: - Public for building CocoaPods-style
283 | public class func log(_ identifier: String, request: URLRequest, uuid: UUID) {
| `- error: cannot find type 'URLRequest' in scope
284 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
285 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:120: error: cannot find type 'URLRequest' in scope
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | guard !loggers.isEmpty else { return }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:293:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
291 |
292 | /// :nodoc: - Public for building CocoaPods-style
293 | 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.
294 | #if BETA || DEBUG || targetEnvironment(macCatalyst)
295 | 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:341:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 | }
340 |
341 | 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.
342 |
343 | 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:262:21: error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
260 | switch (lhs.result, rhs.result) {
261 | case (.success(let left), .success(let right)):
262 | return left == right
| `- error: binary operator '==' cannot be applied to two '(URLResponse, Data?)' (aka '(AnyObject, Optional<Data>)') operands
263 | case (.failure(let left), .failure(let right)):
264 | return left as NSError === right as NSError
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:274:16: error: instance method 'combine' requires that 'H' conform to 'Hashable'
272 | switch result {
273 | case let .success((response, data)):
274 | hasher.combine(response)
| `- error: instance method 'combine' requires that 'H' conform to 'Hashable'
275 | hasher.combine(data)
276 | case let .failure(error):
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
346 | let method = urlRequest.httpMethod,
347 | let url = urlRequest.url else { return "[bad request]" }
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:345:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 | let urlRequest = request.request
344 | guard
345 | let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 | let method = urlRequest.httpMethod,
347 | 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:356:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 | }
355 |
356 | var message = "\(emoji(status: httpResponse.statusCode)) \(httpResponse.statusCode): \(method) \(url.absoluteString)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
357 | guard detailed else { return message }
358 |
/host/spi-builder-workspace/Sources/TripKitAPI/TKLog.swift:359:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
357 | guard detailed else { return message }
358 |
359 | for header in httpResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
360 | message += "\n\(header.key): \(header.value)"
361 | }
/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:5: error: cannot find 'NotificationCenter' in scope
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot find 'NotificationCenter' in scope
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRegionManager.swift:95:44: error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
93 |
94 | self.response = response
95 | NotificationCenter.default.post(name: .TKRegionManagerUpdatedRegions, object: self)
| `- error: cannot infer contextual base in reference to member 'TKRegionManagerUpdatedRegions'
96 |
97 | if let encoded = try? JSONEncoder().encode(response) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:51:39: error: cannot find type 'DispatchQueue' in scope
49 | public /*private*/ var workers: [Set<String>: TKRouter] = [:]
50 | public /*private*/ var finishedWorkers: UInt = 0
51 | public /*private*/ var workerQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
52 |
53 | public init(config: TKAPIConfig) {
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:129:152: error: cannot find type 'URLRequest' in scope
127 | extension TKRouter {
128 |
129 | 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
130 | let paras = requestParameters(
131 | request: request,
/host/spi-builder-workspace/Sources/TripKitAPI/TKRouter.swift:143:5: warning: no calls to throwing functions occur within 'try' expression
141 |
142 | public static func routingRequestURL<C>(request: TKRoutingQuery<C>, modes: Set<String>? = nil, includeAddress: Bool = true, config: TKAPIConfig) -> String? {
143 | try? urlRequest(request: request, modes: modes, includeAddress: includeAddress, config: config).url?.absoluteString
| `- warning: no calls to throwing functions occur within 'try' expression
144 | }
145 |
[18/59] 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 |
[19/59] 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 |
[20/59] 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 |
[21/59] 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 |
[22/59] 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 |
[23/59] 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 |
[24/59] 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 |
[25/59] Compiling TripKitAPI DefaultEmptyArray.swift
[26/59] Compiling TripKitAPI DefaultFalse.swift
[27/59] Compiling TripKitAPI DefaultLossyArray.swift
[28/59] Compiling TripKitAPI DefaultNil.swift
[29/59] Compiling TripKitAPI DefaultTrue.swift
[30/59] Compiling TripKitAPI ISO8601OrSecondsSince1970.swift
[31/59] Compiling TripKitAPI LossyArray.swift
[32/59] Compiling TripKitAPI CLLocationCoordinate2D+EncodePolylineString.swift
[33/59] Compiling TripKitAPI Geometry.swift
[34/59] Compiling TripKitAPI MKPolygon+Union.swift
[35/59] Compiling TripKitAPI Polygon+GeoJSON.swift
[36/59] Compiling TripKitAPI Polygon.swift
[37/59] Compiling TripKitAPI QuickLookable.swift
[38/59] Compiling TripKitAPI DefaultCodable.swift
[39/59] 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 | }
[40/59] 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 | }
[41/59] 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 | }
[42/59] 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 | }
[43/59] 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 | }
[44/59] 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 | }
[45/59] 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 | }
[46/59] Compiling TripKitAPI VehicleAPIModel.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[47/59] Compiling TripKitAPI TKBookingData.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[48/59] Compiling TripKitAPI TKBookingTypes.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[49/59] Compiling TripKitAPI TKError.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[50/59] Compiling TripKitAPI TKLocalCost.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[51/59] Compiling TripKitAPI TKMapTiles.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[52/59] Compiling TripKitAPI TKMiniInstruction.swift
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKBookingTypes.swift:101:23: error: cannot find type 'TKColor' in scope
99 |
100 | #if !os(Linux)
101 | public var color: TKColor? {
| `- error: cannot find type 'TKColor' in scope
102 | return rgbColor?.color
103 | }
[53/59] Compiling TripKitAPI TKModeInfo.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[54/59] Compiling TripKitAPI TKRegion.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[55/59] Compiling TripKitAPI TKRoutingQuery.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[56/59] Compiling TripKitAPI TKTransportMode.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[57/59] Compiling TripKitAPI TKTripCostType.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[58/59] Compiling TripKitAPI TKTurnByTurnMode.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
[59/59] Compiling TripKitAPI CLLocationCoordinate2D+DecodePolylineString.swift
/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 | }
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:125:46: error: cannot find 'TKColor' in scope
123 | descriptor = aDecoder.decodeObject(of: NSString.self, forKey: "description") as String?
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
| `- error: cannot find 'TKColor' in scope
126 | rgbColor = TKAPI.RGBColor(for: color)
127 | } else {
/host/spi-builder-workspace/Sources/TripKitAPI/model/TKModeInfo.swift:126:32: error: incorrect argument label in call (have 'for:', expected 'from:')
124 |
125 | if let color = aDecoder.decodeObject(of: TKColor.self, forKey: "color") {
126 | rgbColor = TKAPI.RGBColor(for: color)
| `- error: incorrect argument label in call (have 'for:', expected 'from:')
127 | } else {
128 | rgbColor = nil
BUILD FAILURE 6.1 wasm