The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of TypedNotificationCenter, reference master (618367), with Swift 6.0 for Linux on 29 Nov 2024 06:56:27 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.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:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/cyberbeni/typednotificationcenter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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
[3/17] Compiling TypedNotificationCenter TypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:127:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
    :
125 | 	}
126 |
127 | 	public static let `default` = TypedNotificationCenter()
    |                    |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | 	public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:6: warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |      |- warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:12: warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |            `- warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:20: warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |                    `- warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:6: warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |      |- warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 | 				}
115 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:12: warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |            `- warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | 				}
115 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:20: warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |                    `- warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | 				}
115 | 			} else {
[4/17] Compiling TypedNotificationCenter TypedNotificationCenter.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:127:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
    :
125 | 	}
126 |
127 | 	public static let `default` = TypedNotificationCenter()
    |                    |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | 	public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:6: warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |      |- warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:12: warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |            `- warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:99:20: warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
 99 | 					block(sender, payload)
    |                    `- warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | 				}
101 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:6: warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |      |- warning: capture of 'block' with non-sendable type '(T.Sender, T.Payload) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
114 | 				}
115 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:12: warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |            `- warning: capture of 'sender' with non-sendable type 'T.Sender' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | 				}
115 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:113:20: warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
113 | 					block(sender, payload)
    |                    `- warning: capture of 'payload' with non-sendable type 'T.Payload' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 | 				}
115 | 			} else {
[5/17] Compiling TypedNotificationCenter AnyTypedNotification.swift
[6/17] Compiling TypedNotificationCenter SameTypedNotification.swift
[7/19] Compiling TypedNotificationCenter UIResponder.swift
[8/19] Compiling TypedNotificationCenter AnyPayloadTypedNotification.swift
[9/19] Compiling TypedNotificationCenter TypedNotificationObservation+GenericNsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:37:4: warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | 		self.nsNotificationCenter = nsNotificationCenter
36 | 		observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
37 | 			typedNotificationCenter?.forwardGenericPost(
   |    `- warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | 				notification.name,
39 | 				sender: notification.object as AnyObject?,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:32:20: note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
[10/19] Compiling TypedNotificationCenter PDFView.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationObservation+GenericNsNotification.swift:37:4: warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | 		self.nsNotificationCenter = nsNotificationCenter
36 | 		observation = nsNotificationCenter.addObserver(forName: notificationName, object: nil, queue: nil, using: { [weak typedNotificationCenter] notification in
37 | 			typedNotificationCenter?.forwardGenericPost(
   |    `- warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | 				notification.name,
39 | 				sender: notification.object as AnyObject?,
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:32:20: note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
[11/19] Compiling TypedNotificationCenter TypedNotificationCenter+BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:5: warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | 				let PayloadType = T.Payload.self as! DictionaryRepresentable.Type
56 | 				let payload = try PayloadType.init(notification.userInfo ?? [:]) as! T.Payload
57 | 				typedNotificationCenter?._post(T.self, sender: sender, payload: payload)
   |     `- warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | 			} catch {
59 | 				TypedNotificationCenter.invalidPayloadBlock(error, notification.userInfo, type.notificationName)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:32:20: note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
/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: annotate 'invalidSenderBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'invalidPayloadBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | 		assertionFailure(error.localizedDescription)
36 | 	}
[12/19] Compiling TypedNotificationCenter TypedNotificationObservation+NsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:5: warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | 				let PayloadType = T.Payload.self as! DictionaryRepresentable.Type
56 | 				let payload = try PayloadType.init(notification.userInfo ?? [:]) as! T.Payload
57 | 				typedNotificationCenter?._post(T.self, sender: sender, payload: payload)
   |     `- warning: capture of 'typedNotificationCenter' with non-sendable type 'TypedNotificationCenter?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | 			} catch {
59 | 				TypedNotificationCenter.invalidPayloadBlock(error, notification.userInfo, type.notificationName)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:32:20: note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
/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: annotate 'invalidSenderBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'invalidPayloadBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | 		assertionFailure(error.localizedDescription)
36 | 	}
[13/19] 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: annotate 'invalidSenderBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'invalidPayloadBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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()
[14/19] 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: annotate 'invalidSenderBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'invalidPayloadBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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()
[15/19] 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: annotate 'invalidSenderBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'invalidPayloadBlock' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/Core/TypedNotificationCenter.swift:127:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | typealias SenderIdentifier = ObjectIdentifier
 31 |
 32 | public final class TypedNotificationCenter {
    |                    `- note: class 'TypedNotificationCenter' does not conform to the 'Sendable' protocol
 33 | 	let observerLock = NSLock()
 34 | 	var observers = [NotificationIdentifier: [SenderIdentifier: [ObjectIdentifier: WeakBox<AnyObject>]]]()
    :
125 | 	}
126 |
127 | 	public static let `default` = TypedNotificationCenter()
    |                    |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'TypedNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | 	public func observe<T: TypedNotification>(_: T.Type, object: T.Sender?, queue: OperationQueue? = nil, block: @escaping T.ObservationBlock) -> TypedNotificationObservation {
[16/19] Compiling TypedNotificationCenter TypedNotificationCenter+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:6: warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |      |- warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 60 | 				}
 61 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:57: warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                         `- warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | 				}
 61 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:75: warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                                           `- warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | 				}
 61 | 			} else {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:6: warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |      |- warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 | 				}
 75 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:57: warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                         `- warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 | 				}
 75 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:75: warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                                           `- warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 | 				}
 75 | 			} else {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[17/19] Compiling TypedNotificationCenter TypedNotificationObservation+GenericBridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:6: warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |      |- warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 60 | 				}
 61 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:57: warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                         `- warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | 				}
 61 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:59:75: warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 | 			{
 58 | 				queue.addOperation {
 59 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                                           `- warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | 				}
 61 | 			} else {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:6: warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |      |- warning: capture of 'block' with non-sendable type '(Notification) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 74 | 				}
 75 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:57: warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                         `- warning: capture of 'sender' with non-sendable type 'AnyObject?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 | 				}
 75 | 			} else {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/GenericBridgedNotification/TypedNotificationCenter+GenericBridgedNotification.swift:73:75: warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 71 | 			{
 72 | 				queue.addOperation {
 73 | 					block(Notification(name: notificationName, object: sender, userInfo: payload))
    |                                                                           `- warning: capture of 'payload' with non-sendable type '[AnyHashable : Any]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 | 				}
 75 | 			} else {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[18/19] Compiling TypedNotificationCenter TypedNotificationObservation.swift
[19/19] Compiling TypedNotificationCenter WeakBox.swift
Build complete! (8.64s)
Build complete.
{
  "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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.