The Swift Package Index logo.Swift Package Index

Build Information

Successful build of TypedNotificationCenter, reference master (618367), with Swift 6.1 for Android on 28 May 2025 13:00:07 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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.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:         android
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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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
[3/17] Compiling TypedNotificationCenter UIResponder.swift
[4/17] Compiling TypedNotificationCenter AnyPayloadTypedNotification.swift
[5/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>]]]()
[6/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>]]]()
[7/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: 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/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: 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()
[9/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>]]]()
[10/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>]]]()
[11/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: 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/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                    `- 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 {
[12/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)
[13/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)
[14/19] 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                    `- 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 {
[15/19] 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                    `- 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 {
[16/19] Compiling TypedNotificationCenter AnyTypedNotification.swift
[17/19] Compiling TypedNotificationCenter SameTypedNotification.swift
[18/19] Compiling TypedNotificationCenter TypedNotificationObservation.swift
[19/19] Compiling TypedNotificationCenter WeakBox.swift
Build complete! (11.89s)
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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.