Build Information
Failed to build RxAppKit, reference main (54d929
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 11:30:30 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
21 | open func selectText(_ sender: Any?)
22 | @MainActor weak open var delegate: (any NSTextFieldDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
23 | open func textShouldBeginEditing(_ textObject: NSText) -> Bool
24 | open func textShouldEndEditing(_ textObject: NSText) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSTextFieldDelegateProxy.swift:5:24: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
3 | import RxCocoa
4 |
5 | extension NSTextField: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
6 | public typealias Delegate = NSTextFieldDelegate
7 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSTextStorageDelegateProxy.swift:5:1: warning: extension declares a conformance of imported type 'NSTextStorage' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
3 | import RxCocoa
4 |
5 | extension NSTextStorage: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSTextStorage' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public typealias Delegate = NSTextStorageDelegate
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
[407/418] Compiling RxAppKit RxNSToolbarDelegateProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[408/418] Compiling RxAppKit RxNSToolbarProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[409/418] Compiling RxAppKit ActionProxy+HasDoubleAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[410/418] Compiling RxAppKit ActionProxy+HasTargetAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[411/418] Compiling RxAppKit ActionProxy+HasTargetRequiredAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[412/418] Compiling RxAppKit ActionProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[413/418] Compiling RxAppKit HasDoubleAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[414/418] Compiling RxAppKit HasTargeAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[415/418] Compiling RxAppKit HasTargetRequiredAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[416/418] Compiling RxAppKit BaseTarget.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[417/418] Compiling RxAppKit DoubleClickTarget.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
[418/418] Compiling RxAppKit RxTarget.swift
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:1: warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| |- warning: extension declares a conformance of imported type 'NSToolbar' to imported protocol 'HasDelegate'; this will not behave correctly if the owners of 'AppKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
8 | public typealias Delegate = NSToolbarDelegate
9 | }
AppKit.NSToolbar:16:30: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(swift, obsoleted: 3, renamed: "removeItem(identifier:)")
15 | open func removeItemWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier)
16 | @MainActor weak open var delegate: (any NSToolbarDelegate)? { get set }
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var isVisible: Bool { get set }
18 | @available(swift, obsoleted: 3, renamed: "isVisible")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarDelegateProxy.swift:7:22: note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
5 | import RxCocoa
6 |
7 | extension NSToolbar: HasDelegate {
| `- note: add '@preconcurrency' to the 'HasDelegate' conformance to defer isolation checking to run time
8 | public typealias Delegate = NSToolbarDelegate
9 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/RxSwift/Sources/RxCocoa/DelegateProxyType.swift:263:9: note: 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: 'delegate' declared here
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Proxies/RxNSToolbarProxy.swift:18:56: warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | let didSelectItem = PublishRelay<(NSToolbarItem, Any?)>()
16 |
17 | @objc func run(_ toolbarItem: NSToolbarItem) {
| `- note: add '@MainActor' to make instance method 'run' part of global actor 'MainActor'
18 | didSelectItem.accept((toolbarItem, toolbarItem.representedObject))
| `- warning: main actor-isolated property 'representedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSToolbarItem+.swift:15:9: note: property declared here
13 | private static var representedObjectKey: Void = ()
14 |
15 | var representedObject: Any? {
| `- note: property declared here
16 | set {
17 | let wrapper = RepresentedObjectWrapper(wrappedValue: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift:6:13: warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasDoubleActionSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasDoubleActionSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasDoubleActionSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasDoubleAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargeAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift:6:13: warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | import RxSwift
5 |
6 | private let hasSwizzledKey = AssociationKey<Bool>(default: false)
| |- warning: let 'hasSwizzledKey' is not concurrency-safe because non-'Sendable' type 'AssociationKey<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hasSwizzledKey' 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
7 |
8 | extension Reactive where Base: NSObject, Base: HasTargetRequiredAction {
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Common/NSObject+Association.swift:4:17: note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
2 | import RxSwift
3 |
4 | internal struct AssociationKey<Value> {
| `- note: consider making generic struct 'AssociationKey' conform to the 'Sendable' protocol
5 | fileprivate let address: UnsafeRawPointer
6 | fileprivate let `default`: Value!
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:43:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | app.sendAction(action, to: pair.target, from: sender)
45 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | @objc func action(_ sender: Any?) {
41 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:56:26: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | app.sendAction(doubleAction, to: target, from: sender)
58 | } else {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | @objc func doubleAction(_ sender: Any?) {
54 | func invoke(_ pair: Pair) {
| `- note: add '@MainActor' to make local function 'invoke' part of global actor 'MainActor'
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
AppKit.NSApplication:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
| `- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| |- warning: sending 'pair.target' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'pair.target' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:44:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
42 | guard let action = pair.action else { return }
43 | if let app = NSApp {
44 | app.sendAction(action, to: pair.target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
45 | } else {
46 | _ = pair.target?.perform(action, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| |- warning: sending 'target.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'target.some' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing data races between main actor-isolated and task-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
/Users/admin/builder/spi-builder-workspace/Sources/RxAppKit/Target-Action/ActionProxy/ActionProxy.swift:57:21: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
55 | guard let target = pair.target, let doubleAction = pair.doubleAction else { return }
56 | if let app = NSApp {
57 | app.sendAction(doubleAction, to: target, from: sender)
| `- warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
BUILD FAILURE 6.0 macosSpm