Build Information
Failed to build LineChart, reference main (2f3f83), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 19:23:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/karlis/LineChart.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/karlis/LineChart
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2f3f835 Initial Package commit
Cloned https://github.com/karlis/LineChart.git
Revision (git rev-parse @):
2f3f835af0e9a748764dd7b212b5a665edeeb311
SUCCESS checkout https://github.com/karlis/LineChart.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/karlis/LineChart.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/6] Compiling LineChart LinePath.swift
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:15:8: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
15 | ) -> Path {
| `- error: 'Path' is only available in macOS 10.15 or newer
16 | var path = Path()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:16:16: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
15 | ) -> Path {
16 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 |
18 | path.move(to: CGPoint(x: rect.minX, y: rect.maxY))
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:18:10: error: 'move(to:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
:
16 | var path = Path()
17 |
18 | path.move(to: CGPoint(x: rect.minX, y: rect.maxY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 |
20 | for point in points {
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:21:12: error: 'addLine(to:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
:
19 |
20 | for point in points {
21 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:24:10: error: 'addLine(to:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
:
22 | }
23 |
24 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 |
26 | return path
[4/6] Compiling LineChart LineShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:11:4: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
12 | var model: LineModel
13 |
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:24:30: error: 'AnimatablePair' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| | `- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:32:40: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
30 | }
31 |
32 | public func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | let points = mapIntoPoints(
34 | values: model.values,
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:19:5: error: setter for 'model' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
16 | var currentMax: CGFloat
17 |
18 | public init(model: LineModel) {
| `- note: add @available attribute to enclosing initializer
19 | self.model = model
| |- error: setter for 'model' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | offset = model.offset
21 | currentMax = model.currentMax
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:25:11: error: 'AnimatablePair' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
| |- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | set {
27 | offset = newValue.first
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:25:11: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
26 | set {
27 | offset = newValue.first
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:25:11: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
26 | set {
27 | offset = newValue.first
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:27:25: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
27 | offset = newValue.first
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
28 | currentMax = newValue.second
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:27:25: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
27 | offset = newValue.first
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
28 | currentMax = newValue.second
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:28:29: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
27 | offset = newValue.first
28 | currentMax = newValue.second
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:28:29: warning: conformance of 'CGFloat' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
27 | offset = newValue.first
28 | currentMax = newValue.second
| |- warning: conformance of 'CGFloat' to 'VectorArithmetic' 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
29 | }
30 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module LineChart
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:13:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | public var values: [CGFloat]
15 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:15:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
15 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | public var offset: CGFloat
17 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:17:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
15 | @Published
16 | public var offset: CGFloat
17 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
18 | public var currentMax: CGFloat
19 | // How many values to show on Graph
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:12:25: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LinePath.swift:15:8: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | class LinePath {
| `- note: add @available attribute to enclosing class
11 | /// Line chart for given points
12 | static func lineChart(
| `- note: add @available attribute to enclosing static method
13 | for points: [CGPoint],
14 | in rect: CGRect
15 | ) -> Path {
| `- error: 'Path' is only available in macOS 10.15 or newer
16 | var path = Path()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:11:4: error: 'ObservedObject' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
12 | var model: LineModel
13 |
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:24:30: error: 'AnimatablePair' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
22 | }
23 |
24 | public var animatableData: AnimatablePair<CGFloat, CGFloat> {
| | `- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
25 | get { AnimatablePair(offset, currentMax) }
26 | set {
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineShape.swift:32:40: error: 'Path' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
11 | @ObservedObject
12 | var model: LineModel
:
30 | }
31 |
32 | public func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | let points = mapIntoPoints(
34 | values: model.values,
[6/6] Compiling LineChart LineModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:13:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | public var values: [CGFloat]
15 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:15:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
15 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | public var offset: CGFloat
17 | @Published
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:17:4: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
15 | @Published
16 | public var offset: CGFloat
17 | @Published
| `- error: 'Published' is only available in macOS 10.15 or newer
18 | public var currentMax: CGFloat
19 | // How many values to show on Graph
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:12:25: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
<unknown>:0: error: cannot convert value of type 'KeyPath<LineModel, [CGFloat]>' to expected argument type 'ReferenceWritableKeyPath<LineModel, [CGFloat]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<LineModel, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<LineModel, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<LineModel, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<LineModel, CGFloat>'
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:32:5: error: 'withAnimation' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
:
29 | }
30 |
31 | public func add(_ value: CGFloat) {
| `- note: add @available attribute to enclosing instance method
32 | withAnimation(.linear) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | values.append(value)
34 | offset = CGFloat(values.count - Int(showCount))
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:32:20: error: 'linear' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
:
29 | }
30 |
31 | public func add(_ value: CGFloat) {
| `- note: add @available attribute to enclosing instance method
32 | withAnimation(.linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | values.append(value)
34 | offset = CGFloat(values.count - Int(showCount))
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:33:7: error: cannot pass as inout because setter for 'values' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
:
29 | }
30 |
31 | public func add(_ value: CGFloat) {
| `- note: add @available attribute to enclosing instance method
32 | withAnimation(.linear) {
33 | values.append(value)
| |- error: cannot pass as inout because setter for 'values' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | offset = CGFloat(values.count - Int(showCount))
35 | currentMax = values.suffix(Int(showCount)).max() ?? 1
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:34:7: error: setter for 'offset' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
:
29 | }
30 |
31 | public func add(_ value: CGFloat) {
| `- note: add @available attribute to enclosing instance method
32 | withAnimation(.linear) {
33 | values.append(value)
34 | offset = CGFloat(values.count - Int(showCount))
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | currentMax = values.suffix(Int(showCount)).max() ?? 1
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/LineChart/LineModel.swift:35:7: error: setter for 'currentMax' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | public class LineModel: ObservableObject {
| `- note: add @available attribute to enclosing class
13 | @Published
14 | public var values: [CGFloat]
:
29 | }
30 |
31 | public func add(_ value: CGFloat) {
| `- note: add @available attribute to enclosing instance method
32 | withAnimation(.linear) {
33 | values.append(value)
34 | offset = CGFloat(values.count - Int(showCount))
35 | currentMax = values.suffix(Int(showCount)).max() ?? 1
| |- error: setter for 'currentMax' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
BUILD FAILURE 6.2 macosSpm