Build Information
Failed to build TypedNotificationCenter, reference master (618367
), with Swift 6.1 for Wasm on 28 May 2025 13:00:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cyberbeni/typednotificationcenter.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cyberbeni/typednotificationcenter
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6183677 Merge pull request #72 from Cyberbeni/format-workflow-update
Cloned https://github.com/cyberbeni/typednotificationcenter.git
Revision (git rev-parse @):
61836777a803f61d6f29152854a15018b13bfa63
SUCCESS checkout https://github.com/cyberbeni/typednotificationcenter.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/cyberbeni/typednotificationcenter.git
https://github.com/cyberbeni/typednotificationcenter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "TypedNotificationCenter",
"name" : "TypedNotificationCenter",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "TypedNotificationCenter",
"targets" : [
"TypedNotificationCenter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TypedNotificationCenterTests",
"module_type" : "SwiftTarget",
"name" : "TypedNotificationCenterTests",
"path" : "Tests/TypedNotificationCenterTests",
"sources" : [
"Bridged Notification tests/BridgedNotificationApiTests.swift",
"Bridged Notification tests/BridgedNotificationInternalTests.swift",
"Bridged Notification tests/NotificationNameApiTests.swift",
"Bridged Notification tests/Utility/SampleBridgedNotification.swift",
"Core tests/ApiTests.swift",
"Core tests/AsyncApiTests.swift",
"Core tests/Utility/SampleNotification.swift",
"Internal tests/InternalTests.swift",
"Utility/TestCase.swift",
"Utility/XCTestCase+Utils.swift"
],
"target_dependencies" : [
"TypedNotificationCenter"
],
"type" : "test"
},
{
"c99name" : "TypedNotificationCenterPerformanceTests",
"module_type" : "SwiftTarget",
"name" : "TypedNotificationCenterPerformanceTests",
"path" : "Tests/TypedNotificationCenterPerformanceTests",
"sources" : [
"BridgedNotification.swift",
"Posting.swift",
"Subscribing.swift",
"Unsubscribing.swift",
"Utility/PerformanceTestNotifications.swift",
"Utility/TestCase.swift"
],
"target_dependencies" : [
"TypedNotificationCenter"
],
"type" : "test"
},
{
"c99name" : "TypedNotificationCenter",
"module_type" : "SwiftTarget",
"name" : "TypedNotificationCenter",
"path" : "Sources/TypedNotificationCenter",
"product_memberships" : [
"TypedNotificationCenter"
],
"sources" : [
"BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift",
"BridgedNotifications/Core/BridgedNotification.swift",
"BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift",
"BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift",
"BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift",
"BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift",
"BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift",
"BridgedNotifications/PDFKit/PDFView.swift",
"BridgedNotifications/UIKit/UIResponder.swift",
"Core/TypeErasure/AnyPayloadTypedNotification.swift",
"Core/TypeErasure/AnyTypedNotification.swift",
"Core/TypeErasure/SameTypedNotification.swift",
"Core/TypedNotification.swift",
"Core/TypedNotificationCenter.swift",
"Core/TypedNotificationObservation.swift",
"Core/WeakBox.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Info.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/17] Emitting module TypedNotificationCenter
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:30:13: warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public extension TypedNotificationCenter {
30 | static var invalidSenderBlock: (Any?, Notification.Name) -> Void = { sender, notificationName in
| |- warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidSenderBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidSenderBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | assertionFailure("Invalid sender(\(sender ?? NSNull())) for \"\(notificationName)\"")
32 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:34:13: warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | static var invalidPayloadBlock: (Error, [AnyHashable: Any]?, Notification.Name) -> Void = { error, _, _ in
| |- warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidPayloadBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidPayloadBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | assertionFailure(error.localizedDescription)
36 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
[4/17] Compiling TypedNotificationCenter TypedNotificationObservation+GenericNsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:85: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:97: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:142: error: cannot infer type of closure parameter 'notification' without a type annotation
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
[5/17] Compiling TypedNotificationCenter PDFView.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:85: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:97: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:142: error: cannot infer type of closure parameter 'notification' without a type annotation
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
[6/17] Compiling TypedNotificationCenter BridgedNotification+ErrorHandlingCustomization.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:30:13: warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public extension TypedNotificationCenter {
30 | static var invalidSenderBlock: (Any?, Notification.Name) -> Void = { sender, notificationName in
| |- warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidSenderBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidSenderBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | assertionFailure("Invalid sender(\(sender ?? NSNull())) for \"\(notificationName)\"")
32 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:34:13: warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | static var invalidPayloadBlock: (Error, [AnyHashable: Any]?, Notification.Name) -> Void = { error, _, _ in
| |- warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidPayloadBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidPayloadBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | assertionFailure(error.localizedDescription)
36 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
[7/17] Compiling TypedNotificationCenter BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:30:13: warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public extension TypedNotificationCenter {
30 | static var invalidSenderBlock: (Any?, Notification.Name) -> Void = { sender, notificationName in
| |- warning: static property 'invalidSenderBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidSenderBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidSenderBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | assertionFailure("Invalid sender(\(sender ?? NSNull())) for \"\(notificationName)\"")
32 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification+ErrorHandlingCustomization.swift:34:13: warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | static var invalidPayloadBlock: (Error, [AnyHashable: Any]?, Notification.Name) -> Void = { error, _, _ in
| |- warning: static property 'invalidPayloadBlock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invalidPayloadBlock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invalidPayloadBlock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | assertionFailure(error.localizedDescription)
36 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
[8/17] Compiling TypedNotificationCenter TypedNotificationCenter+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
[9/17] Compiling TypedNotificationCenter TypedNotificationObservation+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
[10/19] Compiling TypedNotificationCenter UIResponder.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'sender' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:48: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'sender' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:48: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
[11/19] Compiling TypedNotificationCenter AnyPayloadTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'sender' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:48: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'sender' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:48: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
[12/19] Compiling TypedNotificationCenter TypedNotificationCenter+BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:90: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:102: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:147: error: cannot infer type of closure parameter 'notification' without a type annotation
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
[13/19] Compiling TypedNotificationCenter TypedNotificationObservation+NsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:90: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:102: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:147: error: cannot infer type of closure parameter 'notification' without a type annotation
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
[14/19] Compiling TypedNotificationCenter AnyTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:47:48: error: 'nil' requires a contextual type
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
48 | notificationBlock()
49 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:55:54: error: 'nil' requires a contextual type
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
56 | notificationBlock()
57 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:40: error: cannot infer type of closure parameter 'sender' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:48: error: cannot infer type of closure parameter 'queue' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:40: error: cannot infer type of closure parameter 'sender' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:48: error: cannot infer type of closure parameter 'queue' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
[15/19] Compiling TypedNotificationCenter SameTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:47:48: error: 'nil' requires a contextual type
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
48 | notificationBlock()
49 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:55:54: error: 'nil' requires a contextual type
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
56 | notificationBlock()
57 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:40: error: cannot infer type of closure parameter 'sender' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:48: error: cannot infer type of closure parameter 'queue' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:40: error: cannot infer type of closure parameter 'sender' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:48: error: cannot infer type of closure parameter 'queue' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
[16/19] Compiling TypedNotificationCenter TypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
[17/19] Compiling TypedNotificationCenter TypedNotificationCenter.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
[18/19] Compiling TypedNotificationCenter TypedNotificationObservation.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
[19/19] Compiling TypedNotificationCenter WeakBox.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/TypedNotificationCenterTests/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Info.plist
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] Compiling TypedNotificationCenter AnyTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:47:48: error: 'nil' requires a contextual type
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
48 | notificationBlock()
49 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:55:54: error: 'nil' requires a contextual type
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
56 | notificationBlock()
57 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:40: error: cannot infer type of closure parameter 'sender' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:48: error: cannot infer type of closure parameter 'queue' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:40: error: cannot infer type of closure parameter 'sender' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:48: error: cannot infer type of closure parameter 'queue' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
[3/16] Compiling TypedNotificationCenter SameTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:46:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
48 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:47:48: error: 'nil' requires a contextual type
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
47 | notificationCenter._observe(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
48 | notificationBlock()
49 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:54:47: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
56 | notificationBlock()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:55:54: error: 'nil' requires a contextual type
53 | init<T: BridgedNotification>(_: T.Type) {
54 | observeBlock = { notificationCenter, queue, notificationBlock in
55 | notificationCenter._bridgeObserve(T.self, object: nil, queue: queue) { _, _ in
| `- error: 'nil' requires a contextual type
56 | notificationBlock()
57 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:40: error: cannot infer type of closure parameter 'sender' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:48: error: cannot infer type of closure parameter 'queue' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:47:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
47 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
48 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, payload in
49 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:40: error: cannot infer type of closure parameter 'sender' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:48: error: cannot infer type of closure parameter 'queue' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:58:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
56 |
57 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
58 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
59 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, payload in
60 | notificationBlock(sender, payload)
[4/18] Compiling TypedNotificationCenter TypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
[5/18] Compiling TypedNotificationCenter TypedNotificationCenter.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
[6/18] Compiling TypedNotificationCenter TypedNotificationObservation+GenericNsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:85: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:97: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:142: error: cannot infer type of closure parameter 'notification' without a type annotation
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
[7/18] Compiling TypedNotificationCenter PDFView.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:85: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:97: error: 'nil' requires a contextual type
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:36:142: error: cannot infer type of closure parameter 'notification' without a type annotation
34 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
35 | self.nsNotificationCenter = nsNotificationCenter
36 | observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
37 | typedNotificationCenter?.forwardGenericPost(
38 | notification.name,
[8/18] Compiling TypedNotificationCenter TypedNotificationCenter+BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:90: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:102: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:147: error: cannot infer type of closure parameter 'notification' without a type annotation
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
[9/18] Compiling TypedNotificationCenter TypedNotificationObservation+NsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:90: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:102: error: 'nil' requires a contextual type
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: 'nil' requires a contextual type
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:37:147: error: cannot infer type of closure parameter 'notification' without a type annotation
35 | let nsNotificationCenter = typedNotificationCenter.nsNotificationCenterForBridging
36 | self.nsNotificationCenter = nsNotificationCenter
37 | observation = nsNotificationCenter.addObserver(forName: type.notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
| `- error: cannot infer type of closure parameter 'notification' without a type annotation
38 | let sender: T.Sender
39 | if T.Sender.self == NSNull.self,
[10/18] Compiling TypedNotificationCenter UIResponder.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'sender' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:48: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'sender' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:48: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
[11/18] Compiling TypedNotificationCenter AnyPayloadTypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:40: error: cannot infer type of closure parameter 'sender' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:48: error: cannot infer type of closure parameter 'queue' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:46:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
47 | notificationCenter._observe(T.self, object: sender, queue: queue) { sender, _ in
48 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:20: error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationCenter' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:40: error: cannot infer type of closure parameter 'sender' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'sender' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:48: error: cannot infer type of closure parameter 'queue' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'queue' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:54:55: error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
52 |
53 | init<T: BridgedNotification>(_: T.Type) where T.Sender == Sender {
54 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
| `- error: cannot infer type of closure parameter 'notificationBlock' without a type annotation
55 | notificationCenter._bridgeObserve(T.self, object: sender, queue: queue) { sender, _ in
56 | notificationBlock(sender)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/18] Compiling TypedNotificationCenter BridgedNotification+ErrorHandlingCustomization.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
[13/18] Compiling TypedNotificationCenter BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
[14/18] Emitting module TypedNotificationCenter
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | public var type: Any.Type
31 | public var source: [AnyHashable: Any]
| `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationCenter+BridgedNotification.swift:30:83: error: cannot find type 'OperationQueue' in scope
28 |
29 | extension TypedNotificationCenter {
30 | func _bridgeObserve<T: BridgedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
31 | _bridgeObserve(T.self, T.self)
32 | return _observe(T.self, object: object, queue: queue, block: block)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _NsNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, type: any BridgedNotification.Type) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:31:41: error: cannot find type 'NotificationCenter' in scope
29 | final class _GenericNsNotificationObservation: TypedNotificationObservation {
30 | private let observation: Any
31 | private weak var nsNotificationCenter: NotificationCenter?
| `- error: cannot find type 'NotificationCenter' in scope
32 |
33 | init(typedNotificationCenter: TypedNotificationCenter, notificationName: Notification.Name) {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyPayloadTypedNotification<Sender> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender {
46 | observeBlock = { notificationCenter, sender, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyPayloadTypedNotification.swift:63:93: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe<Sender>(_ proxy: AnyPayloadTypedNotification<Sender>, object: Sender?, queue: OperationQueue? = nil, block: @escaping (Sender) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, object, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:44:58: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class AnyTypedNotification {
44 | fileprivate let observeBlock: (TypedNotificationCenter, OperationQueue?, @escaping () -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | init<T: TypedNotification>(_: T.Type) {
46 | observeBlock = { notificationCenter, queue, notificationBlock in
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/AnyTypedNotification.swift:63:53: error: cannot find type 'OperationQueue' in scope
61 |
62 | public extension TypedNotificationCenter {
63 | func observe(_ proxy: AnyTypedNotification, queue: OperationQueue? = nil, block: @escaping () -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
64 | proxy.observeBlock(self, queue, block)
65 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:44:67: error: cannot find type 'OperationQueue' in scope
42 |
43 | public final class SameTypedNotification<Sender, Payload> {
44 | fileprivate let observeBlock: (TypedNotificationCenter, Sender?, OperationQueue?, @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
| `- error: cannot find type 'OperationQueue' in scope
45 | fileprivate let postBlock: (TypedNotificationCenter, Sender, Payload) -> Void
46 | init<T: TypedNotification>(_: T.Type) where T.Sender == Sender, T.Payload == Payload {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypeErasure/SameTypedNotification.swift:70:105: error: cannot find type 'OperationQueue' in scope
68 |
69 | public extension TypedNotificationCenter {
70 | func observe<Sender, Payload>(_ proxy: SameTypedNotification<Sender, Payload>, object: Sender?, queue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
71 | block: @escaping (Sender, Payload) -> Void) -> TypedNotificationObservation
72 | {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:35:39: error: cannot find type 'NotificationCenter' in scope
33 | let observerLock = NSLock()
34 | var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
35 | let nsNotificationCenterForBridging: NotificationCenter
| `- error: cannot find type 'NotificationCenter' in scope
36 | var bridgedObservers = [Notification.Name: [SenderIdentifier: [ObjectIdentifier: WeakBox<_GenericBridgedNotificationObservation>]]]()
37 | var bridgedNsnotificationObservers = [Notification.Name: TypedNotificationObservation]()
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:70:75: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | func _observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
71 | let object = T.Sender.self is NSNull.Type ? nil : object
72 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:123:47: error: cannot find type 'NotificationCenter' in scope
121 | // MARK: - Public interface
122 |
123 | public init(nsNotificationCenterForBridging: NotificationCenter = .default) {
| `- error: cannot find type 'NotificationCenter' in scope
124 | self.nsNotificationCenterForBridging = nsNotificationCenterForBridging
125 | }
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:129:81: error: cannot find type 'OperationQueue' in scope
127 | public static let `default` = TypedNotificationCenter()
128 |
129 | public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
130 | if let type = T.self as? any BridgedNotification.Type {
131 | _bridgeObserve(T.self, type.self)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
[15/18] Compiling TypedNotificationCenter TypedNotificationObservation.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
[16/18] Compiling TypedNotificationCenter WeakBox.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:52:78: error: cannot find type 'OperationQueue' in scope
50 |
51 | final class _TypedNotificationObservation<T: TypedNotification>: TypedNotificationObservation {
52 | init(notificationCenter: TypedNotificationCenter, sender: T.Sender?, queue: OperationQueue?, block: @escaping T.ObservationBlock) {
| `- error: cannot find type 'OperationQueue' in scope
53 | self.notificationCenter = notificationCenter
54 | self.sender = sender
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationObservation.swift:63:13: error: cannot find type 'OperationQueue' in scope
61 | weak var sender: T.Sender?
62 | let senderIdentifier: SenderIdentifier
63 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
64 | var block: T.ObservationBlock?
65 |
[17/18] Compiling TypedNotificationCenter TypedNotificationCenter+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
[18/18] Compiling TypedNotificationCenter TypedNotificationObservation+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:97:88: error: cannot find type 'OperationQueue' in scope
95 | // MARK: - Public interface
96 |
97 | public func observe(_ notificationName: Notification.Name, object: AnyObject?, queue: OperationQueue? = nil, block: @escaping (Notification) -> Void) -> TypedNotificationObservation {
| `- error: cannot find type 'OperationQueue' in scope
98 | let observation = _GenericBridgedNotificationObservation(notificationCenter: self, notificationName: notificationName, sender: object, queue: queue, block: block)
99 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:43:13: error: cannot find type 'OperationQueue' in scope
41 | weak var sender: AnyObject?
42 | let senderIdentifier: SenderIdentifier
43 | var queue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
44 | var block: ((Notification) -> Void)?
45 |
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericBridgedNotification.swift:30:116: error: cannot find type 'OperationQueue' in scope
28 |
29 | final class _GenericBridgedNotificationObservation: TypedNotificationObservation {
30 | init(notificationCenter: TypedNotificationCenter, notificationName: Notification.Name, sender: AnyObject?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
31 | self.notificationCenter = notificationCenter
32 | self.notificationName = notificationName
BUILD FAILURE 6.1 wasm