The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of TypedNotificationCenter, reference 2.1.2 (6e682f), with Swift 6.2 (beta) for Android on 20 Jun 2025 00:38:25 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cyberbeni/typednotificationcenter.git
Reference: 2.1.2
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
 * tag               2.1.2      -> FETCH_HEAD
HEAD is now at 6e682f9 Merge pull request #70 from Cyberbeni/xcframework-script-finetune
Cloned https://github.com/cyberbeni/typednotificationcenter.git
Revision (git rev-parse @):
6e682f918c89cc769218e4f41059d3cea6ea7e14
SUCCESS checkout https://github.com/cyberbeni/typednotificationcenter.git at 2.1.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/cyberbeni/typednotificationcenter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-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-8C5A4AE7A8CE2BA.txt
[3/17] Compiling TypedNotificationCenter AnyTypedNotification.swift
[4/17] Compiling TypedNotificationCenter SameTypedNotification.swift
[5/19] Compiling TypedNotificationCenter TypedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:96:11: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 94 | 			guard let observation = observation.object as? _TypedNotificationObservation<T> else { return }
 95 | 			if let queue = observation.queue,
 96 | 			   let block = observation.block
    |           `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:110:11: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
108 | 			else { return }
109 | 			if let queue = observation.queue,
110 | 			   let block = observation.block
    |           `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
[6/19] Compiling TypedNotificationCenter TypedNotificationCenter.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:96:11: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 94 | 			guard let observation = observation.object as? _TypedNotificationObservation<T> else { return }
 95 | 			if let queue = observation.queue,
 96 | 			   let block = observation.block
    |           `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
 97 | 			{
 98 | 				queue.addOperation {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:110:11: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
108 | 			else { return }
109 | 			if let queue = observation.queue,
110 | 			   let block = observation.block
    |           `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
111 | 			{
112 | 				queue.addOperation {
[7/19] Compiling TypedNotificationCenter UIResponder.swift
[8/19] Compiling TypedNotificationCenter AnyPayloadTypedNotification.swift
[9/19] Compiling TypedNotificationCenter TypedNotificationObservation+GenericNsNotification.swift
[10/19] Compiling TypedNotificationCenter PDFView.swift
[11/19] Emitting module TypedNotificationCenter
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | 	public var type: Any.Type
31 | 	public var source: [AnyHashable: Any]
   |             `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | 	public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
[12/19] Compiling TypedNotificationCenter BridgedNotification+ErrorHandlingCustomization.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | 	public var type: Any.Type
31 | 	public var source: [AnyHashable: Any]
   |             `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | 	public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
[13/19] Compiling TypedNotificationCenter BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/BridgedNotification.swift:31:13: warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
29 | public struct NotificationDecodingError: LocalizedError {
30 | 	public var type: Any.Type
31 | 	public var source: [AnyHashable: Any]
   |             `- warning: stored property 'source' of 'Sendable'-conforming struct 'NotificationDecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
32 |
33 | 	public init(type: Any.Type, source: [AnyHashable: Any]) {
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
[14/19] Compiling TypedNotificationCenter TypedNotificationCenter+BridgedNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:44:70: warning: capture of 'type' with non-sendable type 'any BridgedNotification.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
42 | 				sender = aSender
43 | 				if notification.object != nil, !(notification.object is NSNull) {
44 | 					TypedNotificationCenter.invalidSenderBlock(notification.object, type.notificationName)
   |                                                                      `- warning: capture of 'type' with non-sendable type 'any BridgedNotification.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
45 | 				}
46 | 			} else if let aSender = (notification.object ?? NSNull()) as? T.Sender {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:30: warning: capture of non-sendable type 'T.Type' in an isolated 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 non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | 			} catch {
59 | 				TypedNotificationCenter.invalidPayloadBlock(error, notification.userInfo, type.notificationName)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[15/19] Compiling TypedNotificationCenter TypedNotificationObservation+NsNotification.swift
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:44:70: warning: capture of 'type' with non-sendable type 'any BridgedNotification.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
42 | 				sender = aSender
43 | 				if notification.object != nil, !(notification.object is NSNull) {
44 | 					TypedNotificationCenter.invalidSenderBlock(notification.object, type.notificationName)
   |                                                                      `- warning: capture of 'type' with non-sendable type 'any BridgedNotification.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
45 | 				}
46 | 			} else if let aSender = (notification.object ?? NSNull()) as? T.Sender {
/host/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:30: warning: capture of non-sendable type 'T.Type' in an isolated 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 non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | 			} catch {
59 | 				TypedNotificationCenter.invalidPayloadBlock(error, notification.userInfo, type.notificationName)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[16/19] Compiling TypedNotificationCenter TypedNotificationCenter+GenericBridgedNotification.swift
/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 [#SendableClosureCaptures]
 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 [#SendableClosureCaptures]
 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, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- 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: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 [#SendableClosureCaptures]
 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 [#SendableClosureCaptures]
 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, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[17/19] Compiling TypedNotificationCenter TypedNotificationObservation+GenericBridgedNotification.swift
/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 [#SendableClosureCaptures]
 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 [#SendableClosureCaptures]
 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, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- 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: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 [#SendableClosureCaptures]
 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 [#SendableClosureCaptures]
 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, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[18/19] Compiling TypedNotificationCenter TypedNotificationObservation.swift
[19/19] Compiling TypedNotificationCenter WeakBox.swift
Build complete! (17.40s)
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.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Done.