The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FadeInText, reference main (2ae7a9), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 22:46:05 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/juyan/swiftui-fadein-text.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/juyan/swiftui-fadein-text
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2ae7a97 Update README and preview
Cloned https://github.com/juyan/swiftui-fadein-text.git
Revision (git rev-parse @):
2ae7a97e80d19adc0909209003e24bdfe34a81e0
SUCCESS checkout https://github.com/juyan/swiftui-fadein-text.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/juyan/swiftui-fadein-text.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/11] Compiling FadeInText DefaultTokenizer.swift
[4/11] Compiling FadeInText Tokenizer.swift
[5/11] Compiling FadeInText Interpolator.swift
[6/11] Compiling FadeInText EaseOutInterpolator.swift
[7/11] Compiling FadeInText PreviewAssets.swift
[8/11] Compiling FadeInText LinearInterpolator.swift
[9/11] Compiling FadeInText FadeInTextController.swift
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:9:24: error: 'AttributedString' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
   |                        `- error: 'AttributedString' is only available in macOS 12 or newer
10 |
11 |   private let color: UIColor
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:9:4: error: 'Published' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
   |    `- error: 'Published' is only available in macOS 10.15 or newer
10 |
11 |   private let color: UIColor
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:11:22: error: cannot find type 'UIColor' in scope
 9 |   @Published var text: AttributedString
10 |
11 |   private let color: UIColor
   |                      `- error: cannot find type 'UIColor' in scope
12 |   private let tokenizer: Tokenizer
13 |   private let rawText: String
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:16:28: error: 'CADisplayLink' is only available in macOS 14.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
14 |   private let interpolator: Interpolator
15 |
16 |   private var displayLink: CADisplayLink?
   |                            `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
17 |   private var startTime: Double?
18 |   private var chunks: [String] = []
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:20:32: error: 'Color' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
18 |   private var chunks: [String] = []
19 |
20 |   init(rawText: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |   |                            `- error: 'Color' is only available in macOS 10.15 or newer
   |   `- note: add @available attribute to enclosing initializer
21 |     self.color = UIColor(color)
22 |     let str = AttributedString(stringLiteral: rawText)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:41:33: error: 'CADisplayLink' is only available in macOS 14.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
39 |
40 |   @objc
41 |   private func onFrameUpdate(_: CADisplayLink) {
   |                |                `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
   |                `- note: add @available attribute to enclosing instance method
42 |     guard let startTime, !self.chunks.isEmpty else {
43 |       tearDownDisplayLink()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:8:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              |                     `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
<unknown>:0: error: cannot convert value of type 'KeyPath<FadeInTextController, AttributedString>' to expected argument type 'ReferenceWritableKeyPath<FadeInTextController, AttributedString>'
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:21:18: error: cannot find 'UIColor' in scope
19 |
20 |   init(rawText: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
21 |     self.color = UIColor(color)
   |                  `- error: cannot find 'UIColor' in scope
22 |     let str = AttributedString(stringLiteral: rawText)
23 |     let container = AttributeContainer([
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:22:15: error: 'AttributedString' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
18 |   private var chunks: [String] = []
19 |
20 |   init(rawText: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |   `- note: add @available attribute to enclosing initializer
21 |     self.color = UIColor(color)
22 |     let str = AttributedString(stringLiteral: rawText)
   |               |- error: 'AttributedString' is only available in macOS 12 or newer
   |               `- note: add 'if #available' version check
23 |     let container = AttributeContainer([
24 |       NSAttributedString.Key.foregroundColor: self.color.withAlphaComponent(0),
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:22:15: error: 'init(stringLiteral:)' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
18 |   private var chunks: [String] = []
19 |
20 |   init(rawText: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |   `- note: add @available attribute to enclosing initializer
21 |     self.color = UIColor(color)
22 |     let str = AttributedString(stringLiteral: rawText)
   |               |- error: 'init(stringLiteral:)' is only available in macOS 12 or newer
   |               `- note: add 'if #available' version check
23 |     let container = AttributeContainer([
24 |       NSAttributedString.Key.foregroundColor: self.color.withAlphaComponent(0),
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:34:19: error: 'CADisplayLink' is only available in macOS 14.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
30 |   }
31 |
32 |   func startAnimation() {
   |        `- note: add @available attribute to enclosing instance method
33 |     chunks = tokenizer.chunks(text: rawText)
34 |     displayLink = CADisplayLink(target: self, selector: #selector(onFrameUpdate))
   |                   |- error: 'CADisplayLink' is only available in macOS 14.0 or newer
   |                   `- note: add 'if #available' version check
35 |     displayLink?.preferredFrameRateRange = CAFrameRateRange(minimum: 30, maximum: 60, preferred: 60)
36 |     displayLink?.add(to: RunLoop.main, forMode: .common)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:34:19: error: 'init(target:selector:)' is unavailable in macOS
32 |   func startAnimation() {
33 |     chunks = tokenizer.chunks(text: rawText)
34 |     displayLink = CADisplayLink(target: self, selector: #selector(onFrameUpdate))
   |                   `- error: 'init(target:selector:)' is unavailable in macOS
35 |     displayLink?.preferredFrameRateRange = CAFrameRateRange(minimum: 30, maximum: 60, preferred: 60)
36 |     displayLink?.add(to: RunLoop.main, forMode: .common)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h:32:1: note: 'init(target:selector:)' has been explicitly marked unavailable here
 30 |  * For macOS, see NSView/NSWindow/NSScreen.displayLink(withTarget:selector:). */
 31 |
 32 | + (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel
    | `- note: 'init(target:selector:)' has been explicitly marked unavailable here
 33 |     API_UNAVAILABLE(macos);
 34 |
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:35:44: error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
30 |   }
31 |
32 |   func startAnimation() {
   |        `- note: add @available attribute to enclosing instance method
33 |     chunks = tokenizer.chunks(text: rawText)
34 |     displayLink = CADisplayLink(target: self, selector: #selector(onFrameUpdate))
35 |     displayLink?.preferredFrameRateRange = CAFrameRateRange(minimum: 30, maximum: 60, preferred: 60)
   |                                            |- error: 'CAFrameRateRange' is only available in macOS 12.0 or newer
   |                                            `- note: add 'if #available' version check
36 |     displayLink?.add(to: RunLoop.main, forMode: .common)
37 |     startTime = CACurrentMediaTime()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:35:44: error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
30 |   }
31 |
32 |   func startAnimation() {
   |        `- note: add @available attribute to enclosing instance method
33 |     chunks = tokenizer.chunks(text: rawText)
34 |     displayLink = CADisplayLink(target: self, selector: #selector(onFrameUpdate))
35 |     displayLink?.preferredFrameRateRange = CAFrameRateRange(minimum: 30, maximum: 60, preferred: 60)
   |                                            |- error: 'init(minimum:maximum:preferred:)' is only available in macOS 12.0 or newer
   |                                            `- note: add 'if #available' version check
36 |     displayLink?.add(to: RunLoop.main, forMode: .common)
37 |     startTime = CACurrentMediaTime()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:48:25: error: 'AttributedString' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
39 |
40 |   @objc
41 |   private func onFrameUpdate(_: CADisplayLink) {
   |                `- note: add @available attribute to enclosing instance method
42 |     guard let startTime, !self.chunks.isEmpty else {
43 |       tearDownDisplayLink()
   :
46 |     let time = CACurrentMediaTime() - startTime
47 |     let newResult = interpolator.interpolate(currentTime: time, numberOfChunks: chunks.count)
48 |     var updatedString = AttributedString()
   |                         |- error: 'AttributedString' is only available in macOS 12 or newer
   |                         `- note: add 'if #available' version check
49 |     for (i, chunk) in chunks.enumerated() {
50 |       let container = AttributeContainer([
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:48:25: error: 'init()' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
39 |
40 |   @objc
41 |   private func onFrameUpdate(_: CADisplayLink) {
   |                `- note: add @available attribute to enclosing instance method
42 |     guard let startTime, !self.chunks.isEmpty else {
43 |       tearDownDisplayLink()
   :
46 |     let time = CACurrentMediaTime() - startTime
47 |     let newResult = interpolator.interpolate(currentTime: time, numberOfChunks: chunks.count)
48 |     var updatedString = AttributedString()
   |                         |- error: 'init()' is only available in macOS 12 or newer
   |                         `- note: add 'if #available' version check
49 |     for (i, chunk) in chunks.enumerated() {
50 |       let container = AttributeContainer([
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:56:5: error: setter for 'text' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
39 |
40 |   @objc
41 |   private func onFrameUpdate(_: CADisplayLink) {
   |                `- note: add @available attribute to enclosing instance method
42 |     guard let startTime, !self.chunks.isEmpty else {
43 |       tearDownDisplayLink()
   :
54 |       updatedString.append(str)
55 |     }
56 |     text = updatedString
   |     |- error: setter for 'text' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
57 |     if newResult.shouldAnimationFinish {
58 |       tearDownDisplayLink()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Emitting module FadeInText
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:8:4: error: 'StateObject' is only available in macOS 11.0 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
   |    `- error: 'StateObject' is only available in macOS 11.0 or newer
 9 |
10 |   public init(text: String, color: Color) {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:10:36: error: 'Color' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
10 |   public init(text: String, color: Color) {
   |          |                         `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
11 |     self.init(text: text, color: color, tokenizer: DefaultTokenizer(), interpolator: LinearInterpolator(config: .defaultValue))
12 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:14:36: error: 'Color' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
12 |   }
13 |
14 |   public init(text: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |          |                         `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
15 |     _controller = StateObject(
16 |       wrappedValue: FadeInTextController(
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
23 |   }
24 |
25 |   public var body: some View {
   |              |          `- error: 'View' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing property
26 |     Text(controller.text)
27 |       .onAppear(perform: {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:38:6: error: 'State' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
   |      `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:40:20: error: 'View' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:62:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
60 |   }
61 |
62 |   #Preview("English") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 |     ControlledView(
64 |       text: "Hello! Welcome to FadeInText. The text will fade in smoothly. You are able to tweak the fade in duration by passing a configuration. Enjoy the animation.",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:69:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
67 |   }
68 |
69 |   #Preview("English-Slow") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 |     ControlledView(
71 |       text: "Hello! Welcome to FadeInText. The text will fade in smoothly. You are able to tweak the fade in duration by passing a configuration. Enjoy the animation.",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:76:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
74 |   }
75 |
76 |   #Preview("English-EaseOut") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 |     ControlledView(
78 |       text: longEnglishText,
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:83:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
81 |   }
82 |
83 |   #Preview("Chinese") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
84 |     ControlledView(
85 |       text: "壬戌之秋,七月既望,苏子与客泛舟游于赤壁之下。清风徐来,水波不兴。举酒属客,诵明月之诗,歌窈窕之章。少焉,月出于东山之上,徘徊于斗牛之间。白露横江,水光接天。纵一苇之所如,凌万顷之茫然。浩浩乎如冯虚御风,而不知其所止;飘飘乎如遗世独立,羽化而登仙。",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:9:24: error: 'AttributedString' is only available in macOS 12 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
   |                        `- error: 'AttributedString' is only available in macOS 12 or newer
10 |
11 |   private let color: UIColor
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:9:4: error: 'Published' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
   |    `- error: 'Published' is only available in macOS 10.15 or newer
10 |
11 |   private let color: UIColor
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:11:22: error: cannot find type 'UIColor' in scope
 9 |   @Published var text: AttributedString
10 |
11 |   private let color: UIColor
   |                      `- error: cannot find type 'UIColor' in scope
12 |   private let tokenizer: Tokenizer
13 |   private let rawText: String
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:16:28: error: 'CADisplayLink' is only available in macOS 14.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
14 |   private let interpolator: Interpolator
15 |
16 |   private var displayLink: CADisplayLink?
   |                            `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
17 |   private var startTime: Double?
18 |   private var chunks: [String] = []
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:20:32: error: 'Color' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
18 |   private var chunks: [String] = []
19 |
20 |   init(rawText: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |   |                            `- error: 'Color' is only available in macOS 10.15 or newer
   |   `- note: add @available attribute to enclosing initializer
21 |     self.color = UIColor(color)
22 |     let str = AttributedString(stringLiteral: rawText)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:41:33: error: 'CADisplayLink' is only available in macOS 14.0 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
   :
39 |
40 |   @objc
41 |   private func onFrameUpdate(_: CADisplayLink) {
   |                |                `- error: 'CADisplayLink' is only available in macOS 14.0 or newer
   |                `- note: add @available attribute to enclosing instance method
42 |     guard let startTime, !self.chunks.isEmpty else {
43 |       tearDownDisplayLink()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInTextController.swift:8:36: error: 'ObservableObject' is only available in macOS 10.15 or newer
 6 | import SwiftUI
 7 |
 8 | public class FadeInTextController: ObservableObject {
   |              |                     `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing class
 9 |   @Published var text: AttributedString
10 |
[11/11] Compiling FadeInText FadeInText.swift
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:8:4: error: 'StateObject' is only available in macOS 11.0 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
   |    `- error: 'StateObject' is only available in macOS 11.0 or newer
 9 |
10 |   public init(text: String, color: Color) {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:10:36: error: 'Color' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
10 |   public init(text: String, color: Color) {
   |          |                         `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
11 |     self.init(text: text, color: color, tokenizer: DefaultTokenizer(), interpolator: LinearInterpolator(config: .defaultValue))
12 |   }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:14:36: error: 'Color' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
12 |   }
13 |
14 |   public init(text: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |          |                         `- error: 'Color' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing initializer
15 |     _controller = StateObject(
16 |       wrappedValue: FadeInTextController(
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:25:25: error: 'View' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
23 |   }
24 |
25 |   public var body: some View {
   |              |          `- error: 'View' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing property
26 |     Text(controller.text)
27 |       .onAppear(perform: {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:38:6: error: 'State' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
   |      `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:40:20: error: 'View' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:62:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
60 |   }
61 |
62 |   #Preview("English") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 |     ControlledView(
64 |       text: "Hello! Welcome to FadeInText. The text will fade in smoothly. You are able to tweak the fade in duration by passing a configuration. Enjoy the animation.",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:69:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
67 |   }
68 |
69 |   #Preview("English-Slow") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 |     ControlledView(
71 |       text: "Hello! Welcome to FadeInText. The text will fade in smoothly. You are able to tweak the fade in duration by passing a configuration. Enjoy the animation.",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:76:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
74 |   }
75 |
76 |   #Preview("English-EaseOut") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 |     ControlledView(
78 |       text: longEnglishText,
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:83:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
81 |   }
82 |
83 |   #Preview("Chinese") {
   |    `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
84 |     ControlledView(
85 |       text: "壬戌之秋,七月既望,苏子与客泛舟游于赤壁之下。清风徐来,水波不兴。举酒属客,诵明月之诗,歌窈窕之章。少焉,月出于东山之上,徘徊于斗牛之间。白露横江,水光接天。纵一苇之所如,凌万顷之茫然。浩浩乎如冯虚御风,而不知其所止;飘飘乎如遗世独立,羽化而登仙。",
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:15:19: error: 'StateObject' is only available in macOS 11.0 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
12 |   }
13 |
14 |   public init(text: String, color: Color, tokenizer: Tokenizer, interpolator: Interpolator) {
   |          `- note: add @available attribute to enclosing initializer
15 |     _controller = StateObject(
   |                   |- error: 'StateObject' is only available in macOS 11.0 or newer
   |                   `- note: add 'if #available' version check
16 |       wrappedValue: FadeInTextController(
17 |         rawText: text,
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:26:5: error: 'Text' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
23 |   }
24 |
25 |   public var body: some View {
   |              `- note: add @available attribute to enclosing property
26 |     Text(controller.text)
   |     |- error: 'Text' is only available in macOS 10.15 or newer
   |     `- note: add 'if #available' version check
27 |       .onAppear(perform: {
28 |         controller.startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:26:5: error: 'init(_:)' is only available in macOS 12.0 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
23 |   }
24 |
25 |   public var body: some View {
   |              `- note: add @available attribute to enclosing property
26 |     Text(controller.text)
   |     |- error: 'init(_:)' is only available in macOS 12.0 or newer
   |     `- note: add 'if #available' version check
27 |       .onAppear(perform: {
28 |         controller.startAnimation()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:27:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
 5 | import SwiftUI
 6 |
 7 | public struct FadeInText: View {
   |               `- note: add @available attribute to enclosing struct
 8 |   @StateObject var controller: FadeInTextController
 9 |
   :
23 |   }
24 |
25 |   public var body: some View {
   |              `- note: add @available attribute to enclosing property
26 |     Text(controller.text)
27 |       .onAppear(perform: {
   |        |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
   |        `- note: add 'if #available' version check
28 |         controller.startAnimation()
29 |       })
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:7: error: 'ScrollView' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
   |       |- error: 'ScrollView' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
42 |         VStack {
43 |           if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:7: error: 'init(_:content:)' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
   |       |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
   |       `- note: add 'if #available' version check
42 |         VStack {
43 |           if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:42:9: error: 'VStack' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   |         |- error: 'VStack' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
43 |           if show {
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:44:44: error: 'black' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
43 |           if show {
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
   |                                            |- error: 'black' is only available in macOS 10.15 or newer
   |                                            `- note: add 'if #available' version check
45 |               .multilineTextAlignment(.leading)
46 |               .lineSpacing(6)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:45:16: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
43 |           if show {
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
45 |               .multilineTextAlignment(.leading)
   |                |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
46 |               .lineSpacing(6)
47 |               .font(.title2)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:46:16: error: 'lineSpacing' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
45 |               .multilineTextAlignment(.leading)
46 |               .lineSpacing(6)
   |                |- error: 'lineSpacing' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
47 |               .font(.title2)
48 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:47:16: error: 'font' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
45 |               .multilineTextAlignment(.leading)
46 |               .lineSpacing(6)
47 |               .font(.title2)
   |                |- error: 'font' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
48 |           }
49 |           Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:47:22: error: 'title2' is only available in macOS 11.0 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
45 |               .multilineTextAlignment(.leading)
46 |               .lineSpacing(6)
47 |               .font(.title2)
   |                      |- error: 'title2' is only available in macOS 11.0 or newer
   |                      `- note: add 'if #available' version check
48 |           }
49 |           Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:43:19: error: 'buildIf' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
43 |           if show {
   |                   |- error: 'buildIf' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
45 |               .multilineTextAlignment(.leading)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:48:11: error: 'buildIf' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
46 |               .lineSpacing(6)
47 |               .font(.title2)
48 |           }
   |           |- error: 'buildIf' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
49 |           Spacer()
50 |         }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:49:11: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
47 |               .font(.title2)
48 |           }
49 |           Spacer()
   |           |- warning: conformance of 'Spacer' 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
50 |         }
51 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:49:11: error: 'Spacer' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
47 |               .font(.title2)
48 |           }
49 |           Spacer()
   |           |- error: 'Spacer' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
50 |         }
51 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:42:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   |                |- warning: conformance of 'Optional<Wrapped>' 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
43 |           if show {
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:42:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   |                |- warning: conformance of 'Spacer' 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
43 |           if show {
44 |             FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:51:10: error: 'padding' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
49 |           Spacer()
50 |         }
51 |         .padding(16)
   |          |- error: 'padding' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
52 |         .onAppear(perform: {
53 |           Task {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:52:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
50 |         }
51 |         .padding(16)
52 |         .onAppear(perform: {
   |          |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
53 |           Task {
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:53:11: error: 'Task' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
51 |         .padding(16)
52 |         .onAppear(perform: {
53 |           Task {
   |           |- error: 'Task' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
55 |             self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:53:11: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
51 |         .padding(16)
52 |         .onAppear(perform: {
53 |           Task {
   |           |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
55 |             self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:54:23: error: 'Task' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
52 |         .onAppear(perform: {
53 |           Task {
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
   |                       |- error: 'Task' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
55 |             self.show = true
56 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:54:28: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
52 |         .onAppear(perform: {
53 |           Task {
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
   |                            |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
   |                            `- note: add 'if #available' version check
55 |             self.show = true
56 |           }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:55:13: error: setter for 'show' is only available in macOS 10.15 or newer
33 | #if DEBUG
34 |
35 |   struct ControlledView: View {
   |          `- note: add @available attribute to enclosing struct
36 |     let text: String
37 |     let interpolator: Interpolator
38 |     @State var show = false
39 |
40 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
41 |       ScrollView {
42 |         VStack {
   :
53 |           Task {
54 |             try await Task.sleep(nanoseconds: 2_000_000_000)
55 |             self.show = true
   |             |- error: setter for 'show' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
56 |           }
57 |         })
BUILD FAILURE 6.2 macosSpm