Build Information
Failed to build Refreshable with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/c-villain/Refreshable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c-villain/Refreshable
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9c4b3b3 Update README.md
Cloned https://github.com/c-villain/Refreshable.git
Revision (git rev-parse @):
9c4b3b3645d6959d80df00c3dff5c7e00c379ba1
SUCCESS checkout https://github.com/c-villain/Refreshable.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/c-villain/Refreshable.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/7] Compiling Refreshable ScrollDistance.swift
[4/7] Compiling Refreshable Refreshable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:8:60: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
9 | self.modifier(RefreshAction.init(
10 | scrollDistance,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:6:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
9 | self.modifier(RefreshAction.init(
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:9:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
9 | self.modifier(RefreshAction.init(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
10 | scrollDistance,
11 | action: action))
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:9:14: error: 'modifier' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
9 | self.modifier(RefreshAction.init(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | scrollDistance,
11 | action: action))
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:8:65: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
9 | self.modifier(RefreshAction.init(
10 | scrollDistance,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Emitting module Refreshable
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshActionModifier.swift:15:48: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshAction: ViewModifier {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let action: (() -> Void)?
:
13 | }
14 |
15 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | ScrollView {
17 | RefreshControl(scrollDistance,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:6:34: error: 'CoordinateSpace' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
| `- error: 'CoordinateSpace' is only available in macOS 10.15 or newer
7 |
8 | private let scrollOffset: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
11 | private let onRefresh: () -> Void
12 |
13 | @State private(set) var refresh: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | public init(_ scrollDistance: ScrollDistance = .defaults,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:16:34: error: 'CoordinateSpace' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
13 | @State private(set) var refresh: Bool = false
14 |
15 | public init(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing initializer
16 | coordinateSpace: CoordinateSpace,
| `- error: 'CoordinateSpace' is only available in macOS 10.15 or newer
17 | onRefresh: @escaping (() -> Void)) {
18 | self.coordinateSpace = coordinateSpace
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | GeometryReader { geo in
37 | if (geo.frame(in: coordinateSpace).midY * factor > scrollOffset) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:75:20: error: 'View' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
76 | ScrollView {
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:87:31: error: 'View' is only available in macOS 10.15 or newer
84 |
85 | @available(iOS 14.0, *)
86 | struct PullToRefreshDemo_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
87 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
88 | PullToRefreshDemo()
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:8:60: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
9 | self.modifier(RefreshAction.init(
10 | scrollDistance,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:6:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | func refreshable(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing instance method
8 | _ action: @escaping () -> ()) -> some View {
9 | self.modifier(RefreshAction.init(
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/Refreshable.swift:4:18: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
5 |
6 | @ViewBuilder
[6/7] Compiling Refreshable RefreshActionModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshActionModifier.swift:15:48: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshAction: ViewModifier {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let action: (() -> Void)?
:
13 | }
14 |
15 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | ScrollView {
17 | RefreshControl(scrollDistance,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshActionModifier.swift:16:9: error: 'ScrollView' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshAction: ViewModifier {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let action: (() -> Void)?
:
13 | }
14 |
15 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | ScrollView {
| |- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | RefreshControl(scrollDistance,
18 | coordinateSpace: .named("ContentForRefreshable")) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshActionModifier.swift:16:9: error: 'init(_:content:)' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshAction: ViewModifier {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let action: (() -> Void)?
:
13 | }
14 |
15 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | ScrollView {
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | RefreshControl(scrollDistance,
18 | coordinateSpace: .named("ContentForRefreshable")) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshActionModifier.swift:23:10: error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshAction: ViewModifier {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let action: (() -> Void)?
:
13 | }
14 |
15 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | ScrollView {
17 | RefreshControl(scrollDistance,
:
21 | content
22 | }
23 | .coordinateSpace(name: "ContentForRefreshable")
| |- error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 |
[7/7] Compiling Refreshable RefreshControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:6:34: error: 'CoordinateSpace' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
| `- error: 'CoordinateSpace' is only available in macOS 10.15 or newer
7 |
8 | private let scrollOffset: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
11 | private let onRefresh: () -> Void
12 |
13 | @State private(set) var refresh: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
14 |
15 | public init(_ scrollDistance: ScrollDistance = .defaults,
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:16:34: error: 'CoordinateSpace' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
13 | @State private(set) var refresh: Bool = false
14 |
15 | public init(_ scrollDistance: ScrollDistance = .defaults,
| `- note: add @available attribute to enclosing initializer
16 | coordinateSpace: CoordinateSpace,
| `- error: 'CoordinateSpace' is only available in macOS 10.15 or newer
17 | onRefresh: @escaping (() -> Void)) {
18 | self.coordinateSpace = coordinateSpace
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:35:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 14.0, *)
4 | public struct RefreshControl: View {
| `- note: add @available attribute to enclosing struct
5 |
6 | private let coordinateSpace: CoordinateSpace
:
33 | }
34 |
35 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
36 | GeometryReader { geo in
37 | if (geo.frame(in: coordinateSpace).midY * factor > scrollOffset) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:75:20: error: 'View' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
76 | ScrollView {
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:87:31: error: 'View' is only available in macOS 10.15 or newer
84 |
85 | @available(iOS 14.0, *)
86 | struct PullToRefreshDemo_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
87 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
88 | PullToRefreshDemo()
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:60:45: error: cannot find 'UIColor' in scope
58 | VStack {
59 | Rectangle()
60 | .fill(Color(UIColor.tertiaryLabel))
| `- error: cannot find 'UIColor' in scope
61 | .opacity((Int((geo.frame(in: coordinateSpace).midY * factor)/7) < tick) ? 0 : 1)
62 | .frame(width: 3, height: 7)
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:76:9: error: 'ScrollView' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
| |- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
78 | //refresh view here
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:76:9: error: 'init(_:content:)' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
78 | //refresh view here
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:80:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
78 | //refresh view here
79 | }
80 | Text("Some view...")
| |- warning: conformance of 'Text' 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
81 | }.coordinateSpace(name: "RefreshControl")
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:80:13: error: 'Text' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
78 | //refresh view here
79 | }
80 | Text("Some view...")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }.coordinateSpace(name: "RefreshControl")
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:76:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
| |- warning: conformance of 'Text' 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
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
78 | //refresh view here
/Users/admin/builder/spi-builder-workspace/Sources/Refreshable/RefreshControl.swift:81:11: error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
72 |
73 | @available(iOS 14.0, *)
74 | struct PullToRefreshDemo: View {
| `- note: add @available attribute to enclosing struct
75 | var body: some View {
| `- note: add @available attribute to enclosing property
76 | ScrollView {
77 | RefreshControl(coordinateSpace: .named("RefreshControl")) {
:
79 | }
80 | Text("Some view...")
81 | }.coordinateSpace(name: "RefreshControl")
| |- error: 'coordinateSpace(name:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | }
BUILD FAILURE 6.0 macosSpm