Build Information
Failed to build ViewController, reference develop (526dbb
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 09:57:23 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZeeZide/ViewController.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZeeZide/ViewController
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 526dbb0 Add support for VC specific loglevel
Cloned https://github.com/ZeeZide/ViewController.git
Revision (git rev-parse @):
526dbb0a929fc73518b87a4e3d354dac8d074044
SUCCESS checkout https://github.com/ZeeZide/ViewController.git at develop
========================================
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": "viewcontroller",
"name": "ViewController",
"url": "https://github.com/ZeeZide/ViewController.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ViewController",
"dependencies": [
]
}
]
}
Fetching https://github.com/ZeeZide/ViewController.git
[1/270] Fetching viewcontroller
Fetched https://github.com/ZeeZide/ViewController.git from cache (1.12s)
Creating working copy for https://github.com/ZeeZide/ViewController.git
Working copy of https://github.com/ZeeZide/ViewController.git resolved at develop (526dbb0)
warning: '.resolve-product-dependencies': dependency 'viewcontroller' 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/ZeeZide/ViewController.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/29] Compiling ViewController RenderContentView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[4/29] Compiling ViewController ViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[5/29] Compiling ViewController Containment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[6/31] Compiling ViewController ContentView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | @usableFromInline
36 | init(viewController: VC) { self.viewController = viewController }
| `- note: calls to initializer 'init(viewController:)' from outside of its actor context are implicitly asynchronous
37 |
38 | @usableFromInline
:
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| `- warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| |- 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 initializer 'init(viewController:)' risks causing data races between main actor-isolated and task-isolated uses
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[7/31] Compiling ViewController DefaultDescription.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | @usableFromInline
36 | init(viewController: VC) { self.viewController = viewController }
| `- note: calls to initializer 'init(viewController:)' from outside of its actor context are implicitly asynchronous
37 |
38 | @usableFromInline
:
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| `- warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| |- 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 initializer 'init(viewController:)' risks causing data races between main actor-isolated and task-isolated uses
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[8/31] Compiling ViewController RepresentedObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | @usableFromInline
36 | init(viewController: VC) { self.viewController = viewController }
| `- note: calls to initializer 'init(viewController:)' from outside of its actor context are implicitly asynchronous
37 |
38 | @usableFromInline
:
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| `- warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| |- 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 initializer 'init(viewController:)' risks causing data races between main actor-isolated and task-isolated uses
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[9/31] Compiling ViewController PushLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:109:16: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }
108 | if let mode = mode, mode != presentation.mode { return false }
109 | return condition(presentation.viewController)
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | },
111 | set: { isShowing in
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:127:15: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |
126 | /// Does our condition match?
127 | guard condition(presentation.viewController) else { return }
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 |
129 | logger.debug(
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:119:68: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
117 | guard let presentation = self.activePresentation(for: mode) else {
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:122:16: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
122 | assert(mode != .automatic)
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
123 | assert(presentation.mode != .automatic)
124 | if let mode = mode, presentation.mode != mode { return }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:12: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:49: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:58: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:50: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:59: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:14: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:179:65: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
177 | // FIXME: This can sometimes be seen in sheets, figure out why
178 | logger.warning(
179 | "Attempt to activate VC via Binding, won't work \(self)!")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 | }
181 | return
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:41: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:67: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:195:37: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
193 | /// TBD: what about "automatic" and such? Never active in an actual
194 | /// presentation!
195 | assert(presentation.mode == mode, "internal inconsistency!")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
196 | guard presentation.mode == mode else { return }
197 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
[10/31] Compiling ViewController AutoPresentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:109:16: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }
108 | if let mode = mode, mode != presentation.mode { return false }
109 | return condition(presentation.viewController)
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | },
111 | set: { isShowing in
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:127:15: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |
126 | /// Does our condition match?
127 | guard condition(presentation.viewController) else { return }
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 |
129 | logger.debug(
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:119:68: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
117 | guard let presentation = self.activePresentation(for: mode) else {
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:122:16: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
122 | assert(mode != .automatic)
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
123 | assert(presentation.mode != .automatic)
124 | if let mode = mode, presentation.mode != mode { return }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:12: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:49: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:58: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:50: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:59: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:14: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:179:65: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
177 | // FIXME: This can sometimes be seen in sheets, figure out why
178 | logger.warning(
179 | "Attempt to activate VC via Binding, won't work \(self)!")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 | }
181 | return
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:41: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:67: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:195:37: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
193 | /// TBD: what about "automatic" and such? Never active in an actual
194 | /// presentation!
195 | assert(presentation.mode == mode, "internal inconsistency!")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
196 | guard presentation.mode == mode else { return }
197 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
[11/31] Compiling ViewController Presentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:109:16: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }
108 | if let mode = mode, mode != presentation.mode { return false }
109 | return condition(presentation.viewController)
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | },
111 | set: { isShowing in
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:127:15: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |
126 | /// Does our condition match?
127 | guard condition(presentation.viewController) else { return }
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 |
129 | logger.debug(
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:119:68: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
117 | guard let presentation = self.activePresentation(for: mode) else {
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:122:16: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
122 | assert(mode != .automatic)
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
123 | assert(presentation.mode != .automatic)
124 | if let mode = mode, presentation.mode != mode { return }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:12: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:49: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:58: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:50: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:59: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:14: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:179:65: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
177 | // FIXME: This can sometimes be seen in sheets, figure out why
178 | logger.warning(
179 | "Attempt to activate VC via Binding, won't work \(self)!")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 | }
181 | return
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:41: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:67: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:195:37: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
193 | /// TBD: what about "automatic" and such? Never active in an actual
194 | /// presentation!
195 | assert(presentation.mode == mode, "internal inconsistency!")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
196 | guard presentation.mode == mode else { return }
197 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
[12/31] Compiling ViewController AnyViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ContainerViewControllers/NavigationController.swift:179:10: warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | NavigationView {
178 | _rootViewController.view
179 | .controlled(by: _rootViewController)
| `- warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
180 | .navigationTitle(_rootViewController.navigationTitle)
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:74:8: note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
72 | * View.
73 | */
74 | func controlled<VC: ViewController>(by viewController: VC)
| `- note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
75 | -> some SwiftUI.View
76 | {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Debugging/DebugMode.swift:22:18: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public enum ViewControllerDebugMode: Equatable {
| `- note: consider making enum 'ViewControllerDebugMode' conform to the 'Sendable' protocol
12 | case none
13 | case overlay
:
20 | #if DEBUG
21 | @usableFromInline
22 | static let defaultValue = ViewControllerDebugMode.overlay
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' 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
23 | #else
24 | @usableFromInline
[13/31] Compiling ViewController NavigationController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ContainerViewControllers/NavigationController.swift:179:10: warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | NavigationView {
178 | _rootViewController.view
179 | .controlled(by: _rootViewController)
| `- warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
180 | .navigationTitle(_rootViewController.navigationTitle)
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:74:8: note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
72 | * View.
73 | */
74 | func controlled<VC: ViewController>(by viewController: VC)
| `- note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
75 | -> some SwiftUI.View
76 | {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Debugging/DebugMode.swift:22:18: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public enum ViewControllerDebugMode: Equatable {
| `- note: consider making enum 'ViewControllerDebugMode' conform to the 'Sendable' protocol
12 | case none
13 | case overlay
:
20 | #if DEBUG
21 | @usableFromInline
22 | static let defaultValue = ViewControllerDebugMode.overlay
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' 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
23 | #else
24 | @usableFromInline
[14/31] Compiling ViewController DebugMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ContainerViewControllers/NavigationController.swift:179:10: warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | NavigationView {
178 | _rootViewController.view
179 | .controlled(by: _rootViewController)
| `- warning: call to main actor-isolated instance method 'controlled(by:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
180 | .navigationTitle(_rootViewController.navigationTitle)
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:74:8: note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
72 | * View.
73 | */
74 | func controlled<VC: ViewController>(by viewController: VC)
| `- note: calls to instance method 'controlled(by:)' from outside of its actor context are implicitly asynchronous
75 | -> some SwiftUI.View
76 | {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Debugging/DebugMode.swift:22:18: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public enum ViewControllerDebugMode: Equatable {
| `- note: consider making enum 'ViewControllerDebugMode' conform to the 'Sendable' protocol
12 | case none
13 | case overlay
:
20 | #if DEBUG
21 | @usableFromInline
22 | static let defaultValue = ViewControllerDebugMode.overlay
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' 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
23 | #else
24 | @usableFromInline
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/31] Compiling ViewController ViewControllerInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[16/31] Compiling ViewController Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[17/31] Compiling ViewController MainViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
[18/31] Emitting module ViewController
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Debugging/DebugMode.swift:22:18: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public enum ViewControllerDebugMode: Equatable {
| `- note: consider making enum 'ViewControllerDebugMode' conform to the 'Sendable' protocol
12 | case none
13 | case overlay
:
20 | #if DEBUG
21 | @usableFromInline
22 | static let defaultValue = ViewControllerDebugMode.overlay
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerDebugMode' 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
23 | #else
24 | @usableFromInline
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Logger.swift:51:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @usableFromInline
17 | struct PrintLogger {
| `- note: consider making struct 'PrintLogger' conform to the 'Sendable' protocol
18 |
19 | static let logLevel : OSLogType = {
:
49 |
50 | @usableFromInline
51 | let logger = PrintLogger()
| |- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'PrintLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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
52 |
53 | #else
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:105:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | Binding(
104 | get: {
105 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | return false
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:109:16: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }
108 | if let mode = mode, mode != presentation.mode { return false }
109 | return condition(presentation.viewController)
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | },
111 | set: { isShowing in
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:34: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:117:63: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | guard !isShowing else { return } // isShowing=true would be activation
116 |
117 | guard let presentation = self.activePresentation(for: mode) else {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:127:15: warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |
126 | /// Does our condition match?
127 | guard condition(presentation.viewController) else { return }
| |- warning: capture of 'condition' with non-sendable type '(any _ViewController) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 |
129 | logger.debug(
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:119:68: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
117 | guard let presentation = self.activePresentation(for: mode) else {
118 | // This is fine, could have happened by other means.
119 | return logger.debug("Did not find VC to deactivate in: \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:122:16: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
120 | }
121 |
122 | assert(mode != .automatic)
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode?' conforms to `Sendable`; this is an error in the Swift 6 language mode
123 | assert(presentation.mode != .automatic)
124 | if let mode = mode, presentation.mode != mode { return }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:12: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:157:66: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
155 | Binding(
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
158 | logger.debug("Is presenting in mode \(mode): \(self)")
159 | return true
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:49: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:158:58: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
156 | get: {
157 | if self.activePresentations.contains(where: { $0.mode == mode }) {
158 | logger.debug("Is presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
159 | return true
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:50: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:162:59: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
160 | }
161 | else {
162 | logger.debug("Not presenting in mode \(mode): \(self)")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
163 | return false
164 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:14: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:172:68: warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
170 | guard !isShowing else {
171 | // isShowing=true would be activation
172 | if self.activePresentations.contains(where: { $0.mode == mode }) {
| `- warning: capture of 'mode' with non-sendable type 'ViewControllerPresentationMode' in an isolated closure; this is an error in the Swift 6 language mode
173 | logger.debug(
174 | "Attempt to activate VC via Binding, mode already active!")
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:179:65: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
177 | // FIXME: This can sometimes be seen in sheets, figure out why
178 | logger.warning(
179 | "Attempt to activate VC via Binding, won't work \(self)!")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
180 | }
181 | return
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:41: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:189:67: warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
187 | // This is fine, could have happened by other means.
188 | return logger.debug(
189 | "did not find VC for mode \(mode) to deactivate in: \(self)?")
| `- warning: implicit capture of 'self' requires that 'Self' conforms to `Sendable`; this is an error in the Swift 6 language mode
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/Presentation.swift:195:37: warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
193 | /// TBD: what about "automatic" and such? Never active in an actual
194 | /// presentation!
195 | assert(presentation.mode == mode, "internal inconsistency!")
| `- warning: implicit capture of 'mode' requires that 'ViewControllerPresentationMode' conforms to `Sendable`; this is an error in the Swift 6 language mode
196 | guard presentation.mode == mode else { return }
197 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:29:13: note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:98:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' may have shared mutable state; this is an error in the Swift 6 language mode
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
:
96 | @usableFromInline
97 | internal struct ViewControllerPresentationModeKey: EnvironmentKey {
98 | public static let defaultValue = ViewController.PresentationMode.custom
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' 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
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ContentView.swift:49:5: warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | @usableFromInline
36 | init(viewController: VC) { self.viewController = viewController }
| `- note: calls to initializer 'init(viewController:)' from outside of its actor context are implicitly asynchronous
37 |
38 | @usableFromInline
:
47 | @inlinable
48 | var controlledContentView : some SwiftUI.View {
49 | ControlWrapper(viewController: self)
| `- warning: call to main actor-isolated initializer 'init(viewController:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ViewControllerStorage.swift:191:17: warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
189 | // MARK: - Associated Object
190 |
191 | fileprivate var associatedObjectToken = 42
| |- warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'associatedObjectToken' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'associatedObjectToken' 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
192 |
193 | internal extension ViewController {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:15:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | @usableFromInline
14 | internal struct ViewControllerKey: EnvironmentKey {
15 | public static let defaultValue : _ViewController? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:20:17: note: protocol '_ViewController' does not conform to the 'Sendable' protocol
18 | * - RepresentedValue
19 | */
20 | public protocol _ViewController: AnyObject, CustomStringConvertible {
| `- note: protocol '_ViewController' does not conform to the 'Sendable' protocol
21 | // Even just `ObservableObject` is a PAT.
22 |
[19/31] Compiling ViewController Subscriptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[20/31] Compiling ViewController Title.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[21/31] Compiling ViewController TypeErasure.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController.swift:201:48: error: 'PresentationMode' is ambiguous for type lookup in this context
199 | * the given mode.
200 | */
201 | func present<VC>(_ viewController: VC, mode: PresentationMode)
| `- error: 'PresentationMode' is ambiguous for type lookup in this context
202 | where VC: ViewController
203 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:91:13: note: found this candidate
89 | * ```
90 | */
91 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:25:13: note: found this candidate
23 | typealias ObjectWillChangePublisher = ObservableObjectPublisher
24 |
25 | typealias PresentationMode = ViewControllerPresentationMode
| `- note: found this candidate
26 |
27 | // MARK: - Titles
[22/31] Compiling ViewController PresentationMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:98:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' may have shared mutable state; this is an error in the Swift 6 language mode
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
:
96 | @usableFromInline
97 | internal struct ViewControllerPresentationModeKey: EnvironmentKey {
98 | public static let defaultValue = ViewController.PresentationMode.custom
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' 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
99 | }
100 |
[23/31] Compiling ViewController ViewControllerPresentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:98:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' may have shared mutable state; this is an error in the Swift 6 language mode
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
:
96 | @usableFromInline
97 | internal struct ViewControllerPresentationModeKey: EnvironmentKey {
98 | public static let defaultValue = ViewController.PresentationMode.custom
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' 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
99 | }
100 |
[24/31] Compiling ViewController ReExports.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/Presentations/PresentationMode.swift:98:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' may have shared mutable state; this is an error in the Swift 6 language mode
27 | * ```
28 | */
29 | public enum ViewControllerPresentationMode: Hashable {
| `- note: consider making enum 'ViewControllerPresentationMode' conform to the 'Sendable' protocol
30 | // FIXME: Used in two different ways, for accessing the actual presentation,
31 | // and for deciding what presentation to use.
:
96 | @usableFromInline
97 | internal struct ViewControllerPresentationModeKey: EnvironmentKey {
98 | public static let defaultValue = ViewController.PresentationMode.custom
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ViewControllerPresentationMode' 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
99 | }
100 |
[25/31] Compiling ViewController DebugOverlay.swift
[26/31] Compiling ViewController HierarchyView.swift
[27/31] Compiling ViewController TypeMismatchInfoView.swift
[28/31] Compiling ViewController ViewControllerStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ViewControllerStorage.swift:191:17: warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
189 | // MARK: - Associated Object
190 |
191 | fileprivate var associatedObjectToken = 42
| |- warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'associatedObjectToken' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'associatedObjectToken' 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
192 |
193 | internal extension ViewController {
[29/31] Compiling ViewController _ViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/ViewControllerStorage.swift:191:17: warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
189 | // MARK: - Associated Object
190 |
191 | fileprivate var associatedObjectToken = 42
| |- warning: var 'associatedObjectToken' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'associatedObjectToken' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'associatedObjectToken' 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
192 |
193 | internal extension ViewController {
[30/31] Compiling ViewController ViewControllerEnvironment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:15:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | @usableFromInline
14 | internal struct ViewControllerKey: EnvironmentKey {
15 | public static let defaultValue : _ViewController? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:20:17: note: protocol '_ViewController' does not conform to the 'Sendable' protocol
18 | * - RepresentedValue
19 | */
20 | public protocol _ViewController: AnyObject, CustomStringConvertible {
| `- note: protocol '_ViewController' does not conform to the 'Sendable' protocol
21 | // Even just `ObservableObject` is a PAT.
22 |
[31/31] Compiling ViewController ViewControllerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewControllerEnvironment.swift:15:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' may have shared mutable state; this is an error in the Swift 6 language mode
13 | @usableFromInline
14 | internal struct ViewControllerKey: EnvironmentKey {
15 | public static let defaultValue : _ViewController? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(any _ViewController)?' 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
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController/ViewController/_ViewController.swift:20:17: note: protocol '_ViewController' does not conform to the 'Sendable' protocol
18 | * - RepresentedValue
19 | */
20 | public protocol _ViewController: AnyObject, CustomStringConvertible {
| `- note: protocol '_ViewController' does not conform to the 'Sendable' protocol
21 | // Even just `ObservableObject` is a PAT.
22 |
BUILD FAILURE 6.0 macosSpm