Build Information
Failed to build GradientMaker, reference main (fda2ed), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 15:17:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dentedpixel/GradientMaker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dentedpixel/GradientMaker
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fda2ed2 Merge branch 'main' of github.com:dentedpixel/GradientMaker
Cloned https://github.com/dentedpixel/GradientMaker.git
Revision (git rev-parse @):
fda2ed20ba7c330e3c1f5a2b437a6abe66f31461
SUCCESS checkout https://github.com/dentedpixel/GradientMaker.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "gradientmaker",
"name": "GradientMaker",
"url": "https://github.com/dentedpixel/GradientMaker.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GradientMaker",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/dentedpixel/GradientMaker.git
[1/100] Fetching gradientmaker
Fetched https://github.com/dentedpixel/GradientMaker.git from cache (0.66s)
Creating working copy for https://github.com/dentedpixel/GradientMaker.git
Working copy of https://github.com/dentedpixel/GradientMaker.git resolved at main (fda2ed2)
warning: '.resolve-product-dependencies': dependency 'gradientmaker' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/dentedpixel/GradientMaker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module GradientMaker
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:13:39: error: cannot find type 'UIColor' in scope
11 | extension Gradient {
12 |
13 | public func value(at: CGFloat) -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 | guard var left = self.stops.first, var right = self.stops.last else { return .magenta }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:11:11: error: 'Gradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension Gradient {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public func value(at: CGFloat) -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:37:11: error: cannot find type 'UIColor' in scope
35 | }
36 |
37 | extension UIColor {
| `- error: cannot find type 'UIColor' in scope
38 | public func blend(with color: UIColor, amt: CGFloat) -> UIColor {
39 | var fromRed :CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:12:31: error: cannot find type 'UIWindow' in scope
10 |
11 | enum ViewUtils {
12 | static var safeKeyWindow: UIWindow? {
| `- error: cannot find type 'UIWindow' in scope
13 | UIApplication.shared.connectedScenes
14 | .filter({$0.activationState == .foregroundActive})
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:21:32: error: cannot find type 'UIView' in scope
19 | }
20 |
21 | static func when(hasChild: UIView, timeout: Double = 10.0, onComplete: @escaping (UIView)->Void) {
| `- error: cannot find type 'UIView' in scope
22 | guard timeout > 0 else { print("ViewUtils.when(hasChild:) timed out!"); return }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:21:87: error: cannot find type 'UIView' in scope
19 | }
20 |
21 | static func when(hasChild: UIView, timeout: Double = 10.0, onComplete: @escaping (UIView)->Void) {
| `- error: cannot find type 'UIView' in scope
22 | guard timeout > 0 else { print("ViewUtils.when(hasChild:) timed out!"); return }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:38:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
37 |
38 | private var cancellable: AnyCancellable? = nil
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
39 | private var pickerView: UIColorPickerViewController?
40 | private var background: UIView?
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:39:29: error: cannot find type 'UIColorPickerViewController' in scope
37 |
38 | private var cancellable: AnyCancellable? = nil
39 | private var pickerView: UIColorPickerViewController?
| `- error: cannot find type 'UIColorPickerViewController' in scope
40 | private var background: UIView?
41 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:40:29: error: cannot find type 'UIView' in scope
38 | private var cancellable: AnyCancellable? = nil
39 | private var pickerView: UIColorPickerViewController?
40 | private var background: UIView?
| `- error: cannot find type 'UIView' in scope
41 |
42 | private var firstViewController: UIViewController? {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:42:38: error: cannot find type 'UIViewController' in scope
40 | private var background: UIView?
41 |
42 | private var firstViewController: UIViewController? {
| `- error: cannot find type 'UIViewController' in scope
43 | guard let root = ViewUtils.safeKeyWindow?.rootViewController else { return nil }
44 | return root.presentedViewController ?? root.navigationController?.topViewController ?? root
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:40: error: cannot find type 'UIViewController' in scope
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| `- error: cannot find type 'UIViewController' in scope
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:72: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
:
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:118: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
:
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:50: error: 'pink' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'pink' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:124:22: error: 'Gradient' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
| `- error: 'Gradient' is only available in macOS 10.15 or newer
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:124:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
| `- error: 'State' is only available in macOS 10.15 or newer
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:126:20: error: 'Gradient' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
| `- error: 'Gradient' is only available in macOS 10.15 or newer
127 |
128 | @State private var startX: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:128:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
127 |
128 | @State private var startX: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:129:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
127 |
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
| `- error: 'State' is only available in macOS 10.15 or newer
130 | @State private var backgroundColor: Color = .pink
131 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:41: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'Color' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'State' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:132:20: error: 'View' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
130 | @State private var backgroundColor: Color = .pink
131 |
132 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
133 |
134 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:173:21: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
| `- error: 'Gradient' is only available in macOS 10.15 or newer
174 | @State var stops: [Gradient.Stop]
175 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:174:24: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
| `- error: 'Gradient' is only available in macOS 10.15 or newer
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:174:6: error: 'State' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
| `- error: 'State' is only available in macOS 10.15 or newer
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:176:25: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
177 | self.stops = stops
178 | self.onUpdate = onUpdate
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:176:63: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
177 | self.stops = stops
178 | self.onUpdate = onUpdate
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:181:27: error: 'View' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:207:31: error: 'View' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
[4/5] Compiling GradientMaker GradientMaker.swift
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:12:31: error: cannot find type 'UIWindow' in scope
10 |
11 | enum ViewUtils {
12 | static var safeKeyWindow: UIWindow? {
| `- error: cannot find type 'UIWindow' in scope
13 | UIApplication.shared.connectedScenes
14 | .filter({$0.activationState == .foregroundActive})
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:21:32: error: cannot find type 'UIView' in scope
19 | }
20 |
21 | static func when(hasChild: UIView, timeout: Double = 10.0, onComplete: @escaping (UIView)->Void) {
| `- error: cannot find type 'UIView' in scope
22 | guard timeout > 0 else { print("ViewUtils.when(hasChild:) timed out!"); return }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:21:87: error: cannot find type 'UIView' in scope
19 | }
20 |
21 | static func when(hasChild: UIView, timeout: Double = 10.0, onComplete: @escaping (UIView)->Void) {
| `- error: cannot find type 'UIView' in scope
22 | guard timeout > 0 else { print("ViewUtils.when(hasChild:) timed out!"); return }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:38:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
37 |
38 | private var cancellable: AnyCancellable? = nil
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
39 | private var pickerView: UIColorPickerViewController?
40 | private var background: UIView?
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:39:29: error: cannot find type 'UIColorPickerViewController' in scope
37 |
38 | private var cancellable: AnyCancellable? = nil
39 | private var pickerView: UIColorPickerViewController?
| `- error: cannot find type 'UIColorPickerViewController' in scope
40 | private var background: UIView?
41 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:40:29: error: cannot find type 'UIView' in scope
38 | private var cancellable: AnyCancellable? = nil
39 | private var pickerView: UIColorPickerViewController?
40 | private var background: UIView?
| `- error: cannot find type 'UIView' in scope
41 |
42 | private var firstViewController: UIViewController? {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:42:38: error: cannot find type 'UIViewController' in scope
40 | private var background: UIView?
41 |
42 | private var firstViewController: UIViewController? {
| `- error: cannot find type 'UIViewController' in scope
43 | guard let root = ViewUtils.safeKeyWindow?.rootViewController else { return nil }
44 | return root.presentedViewController ?? root.navigationController?.topViewController ?? root
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:40: error: cannot find type 'UIViewController' in scope
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| `- error: cannot find type 'UIViewController' in scope
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:72: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
:
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:47:118: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | private class ColorPickerChooser {
| `- note: add '@available' attribute to enclosing class
35 |
36 | internal static var shared = ColorPickerChooser()
:
45 | }
46 |
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:50: error: 'pink' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'pink' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:124:22: error: 'Gradient' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
| `- error: 'Gradient' is only available in macOS 10.15 or newer
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:124:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
| `- error: 'State' is only available in macOS 10.15 or newer
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:126:20: error: 'Gradient' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
| `- error: 'Gradient' is only available in macOS 10.15 or newer
127 |
128 | @State private var startX: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:128:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
126 | let onUpdate: (Gradient.Stop) -> Void
127 |
128 | @State private var startX: CGFloat = 0
| `- error: 'State' is only available in macOS 10.15 or newer
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:129:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
127 |
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
| `- error: 'State' is only available in macOS 10.15 or newer
130 | @State private var backgroundColor: Color = .pink
131 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:41: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'Color' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:130:6: error: 'State' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
128 | @State private var startX: CGFloat = 0
129 | @State private var drag = CGSize.zero
130 | @State private var backgroundColor: Color = .pink
| `- error: 'State' is only available in macOS 10.15 or newer
131 |
132 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:132:20: error: 'View' is only available in macOS 10.15 or newer
121 | }
122 |
123 | struct GradientMakerView: View {
| `- note: add '@available' attribute to enclosing struct
124 | @State var stop: Gradient.Stop
125 |
:
130 | @State private var backgroundColor: Color = .pink
131 |
132 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
133 |
134 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:173:21: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
| `- error: 'Gradient' is only available in macOS 10.15 or newer
174 | @State var stops: [Gradient.Stop]
175 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:174:24: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
| `- error: 'Gradient' is only available in macOS 10.15 or newer
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:174:6: error: 'State' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
| `- error: 'State' is only available in macOS 10.15 or newer
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:176:25: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
177 | self.stops = stops
178 | self.onUpdate = onUpdate
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:176:63: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
177 | self.stops = stops
178 | self.onUpdate = onUpdate
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:181:27: error: 'View' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:207:31: error: 'View' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:13:9: error: cannot find 'UIApplication' in scope
11 | enum ViewUtils {
12 | static var safeKeyWindow: UIWindow? {
13 | UIApplication.shared.connectedScenes
| `- error: cannot find 'UIApplication' in scope
14 | .filter({$0.activationState == .foregroundActive})
15 | .map({$0 as? UIWindowScene})
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:15:26: error: cannot find type 'UIWindowScene' in scope
13 | UIApplication.shared.connectedScenes
14 | .filter({$0.activationState == .foregroundActive})
15 | .map({$0 as? UIWindowScene})
| `- error: cannot find type 'UIWindowScene' in scope
16 | .compactMap({$0})
17 | .first?.windows
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:14:45: error: cannot infer contextual base in reference to member 'foregroundActive'
12 | static var safeKeyWindow: UIWindow? {
13 | UIApplication.shared.connectedScenes
14 | .filter({$0.activationState == .foregroundActive})
| `- error: cannot infer contextual base in reference to member 'foregroundActive'
15 | .map({$0 as? UIWindowScene})
16 | .compactMap({$0})
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:24:82: error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
22 | guard timeout > 0 else { print("ViewUtils.when(hasChild:) timed out!"); return }
23 |
24 | DispatchQueue.main.asyncAfter(deadline: .now() + .leastNonzeroMagnitude) {
| `- error: trailing closure passed to parameter of type 'DispatchWorkItem' that does not accept a closure
25 | if let child = hasChild.subviews.first {
26 | onComplete(child)
Dispatch.DispatchQueue.asyncAfter:3:15: note: 'asyncAfter(deadline:execute:)' declared here
1 | class DispatchQueue {
2 | @available(macOS 10.10, iOS 8.0, *)
3 | public func asyncAfter(deadline: DispatchTime, execute: DispatchWorkItem)}
| `- note: 'asyncAfter(deadline:execute:)' declared here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:44:45: error: no '??' candidates produce the expected contextual result type '_'
42 | private var firstViewController: UIViewController? {
43 | guard let root = ViewUtils.safeKeyWindow?.rootViewController else { return nil }
44 | return root.presentedViewController ?? root.navigationController?.topViewController ?? root
| `- error: no '??' candidates produce the expected contextual result type '_'
45 | }
46 |
Swift.??:1:13: note: '??' produces '_', not the expected contextual result type '_'
1 | public func ?? <T>(optional: consuming T?, defaultValue: @autoclosure () throws -> T) rethrows -> T where T : ~Copyable
| |- note: '??' produces '_', not the expected contextual result type '_'
| |- note: '??' produces '_', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| `- note: '??' produces 'T?', not the expected contextual result type '_'
Swift.??:1:13: note: '??' produces 'T?', not the expected contextual result type '_'
1 | public func ?? <T>(optional: consuming T?, defaultValue: @autoclosure () throws -> T?) rethrows -> T? where T : ~Copyable
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| |- note: '??' produces 'T?', not the expected contextual result type '_'
| `- note: '??' produces 'T?', not the expected contextual result type '_'
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:49:22: error: cannot find 'UIColorPickerViewController' in scope
47 | public func presentColorPicker(on: UIViewController? = nil, color: Color, offsetY: CGFloat, onUpdate: @escaping (Color) -> Void) {
48 | guard pickerView == nil else { closeChooser(); return }
49 | let picker = UIColorPickerViewController()
| `- error: cannot find 'UIColorPickerViewController' in scope
50 | self.pickerView = picker
51 | picker.selectedColor = UIColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:51:32: error: cannot find 'UIColor' in scope
49 | let picker = UIColorPickerViewController()
50 | self.pickerView = picker
51 | picker.selectedColor = UIColor(color)
| `- error: cannot find 'UIColor' in scope
52 |
53 | cancellable = picker.publisher(for: \.selectedColor)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:53:45: error: cannot infer key path type from context; consider explicitly specifying a root type
51 | picker.selectedColor = UIColor(color)
52 |
53 | cancellable = picker.publisher(for: \.selectedColor)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
54 | .sink { color in
55 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:78:30: error: cannot find 'UIView' in scope
76 |
77 | // background
78 | let background = UIView()
| `- error: cannot find 'UIView' in scope
79 | background.backgroundColor = .systemGray
80 | background.layer.borderWidth = 2
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:81:44: error: cannot find 'UIColor' in scope
79 | background.backgroundColor = .systemGray
80 | background.layer.borderWidth = 2
81 | background.layer.borderColor = UIColor.systemGray.cgColor
| `- error: cannot find 'UIColor' in scope
82 | background.layer.cornerRadius = 20
83 | background.layer.masksToBounds = true
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:92:31: error: cannot find 'UITapGestureRecognizer' in scope
90 | background.bottomAnchor.constraint(equalTo: picker.view.bottomAnchor).isActive = true
91 | background.isUserInteractionEnabled = true
92 | let captureTaps = UITapGestureRecognizer(target: self, action: #selector(self.closeChooser))
| `- error: cannot find 'UITapGestureRecognizer' in scope
93 | captureTaps.cancelsTouchesInView = true
94 | background.addGestureRecognizer(captureTaps)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:97:31: error: cannot find 'UIButton' in scope
95 | self.background = background
96 |
97 | let closeButton = UIButton(type: .close)
| `- error: cannot find 'UIButton' in scope
98 | closeButton.isUserInteractionEnabled = true
99 | closeButton.backgroundColor = .systemBackground
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:74:60: error: cannot infer type of closure parameter 'view' without a type annotation
72 | }
73 |
74 | ViewUtils.when(hasChild: picker.view) {[weak self] view in
| `- error: cannot infer type of closure parameter 'view' without a type annotation
75 | guard let self = self else { return }
76 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:160:29: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
158 | }
159 | ).onTapGesture {
160 | let y = geometry.frame(in: .global).minY
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
161 | ColorPickerChooser.shared.presentColorPicker(color: stop.color, offsetY: y) { color in
162 | stop.color = color
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:177:9: error: setter for 'stops' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
174 | @State var stops: [Gradient.Stop]
175 |
176 | public init(stops: [Gradient.Stop], onUpdate: @escaping ([Gradient.Stop]) -> Void) {
| `- note: add '@available' attribute to enclosing initializer
177 | self.stops = stops
| |- error: setter for 'stops' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | self.onUpdate = onUpdate
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:182:24: error: 'Gradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | VStack {
184 | // let arrStr = stops.map{ "\($0.location)" }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:183:9: error: 'VStack' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | // let arrStr = stops.map{ "\($0.location)" }
185 | // let joinedString = arrStr.joined(separator: ",")
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:187:13: error: 'ZStack' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
185 | // let joinedString = arrStr.joined(separator: ",")
186 | // Text("\(joinedString)")
187 | ZStack(alignment: .topLeading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | RoundedRectangle(cornerRadius: 20)
189 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:187:32: error: 'topLeading' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
185 | // let joinedString = arrStr.joined(separator: ",")
186 | // Text("\(joinedString)")
187 | ZStack(alignment: .topLeading) {
| |- error: 'topLeading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | RoundedRectangle(cornerRadius: 20)
189 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:188:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
186 | // Text("\(joinedString)")
187 | ZStack(alignment: .topLeading) {
188 | RoundedRectangle(cornerRadius: 20)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
189 | .fill(
190 | LinearGradient(gradient: gradient, startPoint: .leading, endPoint: .trailing)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:189:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
187 | ZStack(alignment: .topLeading) {
188 | RoundedRectangle(cornerRadius: 20)
189 | .fill(
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
190 | LinearGradient(gradient: gradient, startPoint: .leading, endPoint: .trailing)
191 | )
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:190:25: error: 'LinearGradient' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
188 | RoundedRectangle(cornerRadius: 20)
189 | .fill(
190 | LinearGradient(gradient: gradient, startPoint: .leading, endPoint: .trailing)
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
191 | )
192 | .frame(minWidth: 0, idealWidth: 300, maxWidth: .infinity, minHeight: 0, idealHeight: 40, maxHeight: 40)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:192:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
190 | LinearGradient(gradient: gradient, startPoint: .leading, endPoint: .trailing)
191 | )
192 | .frame(minWidth: 0, idealWidth: 300, maxWidth: .infinity, minHeight: 0, idealHeight: 40, maxHeight: 40)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
193 |
194 | ForEach(stops.indices, id: \.self) { i in
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:194:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
192 | .frame(minWidth: 0, idealWidth: 300, maxWidth: .infinity, minHeight: 0, idealHeight: 40, maxHeight: 40)
193 |
194 | ForEach(stops.indices, id: \.self) { i in
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
195 | GradientMakerView(stop: stops[i], onUpdate:{ stop in
196 | stops[i] = stop
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:194:17: error: 'ForEach' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
192 | .frame(minWidth: 0, idealWidth: 300, maxWidth: .infinity, minHeight: 0, idealHeight: 40, maxHeight: 40)
193 |
194 | ForEach(stops.indices, id: \.self) { i in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | GradientMakerView(stop: stops[i], onUpdate:{ stop in
196 | stops[i] = stop
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:194:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
192 | .frame(minWidth: 0, idealWidth: 300, maxWidth: .infinity, minHeight: 0, idealHeight: 40, maxHeight: 40)
193 |
194 | ForEach(stops.indices, id: \.self) { i in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | GradientMakerView(stop: stops[i], onUpdate:{ stop in
196 | stops[i] = stop
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:196:25: error: cannot pass as inout because setter for 'stops' is only available in macOS 10.15 or newer
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
194 | ForEach(stops.indices, id: \.self) { i in
195 | GradientMakerView(stop: stops[i], onUpdate:{ stop in
196 | stops[i] = stop
| |- error: cannot pass as inout because setter for 'stops' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 |
198 | onUpdate(stops)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:187:44: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
169 | }
170 |
171 | public struct GradientMaker: View {
| `- note: add '@available' attribute to enclosing struct
172 |
173 | let onUpdate: ([Gradient.Stop]) -> Void
:
179 | }
180 |
181 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
182 | let gradient = Gradient(stops: stops)
183 | VStack {
:
185 | // let joinedString = arrStr.joined(separator: ",")
186 | // Text("\(joinedString)")
187 | ZStack(alignment: .topLeading) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' 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
188 | RoundedRectangle(cornerRadius: 20)
189 | .fill(
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:208:9: error: 'VStack' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:210:17: error: 'Gradient' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
212 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:210:38: error: 'Color' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
212 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:210:44: error: 'red' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
212 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:211:17: error: 'Gradient' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:211:38: error: 'Color' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:211:44: error: 'yellow' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:213:13: 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
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
| |- 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
214 | Spacer()
215 | GradientMaker(stops: [
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:213:13: error: 'Spacer' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
211 | Gradient.Stop(color: Color.yellow, location: 1.0)],
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | Spacer()
215 | GradientMaker(stops: [
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:214:13: 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
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
214 | 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
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:214:13: error: 'Spacer' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
212 | onUpdate: { _ in })
213 | Spacer(minLength: 400)
214 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:216:17: error: 'Gradient' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
214 | Spacer()
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
218 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:216:38: error: 'Color' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
214 | Spacer()
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
218 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:216:44: error: 'red' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
214 | Spacer()
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
218 | onUpdate: { _ in })
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:217:17: error: 'Gradient' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | onUpdate: { _ in })
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:217:38: error: 'Color' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | onUpdate: { _ in })
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:217:44: error: 'yellow' is only available in macOS 10.15 or newer
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | VStack {
209 | GradientMaker(stops: [
:
215 | GradientMaker(stops: [
216 | Gradient.Stop(color: Color.red, location: 0.0),
217 | Gradient.Stop(color: Color.yellow, location: 1.0)],
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | onUpdate: { _ in })
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:208: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
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | 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
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/GradientMaker.swift:208: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
204 | }
205 |
206 | struct GradientPickerView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
207 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
208 | 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
209 | GradientMaker(stops: [
210 | Gradient.Stop(color: Color.red, location: 0.0),
[5/5] Compiling GradientMaker Gradient+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:13:39: error: cannot find type 'UIColor' in scope
11 | extension Gradient {
12 |
13 | public func value(at: CGFloat) -> UIColor {
| `- error: cannot find type 'UIColor' in scope
14 | guard var left = self.stops.first, var right = self.stops.last else { return .magenta }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:11:11: error: 'Gradient' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension Gradient {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | public func value(at: CGFloat) -> UIColor {
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:37:11: error: cannot find type 'UIColor' in scope
35 | }
36 |
37 | extension UIColor {
| `- error: cannot find type 'UIColor' in scope
38 | public func blend(with color: UIColor, amt: CGFloat) -> UIColor {
39 | var fromRed :CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:28:49: error: cannot find 'UIColor' in scope
26 | }
27 |
28 | guard right.location > at else { return UIColor(right.color) }
| `- error: cannot find 'UIColor' in scope
29 | guard left.location < at else { return UIColor(left.color) }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:29:48: error: cannot find 'UIColor' in scope
27 |
28 | guard right.location > at else { return UIColor(right.color) }
29 | guard left.location < at else { return UIColor(left.color) }
| `- error: cannot find 'UIColor' in scope
30 |
31 | let diff = right.location - left.location
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:33:16: error: cannot find 'UIColor' in scope
31 | let diff = right.location - left.location
32 | let amt = (at - left.location) / diff
33 | return UIColor(left.color).blend(with: UIColor(right.color), amt: amt)
| `- error: cannot find 'UIColor' in scope
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:33:48: error: cannot find 'UIColor' in scope
31 | let diff = right.location - left.location
32 | let amt = (at - left.location) / diff
33 | return UIColor(left.color).blend(with: UIColor(right.color), amt: amt)
| `- error: cannot find 'UIColor' in scope
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:38:61: error: cannot find type 'UIColor' in scope
36 |
37 | extension UIColor {
38 | public func blend(with color: UIColor, amt: CGFloat) -> UIColor {
| `- error: cannot find type 'UIColor' in scope
39 | var fromRed :CGFloat = 0
40 | var fromGreen :CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/GradientMaker/Gradient+Extensions.swift:38:35: error: cannot find type 'UIColor' in scope
36 |
37 | extension UIColor {
38 | public func blend(with color: UIColor, amt: CGFloat) -> UIColor {
| `- error: cannot find type 'UIColor' in scope
39 | var fromRed :CGFloat = 0
40 | var fromGreen :CGFloat = 0
BUILD FAILURE 6.3 macosSpm