Build Information
Failed to build Axt, reference 0.3.0 (3be9ee
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:16:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
43 | /// properties and views, and can be used instead of waiting with a
44 | /// time-out.
45 | public static func yield() async {
| `- note: add @available attribute to enclosing static method
46 | return await withCheckedContinuation { cont in
47 | DispatchQueue.main.async { [cont] in
48 | cont.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:46:47: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:46:46: note: expanded code originates here
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
43 | /// properties and views, and can be used instead of waiting with a
44 | /// time-out.
45 | public static func yield() async {
| `- note: add @available attribute to enclosing static method
46 | return await withCheckedContinuation { cont in
+--- /Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift
|44 |
|45 |
|46 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------
47 | DispatchQueue.main.async { [cont] in
48 | cont.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:63: error: 'map' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'map' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:76: error: 'dropFirst' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'dropFirst' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:88: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:68:14: error: 'border(_:width:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding()
70 | .testId("app")
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:68:22: error: 'red' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding()
70 | .testId("app")
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:69:14: error: 'padding' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:71:14: error: 'backgroundPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
| |- error: 'backgroundPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | // This is used instead of `onPreferenceChange` because that
73 | // has a safety mechanism that results in the closure not
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:17: error: 'Color' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:23: error: 'clear' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:71:63: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
72 | // This is used instead of `onPreferenceChange` because that
73 | // has a safety mechanism that results in the closure not
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:7:17: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
9 | let cancellable = sink(
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:6:11: error: 'Publisher' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
8 | AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:30:17: error: 'AsyncStream' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
32 | let cancellable = sink(
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:29:18: error: 'Publisher' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
31 | AsyncStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:8:9: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
| |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | let cancellable = sink(
10 | receiveCompletion: { completion in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:9:31: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
9 | let cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | receiveCompletion: { completion in
11 | switch completion {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:31:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | let cancellable = sink(
33 | receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:32:31: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
32 | let cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | receiveCompletion: { _ in
34 | continuation.finish()
[6/24] Compiling Axt Publisher+Compatibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:7:25: error: cannot find type 'UIWindow' in scope
5 |
6 | public final class AxtTest {
7 | private var window: UIWindow!
| `- error: cannot find type 'UIWindow' in scope
8 | public private(set) var hostingController: UIViewController!
9 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:8:48: error: cannot find type 'UIViewController' in scope
6 | public final class AxtTest {
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
| `- error: cannot find type 'UIViewController' in scope
9 |
10 | public internal(set) static var sheets: [UUID: AxtTest] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:13:30: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
11 | public internal(set) static var enabled = false
12 |
13 | private let axtSubject = CurrentValueSubject<Axt?, Never>(nil)
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
14 |
15 | public init<V: View>(_ view: V) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
13 | private let axtSubject = CurrentValueSubject<Axt?, Never>(nil)
14 |
15 | public init<V: View>(_ view: V) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | let host = HostView(content: view, axtSubject: axtSubject)
17 | hostingController = UIHostingController(rootView: host)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:21:32: error: 'View' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
19 |
20 | @MainActor
21 | public static func host<V: View>(_ view: V) async -> AxtTest {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
22 | let axTest = AxtTest(view)
23 | axTest.makeWindow()
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:64:21: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
65 |
66 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:66:20: error: 'View' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:62:34: error: 'View' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:17:29: error: cannot find 'UIHostingController' in scope
15 | public init<V: View>(_ view: V) {
16 | let host = HostView(content: view, axtSubject: axtSubject)
17 | hostingController = UIHostingController(rootView: host)
| `- error: cannot find 'UIHostingController' in scope
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:24:37: error: 'dropFirst' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
19 |
20 | @MainActor
21 | public static func host<V: View>(_ view: V) async -> AxtTest {
| `- note: add @available attribute to enclosing static method
22 | let axTest = AxtTest(view)
23 | axTest.makeWindow()
24 | _ = await axTest.axtSubject.dropFirst().values.first { _ in true }
| |- error: 'dropFirst' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | return axTest
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:24:56: error: 'first(where:)' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
19 |
20 | @MainActor
21 | public static func host<V: View>(_ view: V) async -> AxtTest {
| `- note: add @available attribute to enclosing static method
22 | let axTest = AxtTest(view)
23 | axTest.makeWindow()
24 | _ = await axTest.axtSubject.dropFirst().values.first { _ in true }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | return axTest
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:30:28: error: cannot find 'UIApplication' in scope
28 | public func makeWindow() {
29 | Self.enabled = true
30 | let windowScenes = UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
31 | guard let scene = windowScenes.first as? UIWindowScene else {
32 | fatalError("Could not connect to window scene, make sure the test is running from a host application.")
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:31:50: error: cannot find type 'UIWindowScene' in scope
29 | Self.enabled = true
30 | let windowScenes = UIApplication.shared.connectedScenes
31 | guard let scene = windowScenes.first as? UIWindowScene else {
| `- error: cannot find type 'UIWindowScene' in scope
32 | fatalError("Could not connect to window scene, make sure the test is running from a host application.")
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:34:18: error: cannot find 'UIWindow' in scope
32 | fatalError("Could not connect to window scene, make sure the test is running from a host application.")
33 | }
34 | window = UIWindow(windowScene: scene)
| `- error: cannot find 'UIWindow' in scope
35 | window.rootViewController = hostingController
36 | window.makeKeyAndVisible()
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:46:22: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
43 | /// properties and views, and can be used instead of waiting with a
44 | /// time-out.
45 | public static func yield() async {
| `- note: add @available attribute to enclosing static method
46 | return await withCheckedContinuation { cont in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | DispatchQueue.main.async { [cont] in
48 | cont.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:48:22: error: 'resume()' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
43 | /// properties and views, and can be used instead of waiting with a
44 | /// time-out.
45 | public static func yield() async {
| `- note: add @available attribute to enclosing static method
46 | return await withCheckedContinuation { cont in
47 | DispatchQueue.main.async { [cont] in
48 | cont.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:46:47: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:46:46: note: expanded code originates here
4 | #if TESTABLE
5 |
6 | public final class AxtTest {
| `- note: add @available attribute to enclosing class
7 | private var window: UIWindow!
8 | public private(set) var hostingController: UIViewController!
:
43 | /// properties and views, and can be used instead of waiting with a
44 | /// time-out.
45 | public static func yield() async {
| `- note: add @available attribute to enclosing static method
46 | return await withCheckedContinuation { cont in
+--- /Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift
|44 |
|45 |
|46 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------
47 | DispatchQueue.main.async { [cont] in
48 | cont.resume()
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:63: error: 'map' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'map' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:76: error: 'dropFirst' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'dropFirst' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:59:88: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
52 | }
53 |
54 | extension AxtTest: AxtNode {
| `- note: add @available attribute to enclosing extension
55 | var nodeId: UUID { axtSubject.value!.nodeId }
56 |
57 | var getRoot: () -> Axt { { self.axtSubject.value! } }
58 |
59 | var rootDidChange: AnyPublisher<Void, Never> { axtSubject.map { _ in }.dropFirst().eraseToAnyPublisher() }
| | |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:68:14: error: 'border(_:width:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding()
70 | .testId("app")
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:68:22: error: 'red' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .padding()
70 | .testId("app")
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:69:14: error: 'padding' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:71:14: error: 'backgroundPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
| |- error: 'backgroundPreferenceValue(_:alignment:_:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | // This is used instead of `onPreferenceChange` because that
73 | // has a safety mechanism that results in the closure not
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:17: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:17: error: 'Color' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:81:23: error: 'clear' is only available in macOS 10.15 or newer
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
:
79 | // do not need that here.
80 | let _ = axtSubject.send($0.first)
81 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtTest.swift:71:63: warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
60 | }
61 |
62 | private struct HostView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
63 | let content: Content
64 | let axtSubject: CurrentValueSubject<Axt?, Never>
65 |
66 | var body: some View {
| `- note: add @available attribute to enclosing property
67 | content
68 | .border(.red, width: 2)
69 | .padding()
70 | .testId("app")
71 | .backgroundPreferenceValue(AxtPreferenceKey.self) {
| |- warning: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
72 | // This is used instead of `onPreferenceChange` because that
73 | // has a safety mechanism that results in the closure not
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:7:17: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
9 | let cancellable = sink(
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:6:11: error: 'Publisher' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
8 | AsyncThrowingStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:30:17: error: 'AsyncStream' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
32 | let cancellable = sink(
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:29:18: error: 'Publisher' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
31 | AsyncStream { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:8:9: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
| |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | let cancellable = sink(
10 | receiveCompletion: { completion in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:9:31: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
4 |
5 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
6 | extension Publisher {
| `- note: add @available attribute to enclosing extension
7 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add @available attribute to enclosing property
8 | AsyncThrowingStream { continuation in
9 | let cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | receiveCompletion: { completion in
11 | switch completion {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:31:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | let cancellable = sink(
33 | receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+Compatibility.swift:32:31: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
27 |
28 | @available(iOS, deprecated: 15.0, message: "For iOS 14 compatibility")
29 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
30 | var values: AsyncStream<Output> {
| `- note: add @available attribute to enclosing property
31 | AsyncStream { continuation in
32 | let cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | receiveCompletion: { _ in
34 | continuation.finish()
[7/24] Compiling Axt Publisher+firstValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:8:18: error: 'Publisher' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:14:32: error: 'timeout(_:scheduler:options:customError:)' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
| |- error: 'timeout(_:scheduler:options:customError:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | .values
16 | .first { _ in true }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:15:14: warning: conformance of 'DispatchQueue' to 'Scheduler' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
15 | .values
| |- warning: conformance of 'DispatchQueue' to 'Scheduler' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | .first { _ in true }
17 | guard let value = value else { throw TimeOut() }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:16:14: error: 'first(where:)' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
15 | .values
16 | .first { _ in true }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | guard let value = value else { throw TimeOut() }
18 | return value
[8/24] Compiling Axt printHierarchy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:8:18: error: 'Publisher' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:14:32: error: 'timeout(_:scheduler:options:customError:)' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
| |- error: 'timeout(_:scheduler:options:customError:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | .values
16 | .first { _ in true }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:15:14: warning: conformance of 'DispatchQueue' to 'Scheduler' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
15 | .values
| |- warning: conformance of 'DispatchQueue' to 'Scheduler' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
16 | .first { _ in true }
17 | guard let value = value else { throw TimeOut() }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/Publisher+firstValue.swift:16:14: error: 'first(where:)' is only available in macOS 10.15 or newer
6 | public struct TimeOut: Error {}
7 |
8 | public extension Publisher where Failure == Never {
| `- note: add @available attribute to enclosing extension
9 | /// Use only for testing
10 | /// Blocks the execution and returns the first value published by the
11 | /// publisher. If there's no value received during the `timeout` period,
12 | /// throws the `TimeOut` error.
13 | func firstValue(timeout: TimeInterval = 1) async throws -> Output {
| `- note: add @available attribute to enclosing instance method
14 | let value = await self.timeout(.seconds(timeout), scheduler: DispatchQueue.main)
15 | .values
16 | .first { _ in true }
| |- error: 'first(where:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | guard let value = value else { throw TimeOut() }
18 | return value
[9/24] Compiling Axt dig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:6:33: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
6 | func hostAxtSheet() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
7 | #if TESTABLE
8 | AxtSheet(content: self)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:24:59: error: cannot find type 'UIViewController' in scope
22 | }
23 |
24 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
25 | let test = AxtTest(content)
26 | AxtTest.sheets[context.coordinator.id] = test
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:24:47: error: cannot find type 'Context' in scope
22 | }
23 |
24 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
25 | let test = AxtTest(content)
26 | AxtTest.sheets[context.coordinator.id] = test
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:30:43: error: cannot find type 'UIViewController' in scope
28 | }
29 |
30 | public func updateUIViewController(_: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:30:70: error: cannot find type 'Context' in scope
28 | }
29 |
30 | public func updateUIViewController(_: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:35:53: error: cannot find type 'UIViewController' in scope
33 | }
34 |
35 | public static func dismantleUIViewController(_: UIViewController, coordinator: Coordinator) {
| `- error: cannot find type 'UIViewController' in scope
36 | AxtTest.sheets.removeValue(forKey: coordinator.id)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:17:33: error: cannot find type 'UIViewControllerRepresentable' in scope
15 | #if TESTABLE
16 |
17 | struct AxtSheet<Content: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
18 | let content: Content
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:17:26: error: 'View' is only available in macOS 10.15 or newer
15 | #if TESTABLE
16 |
17 | struct AxtSheet<Content: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
18 | let content: Content
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:8:9: error: return type of instance method 'hostAxtSheet()' requires that 'AxtSheet<Self>' conform to 'View'
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
6 | func hostAxtSheet() -> some View {
| `- note: opaque return type declared here
7 | #if TESTABLE
8 | AxtSheet(content: self)
| `- error: return type of instance method 'hostAxtSheet()' requires that 'AxtSheet<Self>' conform to 'View'
9 | #else
10 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:32:38: error: cannot find type 'UIHostingController' in scope
30 | public func updateUIViewController(_: UIViewController, context: Context) {
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
| `- error: cannot find type 'UIHostingController' in scope
33 | }
34 |
[10/24] Compiling Axt hostAxtSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:6:33: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
6 | func hostAxtSheet() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
7 | #if TESTABLE
8 | AxtSheet(content: self)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:24:59: error: cannot find type 'UIViewController' in scope
22 | }
23 |
24 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'UIViewController' in scope
25 | let test = AxtTest(content)
26 | AxtTest.sheets[context.coordinator.id] = test
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:24:47: error: cannot find type 'Context' in scope
22 | }
23 |
24 | public func makeUIViewController(context: Context) -> UIViewController {
| `- error: cannot find type 'Context' in scope
25 | let test = AxtTest(content)
26 | AxtTest.sheets[context.coordinator.id] = test
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:30:43: error: cannot find type 'UIViewController' in scope
28 | }
29 |
30 | public func updateUIViewController(_: UIViewController, context: Context) {
| `- error: cannot find type 'UIViewController' in scope
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:30:70: error: cannot find type 'Context' in scope
28 | }
29 |
30 | public func updateUIViewController(_: UIViewController, context: Context) {
| `- error: cannot find type 'Context' in scope
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:35:53: error: cannot find type 'UIViewController' in scope
33 | }
34 |
35 | public static func dismantleUIViewController(_: UIViewController, coordinator: Coordinator) {
| `- error: cannot find type 'UIViewController' in scope
36 | AxtTest.sheets.removeValue(forKey: coordinator.id)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:17:33: error: cannot find type 'UIViewControllerRepresentable' in scope
15 | #if TESTABLE
16 |
17 | struct AxtSheet<Content: View>: UIViewControllerRepresentable {
| `- error: cannot find type 'UIViewControllerRepresentable' in scope
18 | let content: Content
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:17:26: error: 'View' is only available in macOS 10.15 or newer
15 | #if TESTABLE
16 |
17 | struct AxtSheet<Content: View>: UIViewControllerRepresentable {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
18 | let content: Content
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:8:9: error: return type of instance method 'hostAxtSheet()' requires that 'AxtSheet<Self>' conform to 'View'
4 | /// Use this modifier on the content **inside** of a sheet, so that the
5 | /// contents can be accessed using `AXTest.sheets`.
6 | func hostAxtSheet() -> some View {
| `- note: opaque return type declared here
7 | #if TESTABLE
8 | AxtSheet(content: self)
| `- error: return type of instance method 'hostAxtSheet()' requires that 'AxtSheet<Self>' conform to 'View'
9 | #else
10 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/hostAxtSheet.swift:32:38: error: cannot find type 'UIHostingController' in scope
30 | public func updateUIViewController(_: UIViewController, context: Context) {
31 | let test = AxtTest.sheets[context.coordinator.id]
32 | (test?.hostingController as? UIHostingController<Content>)?.rootView = content
| `- error: cannot find type 'UIHostingController' in scope
33 | }
34 |
[11/24] Compiling Axt Axt.swift
[12/24] Compiling Axt Axt+description.swift
[13/24] Compiling Axt Axt+find.swift
[14/24] Compiling Axt Toggle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:3:39: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:14:42: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
:
12 | let anyToggleStateBinding = digForProperty(named: "_toggleState", in: content)
13 | let _toggleState = withUnsafePointer(to: anyToggleStateBinding) {
14 | $0.withMemoryRebound(to: Binding<ToggleState>.self, capacity: 1) {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | $0.pointee
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:36:70: error: 'withAnimation' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
:
34 |
35 | }
36 | return content.testData(label: label, value: isOn, action: { withAnimation { action() } })
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/Axt/NativeView.swift:3:35: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NativeView<Content: View, M: Modifier> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let base: M
5 | }
[15/24] Compiling Axt NativeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:3:39: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:14:42: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
:
12 | let anyToggleStateBinding = digForProperty(named: "_toggleState", in: content)
13 | let _toggleState = withUnsafePointer(to: anyToggleStateBinding) {
14 | $0.withMemoryRebound(to: Binding<ToggleState>.self, capacity: 1) {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | $0.pointee
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Toggle.swift:36:70: error: 'withAnimation' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct ToggleModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | let label = dig(for: String.self, in: content) ?? ""
7 | let isOn: Bool?
:
34 |
35 | }
36 | return content.testData(label: label, value: isOn, action: { withAnimation { action() } })
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/Axt/NativeView.swift:3:35: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct NativeView<Content: View, M: Modifier> {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | public let base: M
5 | }
[16/24] Compiling Axt Text.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:3:37: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:7:32: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | label = dig(for: String.self, in: text)
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:3:42: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:7:32: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | label = dig(for: String.self, in: text)
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:10:31: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
8 | label = dig(for: String.self, in: text)
9 | }
10 | let _value = dig(for: Binding<String>.self, in: content)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | let value = _value?.wrappedValue
12 | return content.testData(label: label, value: value, setValue: { if let newValue = $0 as? String { _value?.wrappedValue = newValue } })
[17/24] Compiling Axt TextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:3:37: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/Text.swift:7:32: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | label = dig(for: String.self, in: text)
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:5:50: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:3:42: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:7:32: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
8 | label = dig(for: String.self, in: text)
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Native/TextField.swift:10:31: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct TextFieldModifier<Content: View>: Modifier {
| `- note: add @available attribute to enclosing generic struct
4 | #if TESTABLE
5 | public func make(_ content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
6 | var label: String?
7 | if let text = dig(for: Text.self, in: content) {
8 | label = dig(for: String.self, in: text)
9 | }
10 | let _value = dig(for: Binding<String>.self, in: content)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | let value = _value?.wrappedValue
12 | return content.testData(label: label, value: value, setValue: { if let newValue = $0 as? String { _value?.wrappedValue = newValue } })
[18/24] Compiling Axt View+testData.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:185: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:145: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:6:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
7 | AxtView(
8 | identifier: nil,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
:
13 | content: type.base.make(self)
14 | )
15 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | #else
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:214: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:23:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | AxtView(
25 | identifier: nil,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
:
30 | content: self
31 | )
32 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | #else
34 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:150: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:205: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:165: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:199: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
39 | #if TESTABLE
40 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:6:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
7 | AxtView(
8 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
:
13 | content: type.base.make(self)
14 | )
15 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | #else
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:234: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:23:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | AxtView(
25 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
:
30 | content: self
31 | )
32 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | #else
34 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:170: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:40:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | AxtInsertView(
42 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:50:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
:
48 | content: self
49 | )
50 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | #else
52 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:204: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
[19/24] Compiling Axt View+testId.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:185: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:145: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:6:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
7 | AxtView(
8 | identifier: nil,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
:
13 | content: type.base.make(self)
14 | )
15 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | #else
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:4:214: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:23:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | AxtView(
25 | identifier: nil,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
:
30 | content: self
31 | )
32 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | #else
34 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testData.swift:21:150: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testData<M: Modifier>(type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testData(label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:205: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:165: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:199: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | `- note: add @available attribute to enclosing instance method
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
39 | #if TESTABLE
40 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:6:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
7 | AxtView(
8 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
:
13 | content: type.base.make(self)
14 | )
15 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | #else
17 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:4:234: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
5 | #if TESTABLE
6 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:23:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | AxtView(
25 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:32:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
:
30 | content: self
31 | )
32 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | #else
34 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:21:170: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
19 | }
20 |
21 | @ViewBuilder func testId(_ identifier: String, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
22 | #if TESTABLE
23 | if AxtTest.enabled {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:40:28: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | AxtInsertView(
42 | identifier: identifier,
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:50:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
:
48 | content: self
49 | )
50 | } else { self }
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | #else
52 | self
/Users/admin/builder/spi-builder-workspace/Sources/Axt/View+testId.swift:38:204: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder func testId<M: Modifier>(_ identifier: String, type: NativeView<Self, M>, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View where M.Content == Self {
5 | #if TESTABLE
:
36 | }
37 |
38 | @ViewBuilder func testId(insert identifier: String, when condition: Bool = true, label: String? = nil, value: Any? = nil, action: (() -> Void)? = nil, setValue: ((Any?) -> Void)? = nil) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
39 | #if TESTABLE
40 | if AxtTest.enabled {
[20/24] Compiling Axt AxtView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
10 | let setValue: ((Any?) -> Void)?
11 | let content: Content
12 | @State private var nodeId = UUID()
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var visible = true
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
11 | let content: Content
12 | @State private var nodeId = UUID()
13 | @State private var visible = true
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:5:25: error: 'View' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
35 | let setValue: ((Any?) -> Void)?
36 | let content: Content
37 | @State private var nodeId = UUID()
| `- error: 'State' is only available in macOS 10.15 or newer
38 |
39 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
37 | @State private var nodeId = UUID()
38 |
39 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | content
41 | .transformPreference(AxtPreferenceKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:29:31: error: 'View' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:17:14: error: 'transformPreference' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
| |- error: 'transformPreference' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | if value.count == 1, let placeholder = value.first, placeholder.id == nil {
19 | value = [Axt(id: identifier, nodeId: self.nodeId , label: self.label ?? placeholder.label, value: self.value ?? placeholder.value, action: self.action ?? placeholder.action, setValue: self.setValue ?? placeholder.setValue, children: placeholder.children, visible: self.visible)]
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:24:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
22 | }
23 | }
24 | .onAppear { visible = true }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .onDisappear { visible = false }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:24:25: error: setter for 'visible' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
22 | }
23 | }
24 | .onAppear { visible = true }
| |- error: setter for 'visible' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .onDisappear { visible = false }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:25:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
23 | }
24 | .onAppear { visible = true }
25 | .onDisappear { visible = false }
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:25:28: error: setter for 'visible' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
23 | }
24 | .onAppear { visible = true }
25 | .onDisappear { visible = false }
| |- error: setter for 'visible' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:41:14: error: 'transformPreference' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
37 | @State private var nodeId = UUID()
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | content
41 | .transformPreference(AxtPreferenceKey.self) { value in
| |- error: 'transformPreference' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | guard condition else { return }
43 | value.append(Axt(id: identifier, nodeId: self.nodeId, label: label, value: self.value, action: action, setValue: setValue, children: [], visible: true))
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Modifier.swift:4:29: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public protocol Modifier {
| `- note: add @available attribute to enclosing protocol
4 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
5 | #if TESTABLE
6 | associatedtype Body: View
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Modifier.swift:6:26: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public protocol Modifier {
| `- note: add @available attribute to enclosing protocol
4 | associatedtype Content: View
5 | #if TESTABLE
6 | associatedtype Body: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
7 | func make(_ content: Content) -> Body
8 | #endif
[21/24] Compiling Axt Modifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
10 | let setValue: ((Any?) -> Void)?
11 | let content: Content
12 | @State private var nodeId = UUID()
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var visible = true
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
11 | let content: Content
12 | @State private var nodeId = UUID()
13 | @State private var visible = true
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:5:25: error: 'View' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
35 | let setValue: ((Any?) -> Void)?
36 | let content: Content
37 | @State private var nodeId = UUID()
| `- error: 'State' is only available in macOS 10.15 or newer
38 |
39 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
37 | @State private var nodeId = UUID()
38 |
39 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | content
41 | .transformPreference(AxtPreferenceKey.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:29:31: error: 'View' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:17:14: error: 'transformPreference' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
| |- error: 'transformPreference' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | if value.count == 1, let placeholder = value.first, placeholder.id == nil {
19 | value = [Axt(id: identifier, nodeId: self.nodeId , label: self.label ?? placeholder.label, value: self.value ?? placeholder.value, action: self.action ?? placeholder.action, setValue: self.setValue ?? placeholder.setValue, children: placeholder.children, visible: self.visible)]
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:24:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
22 | }
23 | }
24 | .onAppear { visible = true }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .onDisappear { visible = false }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:24:25: error: setter for 'visible' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
22 | }
23 | }
24 | .onAppear { visible = true }
| |- error: setter for 'visible' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .onDisappear { visible = false }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:25:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
23 | }
24 | .onAppear { visible = true }
25 | .onDisappear { visible = false }
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:25:28: error: setter for 'visible' is only available in macOS 10.15 or newer
3 | #if TESTABLE
4 |
5 | struct AxtView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
6 | let identifier: String?
7 | let label: String?
:
13 | @State private var visible = true
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | content
17 | .transformPreference(AxtPreferenceKey.self) { value in
:
23 | }
24 | .onAppear { visible = true }
25 | .onDisappear { visible = false }
| |- error: setter for 'visible' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtView.swift:41:14: error: 'transformPreference' is only available in macOS 10.15 or newer
27 | }
28 |
29 | struct AxtInsertView<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
30 | let identifier: String
31 | let condition: Bool
:
37 | @State private var nodeId = UUID()
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | content
41 | .transformPreference(AxtPreferenceKey.self) { value in
| |- error: 'transformPreference' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | guard condition else { return }
43 | value.append(Axt(id: identifier, nodeId: self.nodeId, label: label, value: self.value, action: action, setValue: setValue, children: [], visible: true))
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Modifier.swift:4:29: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public protocol Modifier {
| `- note: add @available attribute to enclosing protocol
4 | associatedtype Content: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
5 | #if TESTABLE
6 | associatedtype Body: View
/Users/admin/builder/spi-builder-workspace/Sources/Axt/Modifier.swift:6:26: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public protocol Modifier {
| `- note: add @available attribute to enclosing protocol
4 | associatedtype Content: View
5 | #if TESTABLE
6 | associatedtype Body: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
7 | func make(_ content: Content) -> Body
8 | #endif
[22/24] Compiling Axt AxtChildNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:11:69: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.nodeId = nodeId
13 | self.getRoot = getRoot
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | protocol AxtNode: AxtElement {
| `- note: add @available attribute to enclosing protocol
7 | var nodeId: UUID { get }
8 | var getRoot: () -> Axt { get }
9 | var rootDidChange: AnyPublisher<Void, Never> { get }
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:33: error: 'filter' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:56: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:61:43: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:62:14: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .firstValue(timeout: timeout)
64 | return makeNode(nodeId: axt.nodeId)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:63:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
64 | return makeNode(nodeId: axt.nodeId)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:68:37: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:69:14: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
| |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .firstValue(timeout: timeout)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:70:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:48: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:94: error: 'prepend' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'prepend' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:129: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
[23/24] Compiling Axt AxtElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:11:69: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.nodeId = nodeId
13 | self.getRoot = getRoot
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | protocol AxtNode: AxtElement {
| `- note: add @available attribute to enclosing protocol
7 | var nodeId: UUID { get }
8 | var getRoot: () -> Axt { get }
9 | var rootDidChange: AnyPublisher<Void, Never> { get }
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:33: error: 'filter' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:56: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:61:43: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:62:14: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .firstValue(timeout: timeout)
64 | return makeNode(nodeId: axt.nodeId)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:63:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
64 | return makeNode(nodeId: axt.nodeId)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:68:37: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:69:14: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
| |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .firstValue(timeout: timeout)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:70:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:48: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:94: error: 'prepend' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'prepend' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:129: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
[24/24] Compiling Axt AxtNode.swift
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtChildNode.swift:11:69: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | class AxtChildNode: AxtNode {
| `- note: add @available attribute to enclosing class
7 | let nodeId: UUID
8 | let getRoot: () -> Axt
9 | let rootDidChange: AnyPublisher<Void, Never>
10 |
11 | init(nodeId: UUID, getRoot: @escaping () -> Axt, rootDidChange: AnyPublisher<Void, Never>) {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
12 | self.nodeId = nodeId
13 | self.getRoot = getRoot
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:9:24: error: 'AnyPublisher' is only available in macOS 10.15 or newer
4 | #if TESTABLE
5 |
6 | protocol AxtNode: AxtElement {
| `- note: add @available attribute to enclosing protocol
7 | var nodeId: UUID { get }
8 | var getRoot: () -> Axt { get }
9 | var rootDidChange: AnyPublisher<Void, Never> { get }
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:33: error: 'filter' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:57:56: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
54 | }
55 |
56 | public func waitForCondition(timeout: TimeInterval, condition: @escaping () -> Bool) async throws {
| `- note: add @available attribute to enclosing instance method
57 | try await rootDidChange.filter { condition() }.firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:61:43: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:62:14: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .firstValue(timeout: timeout)
64 | return makeNode(nodeId: axt.nodeId)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:63:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
58 | }
59 |
60 | public func waitForElement(id: String, timeout: TimeInterval) async throws -> AxtElement {
| `- note: add @available attribute to enclosing instance method
61 | let axt = try await rootDidChange.map { self.axt }
62 | .compactMap { axt in axt.find(where: { child in child.id == id }) }
63 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
64 | return makeNode(nodeId: axt.nodeId)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:68:37: error: 'map' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
| |- error: 'map' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:69:14: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
| |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .firstValue(timeout: timeout)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:70:14: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
65 | }
66 |
67 | public func waitForUpdate(timeout: TimeInterval) async throws {
| `- note: add @available attribute to enclosing instance method
68 | _ = try await rootDidChange.map { self.axt }
69 | .removeDuplicates()
70 | .firstValue(timeout: timeout)
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:48: error: 'compactMap' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:94: error: 'prepend' is only available in macOS 10.15 or newer
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- error: 'prepend' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
<unknown>:0: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
/Users/admin/builder/spi-builder-workspace/Sources/Axt/AxtTest/AxtNode.swift:74:129: warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | }
11 |
12 | extension AxtNode {
| `- note: add @available attribute to enclosing extension
13 | var axt: Axt! {
14 | getRoot().find(where: { $0.nodeId == self.nodeId })
:
71 | }
72 |
73 | public func watchHierarchy() async {
| `- note: add @available attribute to enclosing instance method
74 | for await description in rootDidChange.compactMap({ self.axt?.describeHierarchy() }).prepend([axt.describeHierarchy()]).values {
| |- warning: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | print("────────")
76 | print(description)
BUILD FAILURE 6.1 macosSpm