Build Information
Successful build of RxAppKit, reference main (ea8128
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 17:45:43 UTC.
Swift 6 data race errors: 47
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:76:50: warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
74 | Customizable toolbars must have a delegate, and must implement the required `NSToolbarDelegate` methods.
75 | */
76 | @property (nullable, weak) id<NSToolbarDelegate> delegate;
| `- warning: main actor-isolated property 'delegate' cannot be used to satisfy nonisolated requirement from protocol 'HasDelegate'; this is an error in the Swift 6 language mode
77 |
78 | /**
/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: requirement 'delegate' declared here
261 |
262 | /// Delegate
263 | var delegate: Delegate? { get set }
| `- note: requirement '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: add '@MainActor' to make let 'hasDoubleActionSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'hasSwizzledKey' part of global actor 'MainActor'
| `- 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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class 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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
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 value of non-Sendable type 'Any?' 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 value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
58 | } else {
59 | _ = target.perform(doubleAction, with: sender)
Build complete! (14.53s)
Build complete.
{
"dependencies" : [
{
"identity" : "rxswift",
"requirement" : {
"range" : [
{
"lower_bound" : "6.6.0",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ReactiveX/RxSwift"
},
{
"identity" : "differencekit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ra1028/DifferenceKit"
}
],
"manifest_display_name" : "RxAppKit",
"name" : "RxAppKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "RxAppKit",
"targets" : [
"RxAppKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RxAppKitTests",
"module_type" : "SwiftTarget",
"name" : "RxAppKitTests",
"path" : "Tests/RxAppKitTests",
"sources" : [
"RxAppKitTests.swift"
],
"target_dependencies" : [
"RxAppKit"
],
"type" : "test"
},
{
"c99name" : "RxAppKitObjC",
"module_type" : "ClangTarget",
"name" : "RxAppKitObjC",
"path" : "Sources/RxAppKitObjC",
"product_memberships" : [
"RxAppKit"
],
"sources" : [
"ObjCRuntimeAliases.m"
],
"type" : "library"
},
{
"c99name" : "RxAppKit",
"module_type" : "SwiftTarget",
"name" : "RxAppKit",
"path" : "Sources/RxAppKit",
"product_dependencies" : [
"RxSwift",
"RxCocoa",
"DifferenceKit"
],
"product_memberships" : [
"RxAppKit"
],
"sources" : [
"Common/AnyDifferentiable.swift",
"Common/DelegateProxyType.swift",
"Common/NSControl.StateValue+.swift",
"Common/NSObject+Association.swift",
"Common/NSToolbar+.swift",
"Common/NSToolbarItem+.swift",
"Common/ObjC+Constants.swift",
"Common/ObjC+Messages.swift",
"Common/ObjC+Runtime.swift",
"Common/ObjC+RuntimeSubclassing.swift",
"Common/ObjC+Selector.swift",
"Common/Objc+Synchronized.swift",
"Common/ObjectContainer.swift",
"Common/RxAppKit.swift",
"Common/RxCocoa.swift",
"Common/TableViewAnimationConfiguration.swift",
"Common/ViewTransition.swift",
"Components/HasDoubleAction+Rx.swift",
"Components/HasTargeAction+Rx.swift",
"Components/HasTargetRequiredAction+Rx.swift",
"Components/NSAlert+Rx.swift",
"Components/NSApplication+Rx.swift",
"Components/NSBrowser+Rx.swift",
"Components/NSButton+Rx.swift",
"Components/NSCollectionView+Rx.swift",
"Components/NSCollectionViewItem+Rx.swift",
"Components/NSColorPanel+Rx.swift",
"Components/NSColorWell+Rx.swift",
"Components/NSComboBox+Rx.swift",
"Components/NSControl+Rx.swift",
"Components/NSDatePicker+Rx.swift",
"Components/NSEvent+Rx.swift",
"Components/NSFontManager+Rx.swift",
"Components/NSGestureRecognizer+Rx.swift",
"Components/NSMenu+Rx.swift",
"Components/NSMenuItem+Rx.swift",
"Components/NSObject+Rx.swift",
"Components/NSOutlineView+Rx.swift",
"Components/NSPageController+Rx.swift",
"Components/NSPopUpButton+Rx.swift",
"Components/NSPopover+Rx.swift",
"Components/NSProgressIndicator+Rx.swift",
"Components/NSResponder+Rx.swift",
"Components/NSSavePanel+Rx.swift",
"Components/NSScrollView+Rx.swift",
"Components/NSSearchField+Rx.swift",
"Components/NSSegmentedControl+Rx.swift",
"Components/NSSharingServicePickerToolbarItem+Rx.swift",
"Components/NSSplitView+Rx.swift",
"Components/NSSplitViewController+Rx.swift",
"Components/NSStackView+Rx.swift",
"Components/NSStandardKeyBindingResponding+Rx.swift",
"Components/NSStepper+Rx.swift",
"Components/NSSwitch+Rx.swift",
"Components/NSTabView+Rx.swift",
"Components/NSTabViewController+Rx.swift",
"Components/NSTableView+Rx.swift",
"Components/NSTextField+Rx.swift",
"Components/NSTextStorage+Rx.swift",
"Components/NSTextView+Rx.swift",
"Components/NSToolbar+Rx.swift",
"Components/NSToolbarItem+Rx.swift",
"Components/NSView+Rx.swift",
"Components/NSViewController+Rx.swift",
"Components/NSWindow+Rx.swift",
"Components/NSWindowController+Rx.swift",
"DataSources & Adapters/Browser/BrowserAdapter.swift",
"DataSources & Adapters/Browser/RxNSBrowserAdapter.swift",
"DataSources & Adapters/CollectionView/CollectionViewArrayDataSource.swift",
"DataSources & Adapters/CollectionView/CollectionViewSectionedDataSource.swift",
"DataSources & Adapters/CollectionView/RxNSCollectionViewArrayDataSource.swift",
"DataSources & Adapters/CollectionView/RxNSCollectionViewSectionedDataSource.swift",
"DataSources & Adapters/ComboBox/ComboBoxDataSource.swift",
"DataSources & Adapters/ComboBox/RxNSComboBoxDataSource.swift",
"DataSources & Adapters/OutlineView/OutlineViewAdapter.swift",
"DataSources & Adapters/OutlineView/RxNSOutlineViewAdapter.swift",
"DataSources & Adapters/PageController/PageControllerAdapter.swift",
"DataSources & Adapters/PageController/RxNSPageControllerAdapter.swift",
"DataSources & Adapters/SharingServicePickerToolbarItem/RxNSSharingServicePickerToolbarItemAdapter.swift",
"DataSources & Adapters/SharingServicePickerToolbarItem/SharingServicePickerToolbarItemAdapter.swift",
"DataSources & Adapters/TableView/RxNSTableViewArrayAdapter.swift",
"DataSources & Adapters/TableView/RxNSTableViewArrayAnimatedAdapter.swift",
"DataSources & Adapters/TableView/TableViewArrayAdapter.swift",
"DataSources & Adapters/Toolbar/RxNSToolbarAdapter.swift",
"DataSources & Adapters/Toolbar/ToolbarAdapter.swift",
"Protocols/RequiredMethodDelegateProxyType.swift",
"Protocols/RxNSBrowserDelegateType.swift",
"Protocols/RxNSCollectionViewDataSourceType.swift",
"Protocols/RxNSComboBoxDataSourceType.swift",
"Protocols/RxNSOutlineViewDataSourceType.swift",
"Protocols/RxNSPageControllDelegateType.swift",
"Protocols/RxNSSharingServicePickerToolbarItemDelegateType.swift",
"Protocols/RxNSTableViewDataSourceType.swift",
"Protocols/RxNSToolbarDelegateType.swift",
"Protocols/RxToolbarItemRepresentable.swift",
"Proxies/RowsViewDataSourceType.swift",
"Proxies/RxNSBrowserDelegateProxy.swift",
"Proxies/RxNSCollectionViewDataSourceProxy.swift",
"Proxies/RxNSCollectionViewDelegateProxy.swift",
"Proxies/RxNSComboBoxDataSourceProxy.swift",
"Proxies/RxNSMenuDelegateProxy.swift",
"Proxies/RxNSMenuProxy.swift",
"Proxies/RxNSOpenSavePanelDelegateProxy.swift",
"Proxies/RxNSOutlineViewDataSourceProxy.swift",
"Proxies/RxNSOutlineViewDelegateProxy.swift",
"Proxies/RxNSPageControllDelegateProxy.swift",
"Proxies/RxNSPopoverDelegateProxy.swift",
"Proxies/RxNSSearchFieldDelegateProxy.swift",
"Proxies/RxNSSharingServicePickerDelegateProxy.swift",
"Proxies/RxNSSharingServicePickerToolbarItemDelegateProxy.swift",
"Proxies/RxNSStackViewDelegateProxy.swift",
"Proxies/RxNSTabViewDelegateProxy.swift",
"Proxies/RxNSTableViewDataSourceProxy.swift",
"Proxies/RxNSTableViewDelegateProxy.swift",
"Proxies/RxNSTextFieldDelegateProxy.swift",
"Proxies/RxNSTextStorageDelegateProxy.swift",
"Proxies/RxNSToolbarDelegateProxy.swift",
"Proxies/RxNSToolbarProxy.swift",
"Target-Action/ActionProxy/ActionProxy+HasDoubleAction.swift",
"Target-Action/ActionProxy/ActionProxy+HasTargetAction.swift",
"Target-Action/ActionProxy/ActionProxy+HasTargetRequiredAction.swift",
"Target-Action/ActionProxy/ActionProxy.swift",
"Target-Action/Protocols/HasDoubleAction.swift",
"Target-Action/Protocols/HasTargeAction.swift",
"Target-Action/Protocols/HasTargetRequiredAction.swift",
"Target-Action/Target/BaseTarget.swift",
"Target-Action/Target/DoubleClickTarget.swift",
"Target-Action/Target/RxTarget.swift"
],
"target_dependencies" : [
"RxAppKitObjC"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.