Build Information
Failed to build Glider, reference main (c93275
), with Swift 6.0 for Linux on 30 Nov 2024 13:41:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
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 ?? "–")
[87/97] Compiling Glider RemoteTransportServerDelegate.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[88/97] Compiling Glider Network+Extension.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[89/97] Compiling Glider RemoteTransportConnection.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[90/97] Compiling Glider RemoteTransportPackets.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[91/97] Compiling Glider SQLiteTransport+Delegate.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[92/97] Compiling Glider SQLiteTransport.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[93/97] Compiling Glider SQLite+Statement.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[94/97] Compiling Glider SQLiteDb+Additions.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[95/97] Compiling Glider SQLiteDb+Support.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[96/97] Compiling Glider SQLiteDb.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
[97/97] Compiling Glider BonjourPublisher+Configuration.swift
/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/SQLiteTransport/Support/SQLiteDb.swift:43:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The debug logger used to check the internal sqlite.
43 | public static var logger: Log?
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Use the JSON1 extension for JSON values, currently
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:125:27: warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
123 | /// The database is opened for reading and writing,
124 | /// and is created if it does not already exist.
125 | public static let create = OpenMode(rawValue: SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE)
| |- warning: static property 'create' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'create' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 |
127 | public init(rawValue: Int32) {
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:116:27: warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
114 | /// The database is opened in read-only mode.
115 | /// If the database does not already exist, an error is returned.
116 | public static let readOnly = OpenMode(rawValue: SQLITE_OPEN_READONLY)
| |- warning: static property 'readOnly' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The database is opened for reading and writing if possible, or reading only
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:121:27: warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// Defines how to open new database in SQLite3.
110 | public struct OpenMode: OptionSet {
| `- note: consider making struct 'OpenMode' conform to the 'Sendable' protocol
111 |
112 | public let rawValue: Int32
:
119 | /// if the file is write protected by the operating system.
120 | /// In either case the database must already exist, otherwise an error is returned.
121 | public static let readWrite = OpenMode(rawValue: SQLITE_OPEN_READWRITE)
| |- warning: static property 'readWrite' is not concurrency-safe because non-'Sendable' type 'SQLiteDb.OpenMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// The database is opened for reading and writing,
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:198:43: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
196 | internal var flag: Int32 {
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:199:53: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
197 | switch self {
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN' in scope
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:200:61: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
198 | case .protectComplete: return SQLITE_OPEN_FILEPROTECTION_COMPLETE
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION' in scope
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
202 | }
/host/spi-builder-workspace/Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb+Support.swift:201:32: error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
199 | case .protectCompleteUnlessOpen: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNLESSOPEN
200 | case .protectCompleteUntilFirstUserAuth: return SQLITE_OPEN_FILEPROTECTION_COMPLETEUNTILFIRSTUSERAUTHENTICATION
201 | case .none: return SQLITE_OPEN_FILEPROTECTION_NONE
| `- error: cannot find 'SQLITE_OPEN_FILEPROTECTION_NONE' in scope
202 | }
203 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:71:26: error: cannot find type 'RemoteTransport' in scope
69 |
70 | /// The packet code.
71 | public var code: RemoteTransport.PacketCode = .message
| `- error: cannot find type 'RemoteTransport' in scope
72 |
73 | /// Event stored.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:82: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:91:45: error: cannot find type 'RemoteTransport' in scope
89 | }
90 |
91 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEvent? {
| `- error: cannot find type 'RemoteTransport' in scope
92 | guard let code = PacketCode(rawValue: packet.code),
93 | code == .message else {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:106:26: error: cannot find type 'RemoteTransport' in scope
104 | public struct PacketEmpty: RemoteTransportPacket {
105 |
106 | public let code: RemoteTransport.PacketCode
| `- error: cannot find type 'RemoteTransport' in scope
107 |
108 | public init(code: RemoteTransport.PacketCode) {
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:108:27: error: cannot find type 'RemoteTransport' in scope
106 | public let code: RemoteTransport.PacketCode
107 |
108 | public init(code: RemoteTransport.PacketCode) {
| `- error: cannot find type 'RemoteTransport' in scope
109 | self.code = code
110 | }
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:82: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:116:45: error: cannot find type 'RemoteTransport' in scope
114 | }
115 |
116 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketEmpty? {
| `- error: cannot find type 'RemoteTransport' in scope
117 | guard let code = PacketCode(rawValue: packet.code) else {
118 | throw GliderError(message: "Unknown code for event")
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:194:26: error: cannot find type 'RemoteTransport' in scope
192 |
193 | /// Code of the message.
194 | public let code: RemoteTransport.PacketCode = .clientHello
| `- error: cannot find type 'RemoteTransport' in scope
195 |
196 | /// Data encoded.
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:83: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:215:45: error: cannot find type 'RemoteTransport' in scope
213 | }
214 |
215 | public static func decode(_ packet: RemoteTransport.RawPacket) throws -> RemoteTransport.PacketHello? {
| `- error: cannot find type 'RemoteTransport' in scope
216 | let data = try JSONDecoder().decode(Info.self, from: packet.body)
217 | return .init(info: data)
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:234:21: error: cannot find type 'RawPacket' in scope
232 | /// - `completed`: when closing a connection.
233 | public enum RemoteEvent {
234 | case packet(RawPacket)
| `- error: cannot find type 'RawPacket' in scope
235 | case error(Error)
236 | case completed
/host/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:251:34: error: cannot find type 'RemoteTransport' in scope
249 |
250 | /// Readable control code
251 | public var readableCode: RemoteTransport.PacketCode? {
| `- error: cannot find type 'RemoteTransport' in scope
252 | .init(rawValue: code)
253 | }
BUILD FAILURE 6.0 linux