Build Information
Failed to build AsyncCompatibilityKit, reference 0.1.2 (c69c36), with Swift 6.3 for macOS (SPM) on 19 Apr 2026 03:47:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KaiOelfke/AsyncCompatibilityKit.git
Reference: 0.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KaiOelfke/AsyncCompatibilityKit
* tag 0.1.2 -> FETCH_HEAD
HEAD is now at c69c367 Make SwiftUI task modifier cancel the correct task after updates (#3)
Cloned https://github.com/KaiOelfke/AsyncCompatibilityKit.git
Revision (git rev-parse @):
c69c367042586a55977407bbca548f6867640bd5
SUCCESS checkout https://github.com/KaiOelfke/AsyncCompatibilityKit.git at 0.1.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "asynccompatibilitykit",
"name": "AsyncCompatibilityKit",
"url": "https://github.com/KaiOelfke/AsyncCompatibilityKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncCompatibilityKit",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/KaiOelfke/AsyncCompatibilityKit.git
[1/44] Fetching asynccompatibilitykit
Fetched https://github.com/KaiOelfke/AsyncCompatibilityKit.git from cache (0.63s)
Creating working copy for https://github.com/KaiOelfke/AsyncCompatibilityKit.git
Working copy of https://github.com/KaiOelfke/AsyncCompatibilityKit.git resolved at 0.1.2 (c69c367)
warning: '.resolve-product-dependencies': dependency 'asynccompatibilitykit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/KaiOelfke/AsyncCompatibilityKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module AsyncCompatibilityKit
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:15:17: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
13 | /// The stream will yield each output value produced by the
14 | /// publisher and will finish once the publisher completes.
15 | var values: AsyncThrowingStream<Output, Error> {
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
16 | AsyncThrowingStream { continuation in
17 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:10:18: error: 'Publisher' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:46:17: error: 'AsyncStream' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
44 | /// stream will yield each output value produced by the
45 | /// publisher and will finish once the publisher completes.
46 | var values: AsyncStream<Output> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
47 | AsyncStream { continuation in
48 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:41:18: error: 'Publisher' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:18:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:20:15: error: 'View' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
21 | modifier(TaskModifier(
22 | priority: priority,
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:29:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
30 | var action: () async -> Void
31 |
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:32:30: error: 'Task' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
31 |
32 | @State private var task: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:32:6: error: 'State' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
31 |
32 | @State private var task: Task<Void, Never>?
| `- error: 'State' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:34:41: error: 'View' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
[4/6] Compiling AsyncCompatibilityKit URLSession+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift:29:26: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)' [#DeprecatedDeclaration]
27 | let onCancel = { dataTask?.cancel() }
28 |
29 | return try await withTaskCancellationHandler(
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)' [#DeprecatedDeclaration]
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
30 | handler: {
31 | onCancel()
/Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift:29:26: error: 'withTaskCancellationHandler(handler:operation:)' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension URLSession {
| `- note: add '@available' attribute to enclosing extension
11 | /// Start a data task with a URL using async/await.
12 | /// - parameter url: The URL to send a request to.
:
23 | /// as well as a `URLResponse` representing the server's response.
24 | /// - throws: Any error encountered while performing the data task.
25 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add '@available' attribute to enclosing instance method
26 | var dataTask: URLSessionDataTask?
27 | let onCancel = { dataTask?.cancel() }
28 |
29 | return try await withTaskCancellationHandler(
| |- error: 'withTaskCancellationHandler(handler:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | handler: {
31 | onCancel()
/Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift:34:27: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension URLSession {
| `- note: add '@available' attribute to enclosing extension
11 | /// Start a data task with a URL using async/await.
12 | /// - parameter url: The URL to send a request to.
:
23 | /// as well as a `URLResponse` representing the server's response.
24 | /// - throws: Any error encountered while performing the data task.
25 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add '@available' attribute to enclosing instance method
26 | var dataTask: URLSessionDataTask?
27 | let onCancel = { dataTask?.cancel() }
:
32 | },
33 | operation: {
34 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | dataTask = self.dataTask(with: request) { data, response, error in
36 | guard let data = data, let response = response else {
/Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift:34:60: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift:34:59: note: expanded code originates here
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension URLSession {
| `- note: add '@available' attribute to enclosing extension
11 | /// Start a data task with a URL using async/await.
12 | /// - parameter url: The URL to send a request to.
:
23 | /// as well as a `URLResponse` representing the server's response.
24 | /// - throws: Any error encountered while performing the data task.
25 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add '@available' attribute to enclosing instance method
26 | var dataTask: URLSessionDataTask?
27 | let onCancel = { dataTask?.cancel() }
:
32 | },
33 | operation: {
34 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/URLSession+Async.swift
|32 |
|33 |
|34 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------
35 | dataTask = self.dataTask(with: request) { data, response, error in
36 | guard let data = data, let response = response else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[5/6] Compiling AsyncCompatibilityKit Publisher+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:15:17: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
13 | /// The stream will yield each output value produced by the
14 | /// publisher and will finish once the publisher completes.
15 | var values: AsyncThrowingStream<Output, Error> {
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
16 | AsyncThrowingStream { continuation in
17 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:10:18: error: 'Publisher' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:46:17: error: 'AsyncStream' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
44 | /// stream will yield each output value produced by the
45 | /// publisher and will finish once the publisher completes.
46 | var values: AsyncStream<Output> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
47 | AsyncStream { continuation in
48 | var cancellable: AnyCancellable?
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:41:18: error: 'Publisher' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| | `- error: 'Publisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:17:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
13 | /// The stream will yield each output value produced by the
14 | /// publisher and will finish once the publisher completes.
15 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add '@available' attribute to enclosing property
16 | AsyncThrowingStream { continuation in
17 | var cancellable: AnyCancellable?
| |- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | let onTermination = { cancellable?.cancel() }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:16:9: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
13 | /// The stream will yield each output value produced by the
14 | /// publisher and will finish once the publisher completes.
15 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add '@available' attribute to enclosing property
16 | AsyncThrowingStream { continuation in
| |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | var cancellable: AnyCancellable?
18 | let onTermination = { cancellable?.cancel() }
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:24:27: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension Publisher {
| `- note: add '@available' attribute to enclosing extension
11 | /// Convert this publisher into an `AsyncThrowingStream` that
12 | /// can be iterated over asynchronously using `for try await`.
13 | /// The stream will yield each output value produced by the
14 | /// publisher and will finish once the publisher completes.
15 | var values: AsyncThrowingStream<Output, Error> {
| `- note: add '@available' attribute to enclosing property
16 | AsyncThrowingStream { continuation in
17 | var cancellable: AnyCancellable?
:
22 | }
23 |
24 | cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | receiveCompletion: { completion in
26 | switch completion {
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:48:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
44 | /// stream will yield each output value produced by the
45 | /// publisher and will finish once the publisher completes.
46 | var values: AsyncStream<Output> {
| `- note: add '@available' attribute to enclosing property
47 | AsyncStream { continuation in
48 | var cancellable: AnyCancellable?
| |- error: 'AnyCancellable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | let onTermination = { cancellable?.cancel() }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:47:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
44 | /// stream will yield each output value produced by the
45 | /// publisher and will finish once the publisher completes.
46 | var values: AsyncStream<Output> {
| `- note: add '@available' attribute to enclosing property
47 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | var cancellable: AnyCancellable?
49 | let onTermination = { cancellable?.cancel() }
/Users/admin/builder/spi-builder-workspace/Sources/Publisher+Async.swift:55:27: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
39 |
40 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
41 | public extension Publisher where Failure == Never {
| `- note: add '@available' attribute to enclosing extension
42 | /// Convert this publisher into an `AsyncStream` that can
43 | /// be iterated over asynchronously using `for await`. The
44 | /// stream will yield each output value produced by the
45 | /// publisher and will finish once the publisher completes.
46 | var values: AsyncStream<Output> {
| `- note: add '@available' attribute to enclosing property
47 | AsyncStream { continuation in
48 | var cancellable: AnyCancellable?
:
53 | }
54 |
55 | cancellable = sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | receiveCompletion: { _ in
57 | continuation.finish()
[6/6] Compiling AsyncCompatibilityKit View+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:18:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:20:15: error: 'View' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
21 | modifier(TaskModifier(
22 | priority: priority,
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:29:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
30 | var action: () async -> Void
31 |
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:32:30: error: 'Task' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
31 |
32 | @State private var task: Task<Void, Never>?
| `- error: 'Task' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:32:6: error: 'State' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
31 |
32 | @State private var task: Task<Void, Never>?
| `- error: 'State' is only available in macOS 10.15 or newer
33 |
34 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:34:41: error: 'View' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:21:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
21 | modifier(TaskModifier(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
22 | priority: priority,
23 | action: action
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:21:9: error: 'modifier' is only available in macOS 10.15 or newer
8 |
9 | @available(iOS, deprecated: 15.0, message: "AsyncCompatibilityKit is only useful when targeting iOS versions earlier than 15")
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Attach an async task to this view, which will be performed
12 | /// when the view first appears, and cancelled if the view
:
15 | /// task should have.
16 | /// - parameter action: The async action that the task should run.
17 | func task(
| `- note: add '@available' attribute to enclosing instance method
18 | priority: TaskPriority = .userInitiated,
19 | _ action: @escaping () async -> Void
20 | ) -> some View {
21 | modifier(TaskModifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | priority: priority,
23 | action: action
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:36:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | task = Task(priority: priority) {
38 | await action()
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:37:17: error: setter for 'task' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
37 | task = Task(priority: priority) {
| |- error: setter for 'task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | await action()
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:37:24: error: 'Task' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
37 | task = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | await action()
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:37:24: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
37 | task = Task(priority: priority) {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | await action()
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:41:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
:
39 | }
40 | }
41 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | task?.cancel()
43 | task = nil
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:42:23: error: 'cancel()' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
:
40 | }
41 | .onDisappear {
42 | task?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | task = nil
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/View+Async.swift:43:17: error: setter for 'task' is only available in macOS 10.15 or newer
26 | }
27 |
28 | private struct TaskModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
29 | var priority: TaskPriority
30 | var action: () async -> Void
:
32 | @State private var task: Task<Void, Never>?
33 |
34 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
35 | content
36 | .onAppear {
:
41 | .onDisappear {
42 | task?.cancel()
43 | task = nil
| |- error: setter for 'task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
BUILD FAILURE 6.3 macosSpm