Build Information
Failed to build Glider, reference main (c93275
), with Swift 6.2 (beta) for Linux on 21 Jun 2025 02:35:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:54:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
52 | self?.asyncFinish()
53 | }
54 | transport?.configuration.urlSession.execute(request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
55 | }
56 |
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:51: error: cannot infer contextual base in reference to member 'ephemeral'
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:92:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | /// Cancel all active tasks, invalidate the session and create the new one.
91 | open func reset() {
92 | session?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | session = URLSession(configuration: .ephemeral,
94 | delegate: sessionDelegate,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:46: error: cannot infer contextual base in reference to member 'ephemeral'
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:129:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
127 | }
128 |
129 | let task = session.streamTask(withHostName: configuration.host, port: configuration.port)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
130 | if !configuration.allowUntrustedServer {
131 | task.startSecureConnection()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:146:83: error: cannot infer type of closure parameter 'error' without a type annotation
144 | dispatchGroup.enter()
145 |
146 | task.write(messageData, timeout: configuration.timeout) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
147 | guard let self = self else {
148 | dispatchGroup.leave()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:305:27: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:306:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:307:34: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
308 | completionHandler(.useCredential, credential)
309 | } else {
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:308:36: error: cannot infer contextual base in reference to member 'useCredential'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:36: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:67: error: 'nil' requires a contextual type
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:58:78: error: cannot find type 'Configuration' in scope
56 | ///
57 | /// - Parameter builder: builder callback.
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
| `- error: cannot find type 'Configuration' in scope
59 | self.serviceType = serviceType
60 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:26:44: error: cannot find type 'ClientId' in scope
24 | // MARK: - Public Properties
25 |
26 | public internal(set) var clientId: ClientId?
| `- error: cannot find type 'ClientId' in scope
27 |
28 | /// Client info.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:29:39: error: cannot find type 'RemoteTransport' in scope
27 |
28 | /// Client info.
29 | public private(set) var info: RemoteTransport.PacketHello.Info
| `- error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:32:46: error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
32 | public internal(set) var connection: RemoteTransport.Connection?
| `- error: cannot find type 'RemoteTransport' in scope
33 |
34 | /// Is the client connected.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:56:32: error: cannot find type 'RemoteTransport' in scope
54 | ///
55 | /// - Parameter request: request.
56 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
57 | self.info = request.info
58 |
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:144:32: error: cannot find type 'RemoteTransport' in scope
142 | public let raw: String
143 |
144 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
145 | self.raw = (request.info.deviceId?.uuidString ?? "") +
146 | (request.info.appInfo.bundleIdentifier ?? "–")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[58/97] Compiling Glider RemoteTransport.swift
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:163:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | /// URL Session used to send data.
162 | /// By default `.default` is used
163 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | /// Formatters set.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:58: error: cannot infer contextual base in reference to member 'default'
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:30:28: error: cannot find type 'URLRequest' in scope
28 |
29 | /// URLRequest to execute.
30 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:54:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
52 | self?.asyncFinish()
53 | }
54 | transport?.configuration.urlSession.execute(request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
55 | }
56 |
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:51: error: cannot infer contextual base in reference to member 'ephemeral'
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:92:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | /// Cancel all active tasks, invalidate the session and create the new one.
91 | open func reset() {
92 | session?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | session = URLSession(configuration: .ephemeral,
94 | delegate: sessionDelegate,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:46: error: cannot infer contextual base in reference to member 'ephemeral'
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:129:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
127 | }
128 |
129 | let task = session.streamTask(withHostName: configuration.host, port: configuration.port)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
130 | if !configuration.allowUntrustedServer {
131 | task.startSecureConnection()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:146:83: error: cannot infer type of closure parameter 'error' without a type annotation
144 | dispatchGroup.enter()
145 |
146 | task.write(messageData, timeout: configuration.timeout) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
147 | guard let self = self else {
148 | dispatchGroup.leave()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:305:27: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:306:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:307:34: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
308 | completionHandler(.useCredential, credential)
309 | } else {
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:308:36: error: cannot infer contextual base in reference to member 'useCredential'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:36: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:67: error: 'nil' requires a contextual type
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:58:78: error: cannot find type 'Configuration' in scope
56 | ///
57 | /// - Parameter builder: builder callback.
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
| `- error: cannot find type 'Configuration' in scope
59 | self.serviceType = serviceType
60 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:26:44: error: cannot find type 'ClientId' in scope
24 | // MARK: - Public Properties
25 |
26 | public internal(set) var clientId: ClientId?
| `- error: cannot find type 'ClientId' in scope
27 |
28 | /// Client info.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:29:39: error: cannot find type 'RemoteTransport' in scope
27 |
28 | /// Client info.
29 | public private(set) var info: RemoteTransport.PacketHello.Info
| `- error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:32:46: error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
32 | public internal(set) var connection: RemoteTransport.Connection?
| `- error: cannot find type 'RemoteTransport' in scope
33 |
34 | /// Is the client connected.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:56:32: error: cannot find type 'RemoteTransport' in scope
54 | ///
55 | /// - Parameter request: request.
56 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
57 | self.info = request.info
58 |
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:144:32: error: cannot find type 'RemoteTransport' in scope
142 | public let raw: String
143 |
144 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
145 | self.raw = (request.info.deviceId?.uuidString ?? "") +
146 | (request.info.appInfo.bundleIdentifier ?? "–")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[59/97] Compiling Glider RemoteTransportDelegate.swift
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:163:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | /// URL Session used to send data.
162 | /// By default `.default` is used
163 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | /// Formatters set.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:58: error: cannot infer contextual base in reference to member 'default'
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:30:28: error: cannot find type 'URLRequest' in scope
28 |
29 | /// URLRequest to execute.
30 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:54:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
52 | self?.asyncFinish()
53 | }
54 | transport?.configuration.urlSession.execute(request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
55 | }
56 |
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:51: error: cannot infer contextual base in reference to member 'ephemeral'
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:92:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | /// Cancel all active tasks, invalidate the session and create the new one.
91 | open func reset() {
92 | session?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | session = URLSession(configuration: .ephemeral,
94 | delegate: sessionDelegate,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:46: error: cannot infer contextual base in reference to member 'ephemeral'
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:129:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
127 | }
128 |
129 | let task = session.streamTask(withHostName: configuration.host, port: configuration.port)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
130 | if !configuration.allowUntrustedServer {
131 | task.startSecureConnection()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:146:83: error: cannot infer type of closure parameter 'error' without a type annotation
144 | dispatchGroup.enter()
145 |
146 | task.write(messageData, timeout: configuration.timeout) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
147 | guard let self = self else {
148 | dispatchGroup.leave()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:305:27: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:306:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:307:34: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
308 | completionHandler(.useCredential, credential)
309 | } else {
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:308:36: error: cannot infer contextual base in reference to member 'useCredential'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:36: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:67: error: 'nil' requires a contextual type
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:58:78: error: cannot find type 'Configuration' in scope
56 | ///
57 | /// - Parameter builder: builder callback.
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
| `- error: cannot find type 'Configuration' in scope
59 | self.serviceType = serviceType
60 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:26:44: error: cannot find type 'ClientId' in scope
24 | // MARK: - Public Properties
25 |
26 | public internal(set) var clientId: ClientId?
| `- error: cannot find type 'ClientId' in scope
27 |
28 | /// Client info.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:29:39: error: cannot find type 'RemoteTransport' in scope
27 |
28 | /// Client info.
29 | public private(set) var info: RemoteTransport.PacketHello.Info
| `- error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:32:46: error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
32 | public internal(set) var connection: RemoteTransport.Connection?
| `- error: cannot find type 'RemoteTransport' in scope
33 |
34 | /// Is the client connected.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:56:32: error: cannot find type 'RemoteTransport' in scope
54 | ///
55 | /// - Parameter request: request.
56 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
57 | self.info = request.info
58 |
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:144:32: error: cannot find type 'RemoteTransport' in scope
142 | public let raw: String
143 |
144 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
145 | self.raw = (request.info.deviceId?.uuidString ?? "") +
146 | (request.info.appInfo.bundleIdentifier ?? "–")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[60/97] Compiling Glider RemoteTransportServer.swift
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:163:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | /// URL Session used to send data.
162 | /// By default `.default` is used
163 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | /// Formatters set.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:58: error: cannot infer contextual base in reference to member 'default'
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:30:28: error: cannot find type 'URLRequest' in scope
28 |
29 | /// URLRequest to execute.
30 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:54:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
52 | self?.asyncFinish()
53 | }
54 | transport?.configuration.urlSession.execute(request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
55 | }
56 |
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:51: error: cannot infer contextual base in reference to member 'ephemeral'
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:92:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | /// Cancel all active tasks, invalidate the session and create the new one.
91 | open func reset() {
92 | session?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | session = URLSession(configuration: .ephemeral,
94 | delegate: sessionDelegate,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:46: error: cannot infer contextual base in reference to member 'ephemeral'
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:129:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
127 | }
128 |
129 | let task = session.streamTask(withHostName: configuration.host, port: configuration.port)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
130 | if !configuration.allowUntrustedServer {
131 | task.startSecureConnection()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:146:83: error: cannot infer type of closure parameter 'error' without a type annotation
144 | dispatchGroup.enter()
145 |
146 | task.write(messageData, timeout: configuration.timeout) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
147 | guard let self = self else {
148 | dispatchGroup.leave()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:305:27: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:306:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:307:34: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
308 | completionHandler(.useCredential, credential)
309 | } else {
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:308:36: error: cannot infer contextual base in reference to member 'useCredential'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:36: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:67: error: 'nil' requires a contextual type
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:58:78: error: cannot find type 'Configuration' in scope
56 | ///
57 | /// - Parameter builder: builder callback.
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
| `- error: cannot find type 'Configuration' in scope
59 | self.serviceType = serviceType
60 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:26:44: error: cannot find type 'ClientId' in scope
24 | // MARK: - Public Properties
25 |
26 | public internal(set) var clientId: ClientId?
| `- error: cannot find type 'ClientId' in scope
27 |
28 | /// Client info.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:29:39: error: cannot find type 'RemoteTransport' in scope
27 |
28 | /// Client info.
29 | public private(set) var info: RemoteTransport.PacketHello.Info
| `- error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:32:46: error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
32 | public internal(set) var connection: RemoteTransport.Connection?
| `- error: cannot find type 'RemoteTransport' in scope
33 |
34 | /// Is the client connected.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:56:32: error: cannot find type 'RemoteTransport' in scope
54 | ///
55 | /// - Parameter request: request.
56 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
57 | self.info = request.info
58 |
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:144:32: error: cannot find type 'RemoteTransport' in scope
142 | public let raw: String
143 |
144 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
145 | self.raw = (request.info.deviceId?.uuidString ?? "") +
146 | (request.info.appInfo.bundleIdentifier ?? "–")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[61/97] Compiling Glider RemoteTransportServerClient.swift
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:163:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | /// URL Session used to send data.
162 | /// By default `.default` is used
163 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | /// Formatters set.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:223:58: error: cannot infer contextual base in reference to member 'default'
221 | public init(_ builder: ((inout Configuration) -> Void)?) throws {
222 | self.asyncTransportConfiguration = .init()
223 | self.urlSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
224 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
225 | builder?(&self)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:30:28: error: cannot find type 'URLRequest' in scope
28 |
29 | /// URLRequest to execute.
30 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:54:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
52 | self?.asyncFinish()
53 | }
54 | transport?.configuration.urlSession.execute(request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'execute'
55 | }
56 |
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:70:51: error: cannot infer contextual base in reference to member 'ephemeral'
68 | configuration: configuration.asyncTransportConfiguration)
69 | self.sessionDelegate = LogstashURLSessionDelegate(transport: self)
70 | self.session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
71 | delegate: self.sessionDelegate,
72 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:92:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
90 | /// Cancel all active tasks, invalidate the session and create the new one.
91 | open func reset() {
92 | session?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
93 | session = URLSession(configuration: .ephemeral,
94 | delegate: sessionDelegate,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:93:46: error: cannot infer contextual base in reference to member 'ephemeral'
91 | open func reset() {
92 | session?.invalidateAndCancel()
93 | session = URLSession(configuration: .ephemeral,
| `- error: cannot infer contextual base in reference to member 'ephemeral'
94 | delegate: sessionDelegate,
95 | delegateQueue: socketQueue)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:129:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
127 | }
128 |
129 | let task = session.streamTask(withHostName: configuration.host, port: configuration.port)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'streamTask'
130 | if !configuration.allowUntrustedServer {
131 | task.startSecureConnection()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:146:83: error: cannot infer type of closure parameter 'error' without a type annotation
144 | dispatchGroup.enter()
145 |
146 | task.write(messageData, timeout: configuration.timeout) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
147 | guard let self = self else {
148 | dispatchGroup.leave()
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:305:27: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:306:39: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:307:34: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
305 | if challenge.protectionSpace.host == transport?.configuration.host,
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
308 | completionHandler(.useCredential, credential)
309 | } else {
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:308:36: error: cannot infer contextual base in reference to member 'useCredential'
306 | let trust = challenge.protectionSpace.serverTrust {
307 | let credential = URLCredential(trust: trust)
308 | completionHandler(.useCredential, credential)
| `- error: cannot infer contextual base in reference to member 'useCredential'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:36: error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: cannot infer contextual base in reference to member 'cancelAuthenticationChallenge'
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:311:67: error: 'nil' requires a contextual type
309 | } else {
310 | transport?.delegate?.logstashTransport(transport!, didFailTrustingService: transport!.configuration.host)
311 | completionHandler(.cancelAuthenticationChallenge, nil)
| `- error: 'nil' requires a contextual type
312 | }
313 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:58:78: error: cannot find type 'Configuration' in scope
56 | ///
57 | /// - Parameter builder: builder callback.
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
| `- error: cannot find type 'Configuration' in scope
59 | self.serviceType = serviceType
60 | self.queue = DispatchQueue(label: String(describing: type(of: self)), attributes: [])
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:26:44: error: cannot find type 'ClientId' in scope
24 | // MARK: - Public Properties
25 |
26 | public internal(set) var clientId: ClientId?
| `- error: cannot find type 'ClientId' in scope
27 |
28 | /// Client info.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:29:39: error: cannot find type 'RemoteTransport' in scope
27 |
28 | /// Client info.
29 | public private(set) var info: RemoteTransport.PacketHello.Info
| `- error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:32:46: error: cannot find type 'RemoteTransport' in scope
30 |
31 | /// Parent connection.
32 | public internal(set) var connection: RemoteTransport.Connection?
| `- error: cannot find type 'RemoteTransport' in scope
33 |
34 | /// Is the client connected.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:56:32: error: cannot find type 'RemoteTransport' in scope
54 | ///
55 | /// - Parameter request: request.
56 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
57 | self.info = request.info
58 |
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:144:32: error: cannot find type 'RemoteTransport' in scope
142 | public let raw: String
143 |
144 | internal init(request: RemoteTransport.PacketHello) {
| `- error: cannot find type 'RemoteTransport' in scope
145 | self.raw = (request.info.deviceId?.uuidString ?? "") +
146 | (request.info.appInfo.bundleIdentifier ?? "–")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[62/97] Compiling Glider Configuration.swift
[63/97] Compiling Glider EventMessageFormatter.swift
[64/97] Compiling Glider FieldsFormatter+Field.swift
[65/97] Compiling Glider FieldsFormatter.swift
[66/97] Compiling Glider JSONFormatter.swift
[67/97] Compiling Glider MsgPackFormatter.swift
[68/97] Compiling Glider DataStream.swift
[69/97] Compiling Glider FlatValue.swift
[70/97] Compiling Glider Reader+Optionals.swift
[71/97] Compiling Glider Reader.swift
[72/97] Compiling Glider Types.swift
[73/97] Compiling Glider Writer+Optionals.swift
[74/97] Compiling Glider BonjourPublisher.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[75/97] Compiling Glider NetService+Extensions.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[76/97] Compiling Glider WebSocketClient.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[77/97] Compiling Glider WebSocketClientDelegate.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[78/97] Compiling Glider WebSocketPeer.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[79/97] Compiling Glider WebSocketServer.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[80/97] Compiling Glider WebSocketServerDelegate.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[81/97] Compiling Glider WebSocketTransportClient.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[82/97] Compiling Glider WebSocketTransportClientDelegate.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[83/97] Compiling Glider WebSocketTransportServer.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[84/97] Compiling Glider WebSocketTransportServerDelegate.swift
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:74:22: error: cannot find 'NetService' in scope
72 | self.configuration = cfg
73 |
74 | netService = NetService(domain: cfg.domain, type: cfg.type.description, name: cfg.name, port: cfg.port)
| `- error: cannot find 'NetService' in scope
75 | objectDelegate = BonjourPublisherObjectDelegate()
76 | objectDelegate?.server = self
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:103:52: error: cannot infer contextual base in reference to member 'default'
101 |
102 | successCallback = success
103 | netService.schedule(in: runLoop, forMode: .default)
| `- error: cannot infer contextual base in reference to member 'default'
104 | netService.publish(options: options)
105 | // runLoop.run()
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[85/97] Emitting module Glider
/host/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/host/spi-builder-workspace/Glider/Sources/Log/Additional Structures/LogInterpolation/LogInterpolation+Styles.swift:54:39: error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
52 | case fixed(precision: Int)
53 | case formatter(formatter: Formatter)
54 | case measure(unit: Unit, options: MeasurementFormatter.UnitOptions, style: Formatter.UnitStyle = .short)
| `- error: 'MeasurementFormatter' is unavailable: Not supported in swift-corelibs-foundation
55 | case currency(symbol: String?, usesGroupingSeparator: Bool = true)
56 | case bytes(style: ByteCountFormatter.CountStyle)
Foundation.MeasurementFormatter:2:12: note: 'MeasurementFormatter' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
2 | open class MeasurementFormatter : Formatter, NSSecureCoding {
| `- note: 'MeasurementFormatter' has been explicitly marked unavailable here
3 | public struct UnitOptions : OptionSet, Sendable {
4 | public private(set) var rawValue: UInt { get }
/host/spi-builder-workspace/Glider/Sources/Log/Additional Structures/ProcessIdentification.swift:59:9: error: cannot find 'pthread_threadid_np' in scope
57 | public lazy var threadID: UInt64 = {
58 | var threadID: UInt64 = 0
59 | pthread_threadid_np(nil, &threadID)
| `- error: cannot find 'pthread_threadid_np' in scope
60 | return threadID
61 | }()
/host/spi-builder-workspace/Glider/Sources/Log/Additional Structures/ProcessIdentification.swift:59:29: error: 'nil' requires a contextual type
57 | public lazy var threadID: UInt64 = {
58 | var threadID: UInt64 = 0
59 | pthread_threadid_np(nil, &threadID)
| `- error: 'nil' requires a contextual type
60 | return threadID
61 | }()
/host/spi-builder-workspace/Glider/Sources/Transports/Base Transports/AsyncTransport.swift:179:6: error: Objective-C interoperability is disabled
177 | }
178 |
179 | @objc
| `- error: Objective-C interoperability is disabled
180 | private func tick() {
181 | queue.async {
/host/spi-builder-workspace/Glider/Sources/Transports/Base Transports/ThrottledTransport.swift:149:6: error: Objective-C interoperability is disabled
147 |
148 | /// Called by timer.
149 | @objc
| `- error: Objective-C interoperability is disabled
150 | private func tick() {
151 | self.lastFlushDate = Date()
/host/spi-builder-workspace/Glider/Sources/Transports/File/POSIXTransports/POSIXStreamTransport.swift:112:57: error: cannot find 'Darwin' in scope
110 |
111 | /// POSIX stream.
112 | public var stream: UnsafeMutablePointer<FILE> = Darwin.stdout
| `- error: cannot find 'Darwin' in scope
113 |
114 | /// Formatter used to transform a payload into a string.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:163:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | /// URL Session used to send data.
162 | /// By default `.default` is used
163 | public var urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | /// Formatters set.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:30:28: error: cannot find type 'URLRequest' in scope
28 |
29 | /// URLRequest to execute.
30 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// Configuration
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:49:29: error: cannot find type 'URLRequest' in scope
47 | /// - urlRequest: url request to execute.
48 | /// - builder: builder function to customize the call.
49 | public init(urlRequest: URLRequest, _ builder: ((inout Configuration) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
50 | self.configuration = Configuration(builder)
51 | self.urlRequest = urlRequest
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:127:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | case `internal`(Swift.Error)
126 | case noResponse
127 | case invalidResponse(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:128:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | case noResponse
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | case httpError(HTTPURLResponse, Data?)
130 | }
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/Glider/Sources/Transports/HTTPTransport/HTTPTransportRequest.swift:129:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | case invalidResponse(URLResponse)
128 | case emptyResponse(HTTPURLResponse)
129 | case httpError(HTTPURLResponse, Data?)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
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/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 | // MARK: - Public Functions
16 |
17 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
18 |
19 | /// Execute the `URLSessionDataTask` which is part of the request, then call validate on it where we can decide if we need to retry or not.
/host/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/URLSession+Extensions.swift:40:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
38 | }
39 |
40 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
41 |
42 | /// Process results of `URLSessionDataTask` and converts it into `DataResult` instance
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:47:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// URLSession to use.
47 | private var session: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Session delegate.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:57: error: cannot find type 'URLSessionDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:77: error: cannot find type 'URLSessionTaskDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:287:101: error: cannot find type 'URLSessionStreamDelegate' in scope
285 | extension LogstashTransport {
286 |
287 | private class LogstashURLSessionDelegate: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URLSessionStreamDelegate {
| `- error: cannot find type 'URLSessionStreamDelegate' in scope
288 |
289 | // MARK: - Private Properties
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:303:66: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
304 |
305 | if challenge.protectionSpace.host == transport?.configuration.host,
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:301:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | }
300 |
301 | func urlSession(_ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
302 | didReceive challenge: URLAuthenticationChallenge,
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:302:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 | func urlSession(_ session: URLSession,
302 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
304 |
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:19:11: error: cannot find type 'RemoteTransport' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
20 |
21 | /// Represent the configuration settings used to create a new `RemoteTransport` instance.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:19:11: error: cannot find type 'RemoteTransportServer' in scope
17 |
18 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
19 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
20 |
21 | /// Identify a client connected to the server.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:139:11: error: cannot find type 'RemoteTransportServer' in scope
137 |
138 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
139 | extension RemoteTransportServer {
| `- error: cannot find type 'RemoteTransportServer' in scope
140 |
141 | public struct ClientId: Hashable {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:25:11: error: cannot find type 'RemoteTransport' in scope
23 |
24 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
25 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
26 |
27 | /// Packet presets code.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:49:15: error: cannot find type 'RemoteTransport' in scope
47 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
48 | public protocol RemoteTransportPacket {
49 | var code: RemoteTransport.PacketCode { get }
| `- error: cannot find type 'RemoteTransport' in scope
50 |
51 | /// Encode the packet content.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:60:34: error: cannot find type 'RemoteTransport' in scope
58 | /// - Parameter data: data to decode.
59 | /// - Returns: `Self?`
60 | static func decode(_ packet: RemoteTransport.RawPacket) throws -> Self?
| `- error: cannot find type 'RemoteTransport' in scope
61 |
62 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:65:11: error: cannot find type 'RemoteTransport' in scope
63 |
64 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
65 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
66 |
67 | /// The following packet encapsulate the logic of a `Glider.Event`.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:225:11: error: cannot find type 'RemoteTransport' in scope
223 |
224 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
225 | extension RemoteTransport {
| `- error: cannot find type 'RemoteTransport' in scope
226 |
227 | // MARK: - RemoteEvent
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:41:29: error: cannot find type 'NetService' in scope
39 |
40 | /// NetService used to publish services over bonjour.
41 | private var netService: NetService
| `- error: cannot find type 'NetService' in scope
42 |
43 | /// Delegate.
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:93:32: error: cannot find type 'NetService' in scope
91 | /// - options: options.
92 | /// - success: success handler.
93 | public func start(options: NetService.Options = [.listenForConnections],
| `- error: cannot find type 'NetService' in scope
94 | success: ((Bool) -> Void)? = nil) {
95 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:118:57: error: cannot find type 'NetServiceDelegate' in scope
116 |
117 | /// This class is used only to incapsulate the objective-c requirements of the NetServiceDelegate.
118 | private class BonjourPublisherObjectDelegate: NSObject, NetServiceDelegate {
| `- error: cannot find type 'NetServiceDelegate' in scope
119 | weak var server: BonjourPublisher?
120 |
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:127:41: error: cannot find type 'NetService' in scope
125 | }
126 |
127 | func netServiceDidPublish(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
128 | server?.started = true
129 | delegate?.bonjourPublisherDidStart(server!)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:132:31: error: cannot find type 'NetService' in scope
130 | }
131 |
132 | func netService(_ sender: NetService, didNotPublish errorDict: [String: NSNumber]) {
| `- error: cannot find type 'NetService' in scope
133 | server?.started = false
134 | let error = GliderError(message: errorDict.description)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift:138:38: error: cannot find type 'NetService' in scope
136 | }
137 |
138 | func netServiceDidStop(_ sender: NetService) {
| `- error: cannot find type 'NetService' in scope
139 | server?.started = false
140 | delegate?.bonjourPublisher(server!, didStopWithError: nil)
/host/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift:18:20: error: cannot find type 'NetService' in scope
16 | import Foundation
17 |
18 | internal extension NetService {
| `- error: cannot find type 'NetService' in scope
19 |
20 | class func dictionary(fromTXTRecord data: Data) -> [String: String] {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[86/97] Compiling Glider Writer.swift
[87/97] Compiling Glider OSLogFormatter.swift
[88/97] Compiling Glider SysLogFormatter.swift
[89/97] Compiling Glider SysLogPayload.swift
[90/97] Compiling Glider ASCIITable+Borders.swift
[91/97] Compiling Glider ASCIITable+Rendering.swift
[92/97] Compiling Glider ASCIITable.swift
[93/97] Compiling Glider TableFormatter.swift
[94/97] Compiling Glider TerminalFormatter+Colorize.swift
[95/97] Compiling Glider TerminalFormatter.swift
[96/97] Compiling Glider XCodeFormatter+Colorize.swift
[97/97] Compiling Glider XCodeFormatter.swift
BUILD FAILURE 6.2 linux