Build Information
Failed to build ScrollViewRTL, reference main (58a30b
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 08:11:20 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Muhammadbarznji/ScrollViewRTL.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Muhammadbarznji/ScrollViewRTL
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 58a30b0 Update README.md
Cloned https://github.com/Muhammadbarznji/ScrollViewRTL.git
Revision (git rev-parse @):
58a30b0d80cdb0c930fe0e318f688e170c00c6c8
SUCCESS checkout https://github.com/Muhammadbarznji/ScrollViewRTL.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Muhammadbarznji/ScrollViewRTL.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module ScrollViewRTL
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:33:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
31 |
32 | /// The layout direction environment property.
33 | @Environment(\.layoutDirection) private var direction
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
34 |
35 | /// The type of the row, either horizontal or vertical.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:30:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | /// The layout direction environment property.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
31 |
32 | /// The layout direction environment property.
33 | @Environment(\.layoutDirection) private var direction
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 |
35 | /// The type of the row, either horizontal or vertical.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:47:63: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
45 | /// - showsIndicators: A boolean value indicating whether to show scroll indicators.
46 | /// - content: The content to be displayed in the scroll view.
47 | public init(type: RowType, showsIndicators: Bool = true, @ViewBuilder content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
48 | self.type = type
49 | self.showsIndicators = showsIndicators
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:54:27: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
56 | scrollViewForModerniOS
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:72:47: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:28:38: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:101:28: error: 'Axis' is only available in macOS 10.15 or newer
94 |
95 | /// An enum representing the type of row for the `ScrollViewRTL` struct.
96 | public enum RowType {
| `- note: add @available attribute to enclosing enum
97 | case horizontal
98 | case vertical
99 |
100 | /// The scroll axis associated with the row type.
101 | public var scrollAxis: Axis.Set {
| | `- error: 'Axis' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
102 | switch self {
103 | case .horizontal:
[4/4] Compiling ScrollViewRTL ScrollViewRTL.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:33:20: error: 'layoutDirection' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
31 |
32 | /// The layout direction environment property.
33 | @Environment(\.layoutDirection) private var direction
| `- error: 'layoutDirection' is only available in macOS 10.15 or newer
34 |
35 | /// The type of the row, either horizontal or vertical.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:30:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
31 |
32 | /// The layout direction environment property.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
31 |
32 | /// The layout direction environment property.
33 | @Environment(\.layoutDirection) private var direction
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 |
35 | /// The type of the row, either horizontal or vertical.
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:47:63: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
45 | /// - showsIndicators: A boolean value indicating whether to show scroll indicators.
46 | /// - content: The content to be displayed in the scroll view.
47 | public init(type: RowType, showsIndicators: Bool = true, @ViewBuilder content: () -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
48 | self.type = type
49 | self.showsIndicators = showsIndicators
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:54:27: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
56 | scrollViewForModerniOS
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:72:47: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:28:38: error: 'View' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:101:28: error: 'Axis' is only available in macOS 10.15 or newer
94 |
95 | /// An enum representing the type of row for the `ScrollViewRTL` struct.
96 | public enum RowType {
| `- note: add @available attribute to enclosing enum
97 | case horizontal
98 | case vertical
99 |
100 | /// The scroll axis associated with the row type.
101 | public var scrollAxis: Axis.Set {
| | `- error: 'Axis' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
102 | switch self {
103 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:55:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
53 | /// The body of the view.
54 | public var body: some View {
55 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
56 | scrollViewForModerniOS
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:56:13: error: 'scrollViewForModerniOS' is only available in macOS 13.3 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
56 | scrollViewForModerniOS
| |- error: 'scrollViewForModerniOS' is only available in macOS 13.3 or newer
| `- note: add 'if #available' version check
57 | } else {
58 | scrollViewForEarlieriOS
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:55:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
56 | scrollViewForModerniOS
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:55:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | scrollViewForModerniOS
57 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:57:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
56 | scrollViewForModerniOS
57 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | scrollViewForEarlieriOS
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:54:32: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
52 |
53 | /// The body of the view.
54 | public var body: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
| `- note: add @available attribute to enclosing property
55 | if #available(iOS 17.0, *) {
56 | scrollViewForModerniOS
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:73:9: error: 'ScrollView' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
| |- error: 'ScrollView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:73:9: error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
| |- error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:75:18: error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
| |- error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:75:35: error: 'Angle' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:77:10: error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
76 | }
77 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
| |- error: 'rotation3DEffect(_:axis:anchor:anchorZ:perspective:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
/Users/admin/builder/spi-builder-workspace/Sources/ScrollViewRTL/ScrollViewRTL.swift:77:27: error: 'Angle' is only available in macOS 10.15 or newer
26 | /// ```
27 | ///
28 | public struct ScrollViewRTL<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
29 | /// The content to be displayed in the scroll view.
30 | @ViewBuilder var content: Content
:
70 |
71 | /// The scroll view implementation for earlier iOS versions.
72 | private var scrollViewForEarlieriOS: some View {
| `- note: add @available attribute to enclosing property
73 | ScrollView(type.scrollAxis, showsIndicators: showsIndicators) {
74 | content
75 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
76 | }
77 | .rotation3DEffect(Angle(degrees: rotationAngle), axis: rotationAxis)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 |
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
BUILD FAILURE 6.2 macosSpm