Build Information
Successful build of Inspect, reference main (c80def
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:21:38 UTC.
Swift 6 data race errors: 0
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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.67s)
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.0
Building package at path: $PWD
https://github.com/FiveSheepCo/SwiftUI-Inspect.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling Inspect UIKit+SearchCoordinator.swift
[4/12] Compiling Inspect UIResponder.swift
[5/12] Compiling Inspect UIKit+View+Inspect.swift
[6/12] Compiling Inspect InspectionUIView.swift
[7/12] Compiling Inspect InspectionMode.swift
[8/12] Compiling Inspect CGFloat.swift
[9/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 | }
[10/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,
AppKit.NSView:5:41: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | @MainActor unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/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,
AppKit.NSView:6:14: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | @MainActor unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/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:92:15: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
90 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
91 | open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
92 | 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
93 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
94 | open func convertPoint(_ point: NSPoint, toView view: NSView?) -> NSPoint
/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) {
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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
AppKit.NSView:13:25: note: property declared here
11 | open func frameForAlignmentRect(_ alignmentRect: NSRect) -> NSRect
12 | @available(macOS 10.7, *)
13 | @MainActor open var alignmentRectInsets: NSEdgeInsets { get }
| `- note: property declared here
14 | @available(macOS 10.11, *)
15 | open var firstBaselineOffsetFromTop: CGFloat { get }
[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
AppKit.NSWindow:56:25: note: property declared here
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | @MainActor open var contentView: NSView? { get set }
| `- note: property declared here
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/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
AppKit.NSView:4:41: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/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! (16.24s)
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.