Build Information
Failed to build ImageWithActivityIndicator, reference master (f2e5af), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 01:22:15 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/aliadam/imagewithactivityindicator.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aliadam/imagewithactivityindicator
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f2e5af7 Merge pull request #3 from amarantedaniel/fix-examples-identation
Cloned https://github.com/aliadam/imagewithactivityindicator.git
Revision (git rev-parse @):
f2e5af75baa6f1e10170f27ca8cf2d0e7b8f3917
SUCCESS checkout https://github.com/aliadam/imagewithactivityindicator.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/aliadam/imagewithactivityindicator.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/7] Compiling ImageWithActivityIndicator ViewLoaders.swift
[4/7] Emitting module ImageWithActivityIndicator
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:13:16: error: cannot find type 'UIActivityIndicatorView' in scope
11 | public struct ActivityIndicator: UIViewRepresentable {
12 |
13 | let style: UIActivityIndicatorView.Style
| `- error: cannot find type 'UIActivityIndicatorView' in scope
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:15:87: error: cannot find type 'UIActivityIndicatorView' in scope
13 | let style: UIActivityIndicatorView.Style
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
| `- error: cannot find type 'UIActivityIndicatorView' in scope
16 | return UIActivityIndicatorView(style: style)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:15:37: error: cannot find type 'UIViewRepresentableContext' in scope
13 | let style: UIActivityIndicatorView.Style
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
16 | return UIActivityIndicatorView(style: style)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:19:40: error: cannot find type 'UIActivityIndicatorView' in scope
17 | }
18 |
19 | public func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ActivityIndicator>) {
| `- error: cannot find type 'UIActivityIndicatorView' in scope
20 | uiView.startAnimating()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:19:74: error: cannot find type 'UIViewRepresentableContext' in scope
17 | }
18 |
19 | public func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ActivityIndicator>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
20 | uiView.startAnimating()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:11:34: error: cannot find type 'UIViewRepresentable' in scope
9 |
10 | @available(iOS 13.0, *)
11 | public struct ActivityIndicator: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | let style: UIActivityIndicatorView.Style
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:15:24: error: cannot find type 'UIActivityIndicatorView' in scope
13 | public struct ViewWithActivityIndicator<Content:View> : View {
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
| `- error: cannot find type 'UIActivityIndicatorView' in scope
16 |
17 | @ObservedObject private var viewLoader:ViewLoader
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:17:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
16 |
17 | @ObservedObject private var viewLoader:ViewLoader
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
18 | private var content: () -> Content
19 | private let placeHolder:String
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:22:101: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
:
20 | private let showActivityIndicator:Bool
21 |
22 | public init(placeHolder: String = "",showActivityIndicator:Bool = true, viewLoader:ViewLoader, @ViewBuilder _ content: @escaping () -> Content){
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | self.placeHolder = placeHolder
24 | self.showActivityIndicator = showActivityIndicator
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | ZStack(){
31 | if (viewLoader.data.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:13:49: error: 'View' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
55 | #if DEBUG
56 |
57 | struct ImageWithActivityIndicator_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | @available(iOS 13.0, *)
59 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
60 | Text("not used")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ViewLoader.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13.0, *)
12 | public class ViewLoader: ObservableObject {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published var data = Data()
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | let url:String
16 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ViewLoader.swift:12:26: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13.0, *)
12 | public class ViewLoader: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published var data = Data()
[5/7] Compiling ImageWithActivityIndicator ImageWithActivityIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:15:24: error: cannot find type 'UIActivityIndicatorView' in scope
13 | public struct ViewWithActivityIndicator<Content:View> : View {
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
| `- error: cannot find type 'UIActivityIndicatorView' in scope
16 |
17 | @ObservedObject private var viewLoader:ViewLoader
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:17:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
16 |
17 | @ObservedObject private var viewLoader:ViewLoader
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
18 | private var content: () -> Content
19 | private let placeHolder:String
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:22:101: error: 'ViewBuilder' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
:
20 | private let showActivityIndicator:Bool
21 |
22 | public init(placeHolder: String = "",showActivityIndicator:Bool = true, viewLoader:ViewLoader, @ViewBuilder _ content: @escaping () -> Content){
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
23 | self.placeHolder = placeHolder
24 | self.showActivityIndicator = showActivityIndicator
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 | ZStack(){
31 | if (viewLoader.data.isEmpty) {
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:13:49: error: 'View' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:59:31: error: 'View' is only available in macOS 10.15 or newer
55 | #if DEBUG
56 |
57 | struct ImageWithActivityIndicator_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | @available(iOS 13.0, *)
59 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
60 | Text("not used")
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:25:9: error: setter for 'viewLoader' is only available in macOS 10.15 or newer
11 |
12 | @available(iOS 13.0, *)
13 | public struct ViewWithActivityIndicator<Content:View> : View {
| `- note: add @available attribute to enclosing generic struct
14 |
15 | private let style: UIActivityIndicatorView.Style = .medium
:
20 | private let showActivityIndicator:Bool
21 |
22 | public init(placeHolder: String = "",showActivityIndicator:Bool = true, viewLoader:ViewLoader, @ViewBuilder _ content: @escaping () -> Content){
| `- note: add @available attribute to enclosing initializer
23 | self.placeHolder = placeHolder
24 | self.showActivityIndicator = showActivityIndicator
25 | self.viewLoader = viewLoader
| |- error: setter for 'viewLoader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | self.content = content
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:13:16: error: cannot find type 'UIActivityIndicatorView' in scope
11 | public struct ActivityIndicator: UIViewRepresentable {
12 |
13 | let style: UIActivityIndicatorView.Style
| `- error: cannot find type 'UIActivityIndicatorView' in scope
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:39:51: error: cannot infer contextual base in reference to member 'large'
37 |
38 | if showActivityIndicator {
39 | ActivityIndicator(style: .large)
| `- error: cannot infer contextual base in reference to member 'large'
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:60:9: 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
55 | #if DEBUG
56 |
57 | struct ImageWithActivityIndicator_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | @available(iOS 13.0, *)
59 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
60 | Text("not used")
| |- 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:60:9: error: 'Text' is only available in macOS 10.15 or newer
55 | #if DEBUG
56 |
57 | struct ImageWithActivityIndicator_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | @available(iOS 13.0, *)
59 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
60 | Text("not used")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ImageWithActivityIndicator.swift:59:36: 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
55 | #if DEBUG
56 |
57 | struct ImageWithActivityIndicator_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
58 | @available(iOS 13.0, *)
59 | static var previews: 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
| `- note: add @available attribute to enclosing static property
60 | Text("not used")
61 | }
[6/7] Compiling ImageWithActivityIndicator ActivityIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:13:16: error: cannot find type 'UIActivityIndicatorView' in scope
11 | public struct ActivityIndicator: UIViewRepresentable {
12 |
13 | let style: UIActivityIndicatorView.Style
| `- error: cannot find type 'UIActivityIndicatorView' in scope
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:15:87: error: cannot find type 'UIActivityIndicatorView' in scope
13 | let style: UIActivityIndicatorView.Style
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
| `- error: cannot find type 'UIActivityIndicatorView' in scope
16 | return UIActivityIndicatorView(style: style)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:15:37: error: cannot find type 'UIViewRepresentableContext' in scope
13 | let style: UIActivityIndicatorView.Style
14 |
15 | public func makeUIView(context: UIViewRepresentableContext<ActivityIndicator>) -> UIActivityIndicatorView {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
16 | return UIActivityIndicatorView(style: style)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:19:40: error: cannot find type 'UIActivityIndicatorView' in scope
17 | }
18 |
19 | public func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ActivityIndicator>) {
| `- error: cannot find type 'UIActivityIndicatorView' in scope
20 | uiView.startAnimating()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:19:74: error: cannot find type 'UIViewRepresentableContext' in scope
17 | }
18 |
19 | public func updateUIView(_ uiView: UIActivityIndicatorView, context: UIViewRepresentableContext<ActivityIndicator>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
20 | uiView.startAnimating()
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ActivityIndicator.swift:11:34: error: cannot find type 'UIViewRepresentable' in scope
9 |
10 | @available(iOS 13.0, *)
11 | public struct ActivityIndicator: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | let style: UIActivityIndicatorView.Style
[7/7] Compiling ImageWithActivityIndicator ViewLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ViewLoader.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13.0, *)
12 | public class ViewLoader: ObservableObject {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published var data = Data()
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | let url:String
16 |
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ViewLoader.swift:12:26: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13.0, *)
12 | public class ViewLoader: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published var data = Data()
<unknown>:0: error: cannot convert value of type 'KeyPath<ViewLoader, Data>' to expected argument type 'ReferenceWritableKeyPath<ViewLoader, Data>'
/Users/admin/builder/spi-builder-workspace/Sources/ImageWithActivityIndicator/ViewLoader.swift:29:17: error: setter for 'data' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13.0, *)
12 | public class ViewLoader: ObservableObject {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published var data = Data()
:
19 | }
20 |
21 | public func loadData() {
| `- note: add @available attribute to enclosing instance method
22 | guard let url = URL(string:url) else {
23 | return
:
27 | guard let data = data else {return}
28 | DispatchQueue.main.async {
29 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }.resume()
BUILD FAILURE 6.2 macosSpm