This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Geri-Borbas/iOS.Package.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/9] Compiling Introspect UIKitIntrospectionViewController.swift
[5/9] Compiling Introspect UIKitIntrospectionView.swift
[6/9] Compiling Introspect ViewExtensions.swift
[7/9] Compiling Introspect Introspect.swift
[8/9] Compiling Introspect AppKitIntrospectionView.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 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 | }
[12/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 non-isolated 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 non-isolated 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 | 	}
Fetching https://github.com/siteline/SwiftUI-Introspect.git
[1/8603] Fetching swiftui-introspect
Fetched https://github.com/siteline/SwiftUI-Introspect.git from cache (1.26s)
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)
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.