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 master (618367), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 00:43:16 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cyberbeni/typednotificationcenter.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/cyberbeni/typednotificationcenter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/18] Compiling TypedNotificationCenter AnyTypedNotification.swift
[4/18] Compiling TypedNotificationCenter SameTypedNotification.swift
[5/19] Compiling TypedNotificationCenter TypedNotification.swift
[6/19] Compiling TypedNotificationCenter TypedNotificationObservation.swift
[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] Compiling TypedNotificationCenter TypedNotificationCenter+GenericBridgedNotification.swift
[12/19] Compiling TypedNotificationCenter TypedNotificationObservation+GenericBridgedNotification.swift
[13/19] Compiling TypedNotificationCenter BridgedNotification+ErrorHandlingCustomization.swift
/Users/admin/builder/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(_immutableCocoaDictionary: __owned AnyObject)
[14/19] Compiling TypedNotificationCenter BridgedNotification.swift
/Users/admin/builder/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(_immutableCocoaDictionary: __owned AnyObject)
[15/19] Compiling TypedNotificationCenter TypedNotificationCenter+BridgedNotification.swift
/Users/admin/builder/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 [#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 [#SendableClosureCaptures]
45 | 				}
46 | 			} else if let aSender = (notification.object ?? NSNull()) as? T.Sender {
/Users/admin/builder/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:30: warning: capture of non-sendable type 'T.Type' in an isolated closure
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
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 TypedNotificationObservation+NsNotification.swift
/Users/admin/builder/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 [#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 [#SendableClosureCaptures]
45 | 				}
46 | 			} else if let aSender = (notification.object ?? NSNull()) as? T.Sender {
/Users/admin/builder/spi-builder-workspace/Sources/TypedNotificationCenter/BridgedNotifications/Core/TypedNotificationObservation+NsNotification.swift:57:30: warning: capture of non-sendable type 'T.Type' in an isolated closure
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
58 | 			} catch {
59 | 				TypedNotificationCenter.invalidPayloadBlock(error, notification.userInfo, type.notificationName)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[17/19] Compiling TypedNotificationCenter TypedNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:96:11: warning: capture of non-sendable type 'T.Type' in an isolated closure
 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
 97 | 			{
 98 | 				queue.addOperation {
/Users/admin/builder/spi-builder-workspace/Sources/TypedNotificationCenter/Core/TypedNotificationCenter.swift:110:11: warning: capture of non-sendable type 'T.Type' in an isolated closure
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
111 | 			{
112 | 				queue.addOperation {
[18/19] Emitting module TypedNotificationCenter
/Users/admin/builder/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(_immutableCocoaDictionary: __owned AnyObject)
[19/19] Compiling TypedNotificationCenter WeakBox.swift
Build complete! (4.56s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/TypedNotificationCenter/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TypedNotificationCenter",
  "name" : "TypedNotificationCenter",
  "path" : "/Users/admin/builder/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"
}
Done.