Build Information
Failed to build Refreshable, reference main (aa1dfc
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:55:39 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Geri-Borbas/iOS.Package.Refreshable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Geri-Borbas/iOS.Package.Refreshable
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at aa1dfcb Rename LICENSE.md to LICENSE
Cloned https://github.com/Geri-Borbas/iOS.Package.Refreshable.git
Revision (git rev-parse @):
aa1dfcb4e9eccd120a35e3fc4f5c4359e69a4f96
SUCCESS checkout https://github.com/Geri-Borbas/iOS.Package.Refreshable.git at main
Fetching https://github.com/siteline/SwiftUI-Introspect.git
[1/9326] Fetching swiftui-introspect
Fetched https://github.com/siteline/SwiftUI-Introspect.git from cache (1.19s)
Creating working copy for https://github.com/siteline/SwiftUI-Introspect.git
Working copy of https://github.com/siteline/SwiftUI-Introspect.git resolved at master (72a509c)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/Geri-Borbas/iOS.Package.Refreshable.git
[1/60] Fetching ios.package.refreshable
Fetched https://github.com/Geri-Borbas/iOS.Package.Refreshable.git from cache (0.67s)
Fetching https://github.com/siteline/SwiftUI-Introspect.git from cache
Fetched https://github.com/siteline/SwiftUI-Introspect.git from cache (0.53s)
error: could not find a branch named ‘master’ in https://github.com/siteline/SwiftUI-Introspect.git (did you mean ‘main’?)
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Geri-Borbas/iOS.Package.Refreshable.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/9] Compiling Introspect UIKitIntrospectionViewController.swift
[5/9] Compiling Introspect UIKitIntrospectionView.swift
[6/9] Compiling Introspect AppKitIntrospectionView.swift
[7/9] Compiling Introspect Introspect.swift
[8/9] Compiling Introspect ViewExtensions.swift
[9/9] Emitting module Introspect
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/12] Emitting module Refreshable
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:12:11: error: cannot find type 'UIScrollView' in scope
10 |
11 |
12 | extension UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
13 |
14 | struct Keys {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:50:22: error: cannot find type 'UIScrollView' in scope
48 | struct OnListRefreshModifier: ViewModifier {
49 |
50 | let onValueChanged: UIScrollView.ValueChangedAction
| `- error: cannot find type 'UIScrollView' in scope
51 |
52 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:52:38: error: 'View' is only available in macOS 10.15 or newer
46 |
47 |
48 | struct OnListRefreshModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 |
50 | let onValueChanged: UIScrollView.ValueChangedAction
51 |
52 | 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
53 | content
54 | .introspectTableView { tableView in
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:43: error: cannot find type 'UIScrollView' in scope
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: cannot find type 'UIScrollView' in scope
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:33: error: @escaping attribute only applies to function types
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: @escaping attribute only applies to function types
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:84: error: 'View' is only available in macOS 10.15 or newer
59 |
60 |
61 | public extension View {
| `- note: add @available attribute to enclosing extension
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:61:18: error: 'View' is only available in macOS 10.15 or newer
59 |
60 |
61 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:23:13: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RefreshAction?' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 |
11 | struct RefreshAction {
| `- note: consider making struct 'RefreshAction' conform to the 'Sendable' protocol
12 |
13 | let action: () async -> Void
:
21 | struct RefreshActionKey: EnvironmentKey {
22 |
23 | static let defaultValue: RefreshAction? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RefreshAction?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:27:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
25 |
26 |
27 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
28 |
29 | var refresh: RefreshAction? {
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:40:38: error: 'View' is only available in macOS 10.15 or newer
34 |
35 |
36 | struct RefreshableModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
37 |
38 | let action: () async -> Void
39 |
40 | 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
41 | content
42 | .environment(\.refresh, RefreshAction(action: action))
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:56:73: error: 'View' is only available in macOS 10.15 or newer
51 |
52 |
53 | public extension View {
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
56 | func refreshable(action: @escaping @Sendable () async -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | self.modifier(RefreshableModifier(action: action))
58 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:53:18: error: 'View' is only available in macOS 10.15 or newer
51 |
52 |
53 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
[11/12] Compiling Refreshable OnRefreshModifier.swift
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:12:11: error: cannot find type 'UIScrollView' in scope
10 |
11 |
12 | extension UIScrollView {
| `- error: cannot find type 'UIScrollView' in scope
13 |
14 | struct Keys {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:50:22: error: cannot find type 'UIScrollView' in scope
48 | struct OnListRefreshModifier: ViewModifier {
49 |
50 | let onValueChanged: UIScrollView.ValueChangedAction
| `- error: cannot find type 'UIScrollView' in scope
51 |
52 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:52:38: error: 'View' is only available in macOS 10.15 or newer
46 |
47 |
48 | struct OnListRefreshModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
49 |
50 | let onValueChanged: UIScrollView.ValueChangedAction
51 |
52 | 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
53 | content
54 | .introspectTableView { tableView in
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:43: error: cannot find type 'UIScrollView' in scope
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: cannot find type 'UIScrollView' in scope
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:33: error: @escaping attribute only applies to function types
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: @escaping attribute only applies to function types
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:84: error: 'View' is only available in macOS 10.15 or newer
59 |
60 |
61 | public extension View {
| `- note: add @available attribute to enclosing extension
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:61:18: error: 'View' is only available in macOS 10.15 or newer
59 |
60 |
61 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:55:15: error: value of type 'NSTableView' has no member 'onRefresh'
53 | content
54 | .introspectTableView { tableView in
55 | tableView.onRefresh(onValueChanged)
| `- error: value of type 'NSTableView' has no member 'onRefresh'
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:15:14: warning: static property 'onValueChanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | struct Keys {
15 | static var onValueChanged: UInt8 = 0
| |- warning: static property 'onValueChanged' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'onValueChanged' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'onValueChanged' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:18:60: error: cannot find type 'UIRefreshControl' in scope
16 | }
17 |
18 | public typealias ValueChangedAction = ((_ refreshControl: UIRefreshControl) -> Void)
| `- error: cannot find type 'UIRefreshControl' in scope
19 |
20 | var onValueChanged: ValueChangedAction? {
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:20:22: error: cannot find type 'ValueChangedAction' in scope
18 | public typealias ValueChangedAction = ((_ refreshControl: UIRefreshControl) -> Void)
19 |
20 | var onValueChanged: ValueChangedAction? {
| `- error: cannot find type 'ValueChangedAction' in scope
21 | get {
22 | objc_getAssociatedObject(self, &Keys.onValueChanged) as? ValueChangedAction
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:29:52: error: cannot find type 'ValueChangedAction' in scope
27 | }
28 |
29 | public func onRefresh(_ onValueChanged: @escaping ValueChangedAction) {
| `- error: cannot find type 'ValueChangedAction' in scope
30 | if refreshControl == nil {
31 | let refreshControl = UIRefreshControl()
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:29:42: error: @escaping attribute only applies to function types
27 | }
28 |
29 | public func onRefresh(_ onValueChanged: @escaping ValueChangedAction) {
| `- error: @escaping attribute only applies to function types
30 | if refreshControl == nil {
31 | let refreshControl = UIRefreshControl()
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:42:42: error: cannot find type 'UIRefreshControl' in scope
40 | }
41 |
42 | @objc func onValueChangedAction(sender: UIRefreshControl) {
| `- error: cannot find type 'UIRefreshControl' in scope
43 | self.onValueChanged?(sender)
44 | }
[12/12] Compiling Refreshable RefreshableModifier.swift
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:23:13: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RefreshAction?' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 |
11 | struct RefreshAction {
| `- note: consider making struct 'RefreshAction' conform to the 'Sendable' protocol
12 |
13 | let action: () async -> Void
:
21 | struct RefreshActionKey: EnvironmentKey {
22 |
23 | static let defaultValue: RefreshAction? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RefreshAction?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:27:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
25 |
26 |
27 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
28 |
29 | var refresh: RefreshAction? {
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:40:38: error: 'View' is only available in macOS 10.15 or newer
34 |
35 |
36 | struct RefreshableModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
37 |
38 | let action: () async -> Void
39 |
40 | 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
41 | content
42 | .environment(\.refresh, RefreshAction(action: action))
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:56:73: error: 'View' is only available in macOS 10.15 or newer
51 |
52 |
53 | public extension View {
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
56 | func refreshable(action: @escaping @Sendable () async -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
57 | self.modifier(RefreshableModifier(action: action))
58 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:53:18: error: 'View' is only available in macOS 10.15 or newer
51 |
52 |
53 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:43: error: cannot find type 'UIScrollView' in scope
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: cannot find type 'UIScrollView' in scope
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/OnRefreshModifier.swift:63:33: error: @escaping attribute only applies to function types
61 | public extension View {
62 |
63 | func onRefresh(onValueChanged: @escaping UIScrollView.ValueChangedAction) -> some View {
| `- error: @escaping attribute only applies to function types
64 | self.modifier(OnListRefreshModifier(onValueChanged: onValueChanged))
65 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:57:8: 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
51 |
52 |
53 | public extension View {
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
56 | func refreshable(action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | self.modifier(RefreshableModifier(action: action))
| |- 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
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Refreshable/RefreshableModifier.swift:57:8: error: 'modifier' is only available in macOS 10.15 or newer
51 |
52 |
53 | public extension View {
| `- note: add @available attribute to enclosing extension
54 |
55 | @available(iOS, obsoleted: 15)
56 | func refreshable(action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
57 | self.modifier(RefreshableModifier(action: action))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | }
BUILD FAILURE 6.0 macosSpm