Build Information
Failed to build FadeInText, reference v1.1.1 (fd154a
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:23:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/juyan/swiftui-fadein-text.git
Reference: v1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/juyan/swiftui-fadein-text
* tag v1.1.1 -> FETCH_HEAD
HEAD is now at fd154ac Fix tokenizer bug
Cloned https://github.com/juyan/swiftui-fadein-text.git
Revision (git rev-parse @):
fd154aca89194c9e59acdc2b456c630ce7c245e8
SUCCESS checkout https://github.com/juyan/swiftui-fadein-text.git at v1.1.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/juyan/swiftui-fadein-text.git
https://github.com/juyan/swiftui-fadein-text.git
{
"dependencies" : [
],
"manifest_display_name" : "FadeInText",
"name" : "FadeInText",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "FadeInText",
"targets" : [
"FadeInText"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FadeInTextTests",
"module_type" : "SwiftTarget",
"name" : "FadeInTextTests",
"path" : "Tests/FadeInTextTests",
"sources" : [
"DefaultTokenizerTests.swift",
"LinearInterpolatorTests.swift"
],
"target_dependencies" : [
"FadeInText"
],
"type" : "test"
},
{
"c99name" : "FadeInText",
"module_type" : "SwiftTarget",
"name" : "FadeInText",
"path" : "Sources/FadeInText",
"product_memberships" : [
"FadeInText"
],
"sources" : [
"FadeInText.swift",
"FadeInTextController.swift",
"Interpolator/EaseOutInterpolator.swift",
"Interpolator/Interpolator.swift",
"Interpolator/LinearInterpolator.swift",
"Tokenizer/DefaultTokenizer.swift",
"Tokenizer/Tokenizer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/10] Compiling FadeInText Tokenizer.swift
[4/10] Compiling FadeInText LinearInterpolator.swift
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/Interpolator/LinearInterpolator.swift:38:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LinearInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public struct LinearInterpolatorConfig {
| `- note: consider making struct 'LinearInterpolatorConfig' conform to the 'Sendable' protocol
33 | /// How long until a chunk of text is fully faded in
34 | public let fadeInDuration: Double
:
36 | public let appearanceDuration: Double
37 |
38 | static let defaultValue = LinearInterpolatorConfig(fadeInDuration: 0.3, appearanceDuration: 1.0)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LinearInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | }
40 |
[5/10] Compiling FadeInText DefaultTokenizer.swift
[6/10] Compiling FadeInText Interpolator.swift
[7/10] Compiling FadeInText EaseOutInterpolator.swift
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/Interpolator/EaseOutInterpolator.swift:44:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'EaseOutInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | public struct EaseOutInterpolatorConfig {
| `- note: consider making struct 'EaseOutInterpolatorConfig' conform to the 'Sendable' protocol
39 | /// How long until a chunk of text is fully faded in
40 | public let fadeInDuration: Double
:
42 | public let appearanceDuration: Double
43 |
44 | static let defaultValue = EaseOutInterpolatorConfig(fadeInDuration: 0.3, appearanceDuration: 1.0)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'EaseOutInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[8/10] 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()
<unknown>:0: error: cannot convert value of type 'any KeyPath<FadeInTextController, AttributedString> & Sendable' to expected argument type 'ReferenceWritableKeyPath<FadeInTextController, AttributedString>'
/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 |
/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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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)
[9/10] 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 | VStack {
42 | if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:58:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
56 | }
57 |
58 | #Preview("English") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
59 | ControlledView(
60 | 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:65:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 | }
64 |
65 | #Preview("English-Slow") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 | ControlledView(
67 | 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:72:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | #Preview("English-EaseOut") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
73 | ControlledView(
74 | 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:79:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview("Chinese") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | ControlledView(
81 | 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 |
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/Interpolator/EaseOutInterpolator.swift:44:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'EaseOutInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
36 | }
37 |
38 | public struct EaseOutInterpolatorConfig {
| `- note: consider making struct 'EaseOutInterpolatorConfig' conform to the 'Sendable' protocol
39 | /// How long until a chunk of text is fully faded in
40 | public let fadeInDuration: Double
:
42 | public let appearanceDuration: Double
43 |
44 | static let defaultValue = EaseOutInterpolatorConfig(fadeInDuration: 0.3, appearanceDuration: 1.0)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'EaseOutInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/Interpolator/LinearInterpolator.swift:38:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LinearInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
30 | }
31 |
32 | public struct LinearInterpolatorConfig {
| `- note: consider making struct 'LinearInterpolatorConfig' conform to the 'Sendable' protocol
33 | /// How long until a chunk of text is fully faded in
34 | public let fadeInDuration: Double
:
36 | public let appearanceDuration: Double
37 |
38 | static let defaultValue = LinearInterpolatorConfig(fadeInDuration: 0.3, appearanceDuration: 1.0)
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LinearInterpolatorConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | }
40 |
[10/10] 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 | VStack {
42 | if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:58:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
56 | }
57 |
58 | #Preview("English") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
59 | ControlledView(
60 | 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:65:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 | }
64 |
65 | #Preview("English-Slow") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 | ControlledView(
67 | 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:72:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | #Preview("English-EaseOut") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
73 | ControlledView(
74 | 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:79:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview("Chinese") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | ControlledView(
81 | 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: '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 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:43:42: 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 | VStack {
42 | if show {
43 | 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
44 | .font(.title2)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:44:14: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:44:20: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
45 | }
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:42:17: 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 | VStack {
42 | if show {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:45:9: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
45 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:46:9: 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 | VStack {
42 | if show {
:
44 | .font(.title2)
45 | }
46 | 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
47 | }
48 | .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:46:9: 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 | VStack {
42 | if show {
:
44 | .font(.title2)
45 | }
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:14: 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 | 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
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:14: 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 | 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
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:48:8: 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 | VStack {
42 | if show {
:
46 | Spacer()
47 | }
48 | .padding(16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .onAppear(perform: {
50 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:49:8: 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 | VStack {
42 | if show {
:
47 | }
48 | .padding(16)
49 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | Task {
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:50:9: 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 | VStack {
42 | if show {
:
48 | .padding(16)
49 | .onAppear(perform: {
50 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:50:9: 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 | VStack {
42 | if show {
:
48 | .padding(16)
49 | .onAppear(perform: {
50 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:51:21: 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 | VStack {
42 | if show {
:
49 | .onAppear(perform: {
50 | Task {
51 | 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
52 | self.show = true
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:51:26: 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 | VStack {
42 | if show {
:
49 | .onAppear(perform: {
50 | Task {
51 | 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
52 | self.show = true
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:52:11: 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 | VStack {
42 | if show {
:
50 | Task {
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
| |- error: setter for 'show' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | })
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/9] Compiling FadeInText Tokenizer.swift
[3/9] Compiling FadeInText Interpolator.swift
[4/9] Compiling FadeInText LinearInterpolator.swift
[5/9] Compiling FadeInText DefaultTokenizer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling FadeInText EaseOutInterpolator.swift
[7/9] 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 | VStack {
42 | if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:58:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
56 | }
57 |
58 | #Preview("English") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
59 | ControlledView(
60 | 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:65:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 | }
64 |
65 | #Preview("English-Slow") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 | ControlledView(
67 | 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:72:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | #Preview("English-EaseOut") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
73 | ControlledView(
74 | 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:79:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview("Chinese") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | ControlledView(
81 | 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 |
[8/9] 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()
<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: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 |
/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-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.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()
[9/9] 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 | VStack {
42 | if show {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:58:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
56 | }
57 |
58 | #Preview("English") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
59 | ControlledView(
60 | 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:65:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
63 | }
64 |
65 | #Preview("English-Slow") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
66 | ControlledView(
67 | 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:72:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
70 | }
71 |
72 | #Preview("English-EaseOut") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
73 | ControlledView(
74 | 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:79:4: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview("Chinese") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | ControlledView(
81 | 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: '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 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:43:42: 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 | VStack {
42 | if show {
43 | 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
44 | .font(.title2)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:44:14: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:44:20: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
45 | }
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:42:17: 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 | VStack {
42 | if show {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:45:9: 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 | VStack {
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
44 | .font(.title2)
45 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Spacer()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:46:9: 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 | VStack {
42 | if show {
:
44 | .font(.title2)
45 | }
46 | 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
47 | }
48 | .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:46:9: 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 | VStack {
42 | if show {
:
44 | .font(.title2)
45 | }
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 | .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:14: 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 | 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
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:41:14: 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 | 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
42 | if show {
43 | FadeInText(text: text, color: .black, tokenizer: DefaultTokenizer(), interpolator: interpolator)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:48:8: 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 | VStack {
42 | if show {
:
46 | Spacer()
47 | }
48 | .padding(16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .onAppear(perform: {
50 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:49:8: 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 | VStack {
42 | if show {
:
47 | }
48 | .padding(16)
49 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | Task {
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:50:9: 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 | VStack {
42 | if show {
:
48 | .padding(16)
49 | .onAppear(perform: {
50 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:50:9: 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 | VStack {
42 | if show {
:
48 | .padding(16)
49 | .onAppear(perform: {
50 | Task {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:51:21: 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 | VStack {
42 | if show {
:
49 | .onAppear(perform: {
50 | Task {
51 | 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
52 | self.show = true
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:51:26: 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 | VStack {
42 | if show {
:
49 | .onAppear(perform: {
50 | Task {
51 | 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
52 | self.show = true
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/FadeInText/FadeInText.swift:52:11: 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 | VStack {
42 | if show {
:
50 | Task {
51 | try await Task.sleep(nanoseconds: 2_000_000_000)
52 | self.show = true
| |- error: setter for 'show' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | })
BUILD FAILURE 6.1 macosSpm