Build Information
Successful build of Inspect, reference main (c80def
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 01:49:25 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FiveSheepCo/SwiftUI-Inspect.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FiveSheepCo/SwiftUI-Inspect
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c80def4 Rename CI
Cloned https://github.com/FiveSheepCo/SwiftUI-Inspect.git
Revision (git rev-parse @):
c80def48c134c4dfac4c700b49bd8bb20ac39099
SUCCESS checkout https://github.com/FiveSheepCo/SwiftUI-Inspect.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftui-inspect",
"name": "Inspect",
"url": "https://github.com/FiveSheepCo/SwiftUI-Inspect.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-Inspect",
"dependencies": [
]
}
]
}
Fetching https://github.com/FiveSheepCo/SwiftUI-Inspect.git
[1/36] Fetching swiftui-inspect
Fetched https://github.com/FiveSheepCo/SwiftUI-Inspect.git from cache (0.56s)
Creating working copy for https://github.com/FiveSheepCo/SwiftUI-Inspect.git
Working copy of https://github.com/FiveSheepCo/SwiftUI-Inspect.git resolved at main (c80def4)
warning: '.resolve-product-dependencies': dependency 'swiftui-inspect' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/FiveSheepCo/SwiftUI-Inspect.git
https://github.com/FiveSheepCo/SwiftUI-Inspect.git
{
"dependencies" : [
],
"manifest_display_name" : "Inspect",
"name" : "Inspect",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Inspect",
"targets" : [
"Inspect"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "InspectTests",
"module_type" : "SwiftTarget",
"name" : "InspectTests",
"path" : "Tests/InspectTests",
"sources" : [
"AppKitTests.swift",
"UIKitTests.swift"
],
"target_dependencies" : [
"Inspect"
],
"type" : "test"
},
{
"c99name" : "Inspect",
"module_type" : "SwiftTarget",
"name" : "Inspect",
"path" : "Sources/Inspect",
"product_memberships" : [
"Inspect"
],
"sources" : [
"AppKit/AppKit+SearchCoordinator.swift",
"AppKit/AppKit+View+Inspect.swift",
"AppKit/InspectionNSView.swift",
"CGFloat.swift",
"InspectionMode.swift",
"UIKit/InspectionUIView.swift",
"UIKit/UIKit+SearchCoordinator.swift",
"UIKit/UIKit+View+Inspect.swift",
"UIKit/UIResponder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling Inspect UIKit+View+Inspect.swift
[4/12] Compiling Inspect UIKit+SearchCoordinator.swift
[5/12] Compiling Inspect UIResponder.swift
[6/12] Compiling Inspect CGFloat.swift
[7/12] Compiling Inspect InspectionUIView.swift
[8/12] Compiling Inspect InspectionMode.swift
[9/12] Compiling Inspect AppKit+SearchCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+SearchCoordinator.swift:21:43: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | }
17 |
18 | func findViewWithinSuperviews(of initialView: NSView) -> T? {
| `- note: add '@MainActor' to make instance method 'findViewWithinSuperviews(of:)' part of global actor 'MainActor'
19 | var currentView = initialView
20 |
21 | while let superview = currentView.superview {
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | if let view = findViewWithinSubviews(
23 | of: superview,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:87:59: note: property declared here
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
| `- note: property declared here
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
89 | - (BOOL)isDescendantOf:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+SearchCoordinator.swift:43:36: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | private func findViewWithinSubviews(
| `- note: add '@MainActor' to make instance method 'findViewWithinSubviews(of:except:)' part of global actor 'MainActor'
35 | of initialView: NSView,
36 | except alreadyTestedView: NSView?
:
41 | }
42 |
43 | for subview in initialView.subviews where subview != alreadyTestedView {
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | if let t = test(view: subview) ?? findViewWithinSubviews(
45 | of: subview,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+SearchCoordinator.swift:57:34: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
54 | private func test(view: NSView) -> T? {
| `- note: add '@MainActor' to make instance method 'test(view:)' part of global actor 'MainActor'
55 |
56 | if let t = view as? T {
57 | var globalOrigin = t.convert(CGPoint.zero, to: windowView)
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | var size = t.frame.size
59 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+SearchCoordinator.swift:58:26: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
54 | private func test(view: NSView) -> T? {
| `- note: add '@MainActor' to make instance method 'test(view:)' part of global actor 'MainActor'
55 |
56 | if let t = view as? T {
57 | var globalOrigin = t.convert(CGPoint.zero, to: windowView)
58 | var size = t.frame.size
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
59 |
60 | if options.contains(.removeAlignmentRect) {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+SearchCoordinator.swift:61:27: warning: main actor-isolated property 'alignmentRectInsets' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
54 | private func test(view: NSView) -> T? {
| `- note: add '@MainActor' to make instance method 'test(view:)' part of global actor 'MainActor'
55 |
56 | if let t = view as? T {
:
59 |
60 | if options.contains(.removeAlignmentRect) {
61 | let r = t.alignmentRectInsets
| `- warning: main actor-isolated property 'alignmentRectInsets' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
62 |
63 | globalOrigin.x += r.left
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:302:35: note: property declared here
300 | /* override this if the alignment rect is obtained from the frame by insetting each edge by a fixed amount. This is only called by alignmentRectForFrame: and frameForAlignmentRect:.
301 | */
302 | @property (readonly) NSEdgeInsets alignmentRectInsets API_AVAILABLE(macos(10.7));
| `- note: property declared here
303 |
304 | /* override this to provide the distance between NSLayoutAttributeTop and NSLayoutAttributeFirstBaseline. NSView's implementation returns zero.
[10/12] Compiling Inspect AppKit+View+Inspect.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:30:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
27 | public extension TextField {
28 | /// Finds a `NSTextField` from a `TextField`.
29 | func inspect(customize: @escaping (NSTextField) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
30 | _inspect(customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:38:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
35 | public extension TextEditor {
36 | /// Finds a `NSTextView` from a `TextEditor`.
37 | func inspect(customize: @escaping (NSTextView) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
38 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:45:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
42 | public extension ScrollView {
43 | /// Finds a `NSScrollView` from a `ScrollView`.
44 | func inspect(customize: @escaping (NSScrollView) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
45 | _inspect(options: [.containingSafeArea], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:59:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
56 | public extension Button {
57 | /// Finds a `NSButton` from a `Button`.
58 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
59 | _inspect(options: [.removeAlignmentRect], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:66:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
63 | public extension Toggle {
64 | /// Finds a `NSButton` from a `Toggle`.
65 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
66 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:73:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
70 | public extension Slider {
71 | /// Finds a `NSSlider` from a `Slider`.
72 | func inspect(customize: @escaping (NSSlider) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
73 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:80:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
77 | public extension Stepper {
78 | /// Finds a `NSStepper` from a `Stepper`.
79 | func inspect(customize: @escaping (NSStepper) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
80 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:87:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
84 | public extension DatePicker {
85 | /// Finds a `NSDatePicker` from a `DatePicker`.
86 | func inspect(customize: @escaping (NSDatePicker) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
87 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:94:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
91 | public extension Picker {
92 | /// Finds a `NSSegmentedControl` from a `Picker`.
93 | func inspectSegmentedControl(customize: @escaping (NSSegmentedControl) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspectSegmentedControl(customize:)' part of global actor 'MainActor'
94 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:102:9: warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
5 |
6 | extension View {
7 | func _inspect<T: NSView>(
| `- note: calls to instance method '_inspect(options:additionalCheck:customize:)' from outside of its actor context are implicitly asynchronous
8 | options: [InspectionOption] = [],
9 | additionalCheck: ((T) -> Bool)? = nil,
:
99 | public extension ColorPicker {
100 | /// Finds a `NSColorWell` from a `ColorPicker`.
101 | func inspect(customize: @escaping (NSColorWell) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'inspect(customize:)' part of global actor 'MainActor'
102 | _inspect(options: [.subFrame], customize: customize)
| `- warning: call to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:30:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
28 | /// Finds a `NSTextField` from a `TextField`.
29 | func inspect(customize: @escaping (NSTextField) -> Void) -> some View {
30 | _inspect(customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:30:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
28 | /// Finds a `NSTextField` from a `TextField`.
29 | func inspect(customize: @escaping (NSTextField) -> Void) -> some View {
30 | _inspect(customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:38:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
36 | /// Finds a `NSTextView` from a `TextEditor`.
37 | func inspect(customize: @escaping (NSTextView) -> Void) -> some View {
38 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:38:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
36 | /// Finds a `NSTextView` from a `TextEditor`.
37 | func inspect(customize: @escaping (NSTextView) -> Void) -> some View {
38 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:45:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
43 | /// Finds a `NSScrollView` from a `ScrollView`.
44 | func inspect(customize: @escaping (NSScrollView) -> Void) -> some View {
45 | _inspect(options: [.containingSafeArea], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:45:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
43 | /// Finds a `NSScrollView` from a `ScrollView`.
44 | func inspect(customize: @escaping (NSScrollView) -> Void) -> some View {
45 | _inspect(options: [.containingSafeArea], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:59:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
57 | /// Finds a `NSButton` from a `Button`.
58 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
59 | _inspect(options: [.removeAlignmentRect], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:59:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
57 | /// Finds a `NSButton` from a `Button`.
58 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
59 | _inspect(options: [.removeAlignmentRect], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:66:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
64 | /// Finds a `NSButton` from a `Toggle`.
65 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
66 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:66:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
64 | /// Finds a `NSButton` from a `Toggle`.
65 | func inspect(customize: @escaping (NSButton) -> Void) -> some View {
66 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:73:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
71 | /// Finds a `NSSlider` from a `Slider`.
72 | func inspect(customize: @escaping (NSSlider) -> Void) -> some View {
73 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:73:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
71 | /// Finds a `NSSlider` from a `Slider`.
72 | func inspect(customize: @escaping (NSSlider) -> Void) -> some View {
73 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:80:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
78 | /// Finds a `NSStepper` from a `Stepper`.
79 | func inspect(customize: @escaping (NSStepper) -> Void) -> some View {
80 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:80:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
78 | /// Finds a `NSStepper` from a `Stepper`.
79 | func inspect(customize: @escaping (NSStepper) -> Void) -> some View {
80 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:87:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
85 | /// Finds a `NSDatePicker` from a `DatePicker`.
86 | func inspect(customize: @escaping (NSDatePicker) -> Void) -> some View {
87 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:87:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
85 | /// Finds a `NSDatePicker` from a `DatePicker`.
86 | func inspect(customize: @escaping (NSDatePicker) -> Void) -> some View {
87 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:94:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
92 | /// Finds a `NSSegmentedControl` from a `Picker`.
93 | func inspectSegmentedControl(customize: @escaping (NSSegmentedControl) -> Void) -> some View {
94 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:94:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
92 | /// Finds a `NSSegmentedControl` from a `Picker`.
93 | func inspectSegmentedControl(customize: @escaping (NSSegmentedControl) -> Void) -> some View {
94 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:102:9: warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
100 | /// Finds a `NSColorWell` from a `ColorPicker`.
101 | func inspect(customize: @escaping (NSColorWell) -> Void) -> some View {
102 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'customize' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'customize' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/AppKit+View+Inspect.swift:102:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
100 | /// Finds a `NSColorWell` from a `ColorPicker`.
101 | func inspect(customize: @escaping (NSColorWell) -> Void) -> some View {
102 | _inspect(options: [.subFrame], customize: customize)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated instance method '_inspect(options:additionalCheck:customize:)' risks causing data races between main actor-isolated and task-isolated uses
103 | }
104 | }
[11/12] Emitting module Inspect
[12/12] Compiling Inspect InspectionNSView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/InspectionNSView.swift:21:51: warning: main actor-isolated property 'contentView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
19 | func updateNSView(_ nsView: NSView, context: Context) {
20 | RunLoop.main.perform {
21 | guard let windowView = nsView.window?.contentView else { return }
| `- warning: main actor-isolated property 'contentView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
22 |
23 | let subframeFloatLeeway: CGFloat = (options.contains(.subFrame)) ? 5 : 0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: property declared here
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/InspectionNSView.swift:21:43: warning: main actor-isolated property 'window' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
19 | func updateNSView(_ nsView: NSView, context: Context) {
20 | RunLoop.main.perform {
21 | guard let windowView = nsView.window?.contentView else { return }
| `- warning: main actor-isolated property 'window' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
22 |
23 | let subframeFloatLeeway: CGFloat = (options.contains(.subFrame)) ? 5 : 0
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/InspectionNSView.swift:34:34: warning: main actor-isolated property 'additionalCheck' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
8 | let safeAreaInsets: EdgeInsets
9 | let options: [InspectionOption]
10 | let additionalCheck: ((T) -> Bool)?
| `- note: property declared here
11 | let customize: (T) -> Void
12 |
:
32 | correctFrame: finalFrame,
33 | windowView: windowView,
34 | additionalCheck: additionalCheck,
| `- warning: main actor-isolated property 'additionalCheck' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
35 | options: options
36 | ).findViewWithinSuperviews(of: nsView)
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/AppKit/InspectionNSView.swift:39:17: warning: main actor-isolated property 'customize' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
9 | let options: [InspectionOption]
10 | let additionalCheck: ((T) -> Bool)?
11 | let customize: (T) -> Void
| `- note: property declared here
12 |
13 | func makeNSView(context: Context) -> NSView {
:
37 |
38 | if let foundView {
39 | customize(foundView)
| `- warning: main actor-isolated property 'customize' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
40 | }
41 | }
Build complete! (7.93s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Inspect",
"name" : "Inspect",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Inspect",
"targets" : [
"Inspect"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "InspectTests",
"module_type" : "SwiftTarget",
"name" : "InspectTests",
"path" : "Tests/InspectTests",
"sources" : [
"AppKitTests.swift",
"UIKitTests.swift"
],
"target_dependencies" : [
"Inspect"
],
"type" : "test"
},
{
"c99name" : "Inspect",
"module_type" : "SwiftTarget",
"name" : "Inspect",
"path" : "Sources/Inspect",
"product_memberships" : [
"Inspect"
],
"sources" : [
"AppKit/AppKit+SearchCoordinator.swift",
"AppKit/AppKit+View+Inspect.swift",
"AppKit/InspectionNSView.swift",
"CGFloat.swift",
"InspectionMode.swift",
"UIKit/InspectionUIView.swift",
"UIKit/UIKit+SearchCoordinator.swift",
"UIKit/UIKit+View+Inspect.swift",
"UIKit/UIResponder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.