Build Information
Failed to build WatchLink, reference main (a58d0d), with Swift 6.0 for macOS (SPM) on 22 Apr 2026 19:44:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:247:67: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:43:25: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
41 | }
42 |
43 | ingestionTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | await self?.ingest()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:43:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
41 | }
42 |
43 | ingestionTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | await self?.ingest()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:47:28: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
45 | }
46 |
47 | reachabilityTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | await self?.observeReachability()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:47:28: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
45 | }
46 |
47 | reachabilityTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | await self?.observeReachability()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:51:21: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
49 | }
50 |
51 | retryTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | await self?.retryLoop()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:51:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
49 | }
50 |
51 | retryTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | await self?.retryLoop()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:61:24: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
59 | }
60 |
61 | ingestionTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | reachabilityTask?.cancel()
63 | retryTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:62:27: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
60 |
61 | ingestionTask?.cancel()
62 | reachabilityTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | retryTask?.cancel()
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:63:20: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
61 | ingestionTask?.cancel()
62 | reachabilityTask?.cancel()
63 | retryTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 |
65 | await ingestionTask?.value
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:65:30: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
63 | retryTask?.cancel()
64 |
65 | await ingestionTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | await reachabilityTask?.value
67 | await retryTask?.value
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:66:33: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
64 |
65 | await ingestionTask?.value
66 | await reachabilityTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | await retryTask?.value
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:67:26: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
65 | await ingestionTask?.value
66 | await reachabilityTask?.value
67 | await retryTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 |
69 | reachabilityTask = nil
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:75:38: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
73 | heartbeatHandler = nil
74 |
75 | for task in sendTasks { task.cancel() }
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | sendTasks.removeAll()
77 |
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:38: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
99 | }
100 |
101 | package func send<M: WatchLinkMessage>(
| `- note: add @available attribute to enclosing instance method
102 | _ message: M,
103 | timeout: Duration = .seconds(30)
:
109 | logger.debug("Query \(frame.id) on \(M.channel)")
110 |
111 | let responseData = try await withThrowingTaskGroup(of: Data?.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | for transport in transports {
113 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:60: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:59: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
99 | }
100 |
101 | package func send<M: WatchLinkMessage>(
| `- note: add @available attribute to enclosing instance method
102 | _ message: M,
103 | timeout: Duration = .seconds(30)
:
109 | logger.debug("Query \(frame.id) on \(M.channel)")
110 |
111 | let responseData = try await withThrowingTaskGroup(of: Data?.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|109 |
|110 |
|111 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
112 | for transport in transports {
113 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
134 | }
135 |
136 | package func reply<M: WatchLinkMessage>(with message: M, to frameID: String) async throws {
| `- note: add @available attribute to enclosing instance method
137 | let data = try encoder.encode(message)
138 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | for transport in transports {
140 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
134 | }
135 |
136 | package func reply<M: WatchLinkMessage>(with message: M, to frameID: String) async throws {
| `- note: add @available attribute to enclosing instance method
137 | let data = try encoder.encode(message)
138 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|136 |
|137 |
|138 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
139 | for transport in transports {
140 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:201:20: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | var anySucceeded = false
203 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:201:20: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | var anySucceeded = false
203 |
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:19: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
203 |
204 | await withTaskGroup(of: Bool.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | for transport in reachable {
206 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:225:34: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
:
223 | }
224 | }
225 | sendTasks.removeAll { $0.isCancelled }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | sendTasks.append(task)
227 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:33: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:32: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
203 |
204 | await withTaskGroup(of: Bool.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|202 |
|203 |
|204 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
205 | for transport in reachable {
206 | group.addTask {
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
232 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 | for stream in streams {
234 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
232 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|230 |
|231 |
|232 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
233 | for stream in streams {
234 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:243:36: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:243:35: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
:
241 | }
242 |
243 | await group.waitForAll()
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|241 |
|242 |
|243 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:251:16: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
250 |
251 | return AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
252 | subscribe(id: subID, channel: M.channel) { data, frameID in
253 | if let message = try? decoder.decode(M.self, from: data) {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:260:17: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
:
258 | continuation.onTermination = { [weak self] _ in
259 | guard let self else { return }
260 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | await self.unsubscribe(id: subID, channel: M.channel)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:260:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
:
258 | continuation.onTermination = { [weak self] _ in
259 | guard let self else { return }
260 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | await self.unsubscribe(id: subID, channel: M.channel)
262 | }
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
270 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | for stream in streams {
272 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
270 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|268 |
|269 |
|270 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
271 | for stream in streams {
272 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:279:36: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:279:35: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
:
277 | }
278 |
279 | await group.waitForAll()
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|277 |
|278 |
|279 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:361:16: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:361:21: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:363:20: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | retryUnacked()
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:363:25: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | retryUnacked()
365 | }
[11/33] Compiling WatchLinkCore TransportCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/SafeContinuation.swift:4:31: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package final class SafeContinuation<T: Sendable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
4 | private let continuation: CheckedContinuation<T, Error>
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
5 | private var hasResumed = false
6 | private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/SafeContinuation.swift:8:34: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package final class SafeContinuation<T: Sendable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
4 | private let continuation: CheckedContinuation<T, Error>
5 | private var hasResumed = false
6 | private let lock = NSLock()
7 |
8 | package init(_ continuation: CheckedContinuation<T, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
9 | self.continuation = continuation
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Transport.swift:6:30: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package protocol Transport: Sendable {
| `- note: add @available attribute to enclosing protocol
5 | var isReachable: Bool { get }
6 | var reachabilityChanges: AsyncStream<Bool> { get }
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
7 | func send(_ data: Data) async throws
8 | func request(_ data: Data) async throws -> Data
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Transport.swift:11:24: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package protocol Transport: Sendable {
| `- note: add @available attribute to enclosing protocol
5 | var isReachable: Bool { get }
6 | var reachabilityChanges: AsyncStream<Bool> { get }
:
9 | func reply(to frameID: String, with data: Data) async
10 | func populateDiagnostics(_ diagnostics: inout WatchLinkDiagnostics)
11 | func incoming() -> AsyncStream<IncomingMessage>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | func start()
13 | func stop()
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:12:35: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
10 | private let decoder = JSONDecoder()
11 | private var seenIDs: Set<String> = []
12 | private var reachabilityTask: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
13 | private var retryTask: Task<Void, Never>?
14 | private var subscriptions: [Channel: [UUID: @Sendable (Data, String) -> Void]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:13:28: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
11 | private var seenIDs: Set<String> = []
12 | private var reachabilityTask: Task<Void, Never>?
13 | private var retryTask: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
14 | private var subscriptions: [Channel: [UUID: @Sendable (Data, String) -> Void]] = [:]
15 | private var controlHandler: (@WatchLinkActor (ControlFrame) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:17:32: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
15 | private var controlHandler: (@WatchLinkActor (ControlFrame) -> Void)?
16 | private var heartbeatHandler: (@WatchLinkActor () -> Void)?
17 | private var ingestionTask: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
18 | private var unackedMessages: [String: UnackedEntry] = [:]
19 | private var pendingConfirmations: Set<String> = []
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:20:29: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
18 | private var unackedMessages: [String: UnackedEntry] = [:]
19 | private var pendingConfirmations: Set<String> = []
20 | private var sendTasks: [Task<Void, Never>] = []
| `- error: 'Task' is only available in macOS 10.15 or newer
21 |
22 | private struct UnackedEntry {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:247:67: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:43:25: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
41 | }
42 |
43 | ingestionTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | await self?.ingest()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:43:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
41 | }
42 |
43 | ingestionTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | await self?.ingest()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:47:28: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
45 | }
46 |
47 | reachabilityTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | await self?.observeReachability()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:47:28: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
45 | }
46 |
47 | reachabilityTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | await self?.observeReachability()
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:51:21: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
49 | }
50 |
51 | retryTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | await self?.retryLoop()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:51:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
36 | }
37 |
38 | package func startAll() {
| `- note: add @available attribute to enclosing instance method
39 | for transport in transports {
40 | transport.start()
:
49 | }
50 |
51 | retryTask = Task { [weak self] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | await self?.retryLoop()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:61:24: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
59 | }
60 |
61 | ingestionTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | reachabilityTask?.cancel()
63 | retryTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:62:27: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
60 |
61 | ingestionTask?.cancel()
62 | reachabilityTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | retryTask?.cancel()
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:63:20: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
61 | ingestionTask?.cancel()
62 | reachabilityTask?.cancel()
63 | retryTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 |
65 | await ingestionTask?.value
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:65:30: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
63 | retryTask?.cancel()
64 |
65 | await ingestionTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | await reachabilityTask?.value
67 | await retryTask?.value
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:66:33: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
64 |
65 | await ingestionTask?.value
66 | await reachabilityTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | await retryTask?.value
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:67:26: error: 'value' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
65 | await ingestionTask?.value
66 | await reachabilityTask?.value
67 | await retryTask?.value
| |- error: 'value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 |
69 | reachabilityTask = nil
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:75:38: error: 'cancel()' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
54 | }
55 |
56 | package func stopAll() async {
| `- note: add @available attribute to enclosing instance method
57 | for transport in transports {
58 | transport.stop()
:
73 | heartbeatHandler = nil
74 |
75 | for task in sendTasks { task.cancel() }
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | sendTasks.removeAll()
77 |
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:38: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
99 | }
100 |
101 | package func send<M: WatchLinkMessage>(
| `- note: add @available attribute to enclosing instance method
102 | _ message: M,
103 | timeout: Duration = .seconds(30)
:
109 | logger.debug("Query \(frame.id) on \(M.channel)")
110 |
111 | let responseData = try await withThrowingTaskGroup(of: Data?.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | for transport in transports {
113 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:60: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:111:59: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
99 | }
100 |
101 | package func send<M: WatchLinkMessage>(
| `- note: add @available attribute to enclosing instance method
102 | _ message: M,
103 | timeout: Duration = .seconds(30)
:
109 | logger.debug("Query \(frame.id) on \(M.channel)")
110 |
111 | let responseData = try await withThrowingTaskGroup(of: Data?.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|109 |
|110 |
|111 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
112 | for transport in transports {
113 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
134 | }
135 |
136 | package func reply<M: WatchLinkMessage>(with message: M, to frameID: String) async throws {
| `- note: add @available attribute to enclosing instance method
137 | let data = try encoder.encode(message)
138 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | for transport in transports {
140 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:138:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
134 | }
135 |
136 | package func reply<M: WatchLinkMessage>(with message: M, to frameID: String) async throws {
| `- note: add @available attribute to enclosing instance method
137 | let data = try encoder.encode(message)
138 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|136 |
|137 |
|138 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
139 | for transport in transports {
140 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:201:20: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | var anySucceeded = false
203 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:201:20: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | var anySucceeded = false
203 |
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:19: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
203 |
204 | await withTaskGroup(of: Bool.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | for transport in reachable {
206 | group.addTask {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:225:34: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
:
223 | }
224 | }
225 | sendTasks.removeAll { $0.isCancelled }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
226 | sendTasks.append(task)
227 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:33: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:204:32: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
198 | }
199 |
200 | private func sendToReachable(_ data: Data, reachable: [any Transport]) {
| `- note: add @available attribute to enclosing instance method
201 | let task = Task { [logger] in
202 | var anySucceeded = false
203 |
204 | await withTaskGroup(of: Bool.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|202 |
|203 |
|204 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
205 | for transport in reachable {
206 | group.addTask {
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
232 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 | for stream in streams {
234 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:232:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
232 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|230 |
|231 |
|232 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
233 | for stream in streams {
234 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:243:36: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:243:35: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
227 | }
228 |
229 | private func observeReachability() async {
| `- note: add @available attribute to enclosing instance method
230 | let streams = transports.map(\.reachabilityChanges)
231 |
:
241 | }
242 |
243 | await group.waitForAll()
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|241 |
|242 |
|243 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:251:16: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
250 |
251 | return AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
252 | subscribe(id: subID, channel: M.channel) { data, frameID in
253 | if let message = try? decoder.decode(M.self, from: data) {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:260:17: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
:
258 | continuation.onTermination = { [weak self] _ in
259 | guard let self else { return }
260 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | await self.unsubscribe(id: subID, channel: M.channel)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:260:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
245 | }
246 |
247 | package func messages<M: WatchLinkMessage>(_ type: M.Type) -> AsyncStream<ReceivedMessage<M>> {
| `- note: add @available attribute to enclosing instance method
248 | let subID = UUID()
249 | let decoder = self.decoder
:
258 | continuation.onTermination = { [weak self] _ in
259 | guard let self else { return }
260 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | await self.unsubscribe(id: subID, channel: M.channel)
262 | }
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:15: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
270 | await withTaskGroup(of: Void.self) { group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | for stream in streams {
272 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:29: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:270:28: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
270 | await withTaskGroup(of: Void.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|268 |
|269 |
|270 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
271 | for stream in streams {
272 | group.addTask { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:279:36: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:279:35: note: expanded code originates here
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
265 | }
266 |
267 | private func ingest() async {
| `- note: add @available attribute to enclosing instance method
268 | let streams = transports.map { $0.incoming() }
269 |
:
277 | }
278 |
279 | await group.waitForAll()
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift
|277 |
|278 |
|279 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:361:16: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:361:21: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:363:20: error: 'Task' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | retryUnacked()
365 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/TransportCoordinator.swift:363:25: error: 'isCancelled' is only available in macOS 10.15 or newer
2 |
3 | @WatchLinkActor
4 | package final class TransportCoordinator {
| `- note: add @available attribute to enclosing class
5 | package private(set) var transports: [any Transport]
6 | private let clock: AnyClock
:
358 | }
359 |
360 | private func retryLoop() async {
| `- note: add @available attribute to enclosing instance method
361 | while !Task.isCancelled {
362 | try? await clock.sleep(for: retryInterval)
363 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
364 | retryUnacked()
365 | }
[12/33] Compiling WatchLinkCore Frame.swift
[13/33] Compiling WatchLinkCore HTTPMethod.swift
[14/33] Compiling WatchLinkCore HTTPRoute.swift
[15/33] Compiling WatchLinkCore PingResult.swift
[16/33] Compiling WatchLinkCore PingStateMachine.swift
[17/33] Compiling WatchLinkCore ReceivedMessage.swift
[18/33] Compiling WatchLinkCore ControlFrame.swift
[19/33] Compiling WatchLinkCore Diagnostics.swift
[20/33] Compiling WatchLinkCore Duration.swift
[21/33] Compiling WatchLinkCore IncomingMessage.swift
[22/33] Compiling WatchLinkCore Instant.swift
[23/33] Compiling WatchLinkCore JitteredBackoff.swift
[24/33] Compiling WatchLinkCore URLSessionProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:5:48: error: 'AsyncStream' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package protocol URLSessionProtocol: Sendable {
| `- note: add @available attribute to enclosing protocol
4 | func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse)
5 | func streamLines(_ request: URLRequest) -> AsyncStream<String>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:33:56: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
31 | }
32 |
33 | package func streamLines(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 15.0, watchOS 8.0, *) {
35 | return streamLinesUsingAsyncBytes(request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:42:71: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:59:69: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
57 | }
58 |
59 | package func streamLinesUsingDelegate(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | let delegate = SSEDataDelegate()
61 | let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:11:30: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
10 | if #available(iOS 15.0, watchOS 8.0, *) {
11 | return try await data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
12 | } else {
13 | return try await performRequestUsingDataTask(request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
15 | }
16 |
17 | package func performRequestUsingDataTask(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
18 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | dataTask(with: request) { data, response, error in
20 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:51: note: expanded code originates here
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
15 | }
16 |
17 | package func performRequestUsingDataTask(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
18 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift
|16 |
|17 |
|18 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------
19 | dataTask(with: request) { data, response, error in
20 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:43:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | let task = Task {
45 | do {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:44:24: error: 'Task' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:44:24: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:46:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
| |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
47 | for try await line in bytes.lines {
48 | continuation.yield(line)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:47:49: error: 'lines' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
47 | for try await line in bytes.lines {
| |- error: 'lines' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | continuation.yield(line)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:55:54: error: 'cancel()' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
:
53 | }
54 | }
55 | continuation.onTermination = { _ in task.cancel() }
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:64:22: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
57 | }
58 |
59 | package func streamLinesUsingDelegate(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
60 | let delegate = SSEDataDelegate()
61 | let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
62 | let task = session.dataTask(with: request)
63 |
64 | let stream = AsyncStream<String> { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | delegate.onLine = { line in continuation.yield(line) }
66 | delegate.onComplete = { continuation.finish() }
[25/33] Compiling WatchLinkCore WCSessionProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:5:48: error: 'AsyncStream' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package protocol URLSessionProtocol: Sendable {
| `- note: add @available attribute to enclosing protocol
4 | func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse)
5 | func streamLines(_ request: URLRequest) -> AsyncStream<String>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:33:56: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
31 | }
32 |
33 | package func streamLines(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | if #available(iOS 15.0, watchOS 8.0, *) {
35 | return streamLinesUsingAsyncBytes(request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:42:71: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:59:69: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
57 | }
58 |
59 | package func streamLinesUsingDelegate(_ request: URLRequest) -> AsyncStream<String> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | let delegate = SSEDataDelegate()
61 | let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:11:30: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
10 | if #available(iOS 15.0, watchOS 8.0, *) {
11 | return try await data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
12 | } else {
13 | return try await performRequestUsingDataTask(request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
15 | }
16 |
17 | package func performRequestUsingDataTask(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
18 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | dataTask(with: request) { data, response, error in
20 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:18:51: note: expanded code originates here
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
15 | }
16 |
17 | package func performRequestUsingDataTask(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
18 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift
|16 |
|17 |
|18 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------
19 | dataTask(with: request) { data, response, error in
20 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:43:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | let task = Task {
45 | do {
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:44:24: error: 'Task' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:44:24: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:46:53: error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
| |- error: 'bytes(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
47 | for try await line in bytes.lines {
48 | continuation.yield(line)
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:47:49: error: 'lines' is only available in macOS 12.0 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
45 | do {
46 | let (bytes, _) = try await self.bytes(for: request)
47 | for try await line in bytes.lines {
| |- error: 'lines' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | continuation.yield(line)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:55:54: error: 'cancel()' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
40 |
41 | @available(iOS 15.0, watchOS 8.0, *)
42 | package func streamLinesUsingAsyncBytes(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
43 | AsyncStream { continuation in
44 | let task = Task {
:
53 | }
54 | }
55 | continuation.onTermination = { _ in task.cancel() }
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/URLSessionProtocol.swift:64:22: error: 'AsyncStream' is only available in macOS 10.15 or newer
6 | }
7 |
8 | extension URLSession: URLSessionProtocol {
| `- note: add @available attribute to enclosing extension
9 | package func performRequest(_ request: URLRequest) async throws -> (Data, URLResponse) {
10 | if #available(iOS 15.0, watchOS 8.0, *) {
:
57 | }
58 |
59 | package func streamLinesUsingDelegate(_ request: URLRequest) -> AsyncStream<String> {
| `- note: add @available attribute to enclosing instance method
60 | let delegate = SSEDataDelegate()
61 | let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
62 | let task = session.dataTask(with: request)
63 |
64 | let stream = AsyncStream<String> { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | delegate.onLine = { line in continuation.yield(line) }
66 | delegate.onComplete = { continuation.finish() }
[26/33] Compiling WatchLinkCore WatchLinkActor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
[27/33] Compiling WatchLinkCore WatchLinkConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
[28/33] Compiling WatchLinkCore LogLevel.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
[29/33] Compiling WatchLinkCore Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
[30/33] Compiling WatchLinkCore PingAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:43:29: error: 'Logger' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 | switch level {
45 | case .debug: logger.debug("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:45:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:37: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:46:39: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
44 | switch level {
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:43: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:47:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
45 | case .debug: logger.debug("\(message)")
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | case .error: logger.error("\(message)")
49 | case .none: break
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:39: error: 'OSLogMessage' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/Logger.swift:48:41: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
5 | /// Configure on `WatchLinkConfiguration.logger`. Use `.osLog` for unified logging,
6 | /// `.none` to silence, or a custom instance to route messages somewhere else.
7 | public struct WatchLinkLogger: Sendable {
| `- note: add @available attribute to enclosing struct
8 | private let minimumLevel: LogLevel
9 | private let handler: @Sendable (LogLevel, String) -> Void
:
39 |
40 | /// Routes output to Apple's unified logging (`os.Logger`).
41 | public static let osLog = WatchLinkLogger { level, message in
| `- note: add @available attribute to enclosing static property
42 | if #available(iOS 14.0, watchOS 7.0, *) {
43 | let logger = os.Logger(subsystem: "WatchLink", category: "Transport")
:
46 | case .info: logger.info("\(message)")
47 | case .warning: logger.warning("\(message)")
48 | case .error: logger.error("\(message)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
49 | case .none: break
50 | }
[31/33] Compiling WatchLinkCore AnyClock.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:23: error: 'Task' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
[32/33] Compiling WatchLinkCore Channel.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:23: error: 'Task' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
[33/33] Compiling WatchLinkCore ConnectionState.swift
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:23: error: 'Task' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/WatchLinkCore/AnyClock.swift:8:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | package struct AnyClock: Sendable {
| `- note: add @available attribute to enclosing struct
4 | private let _sleep: @Sendable (Duration) async throws -> Void
5 |
6 | package init() {
| `- note: add @available attribute to enclosing initializer
7 | _sleep = { duration in
8 | try await Task.sleep(nanoseconds: duration.nanoseconds)
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
BUILD FAILURE 6.0 macosSpm