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 TypedNotification, reference v2.0.1 (0b89d6), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 14:26:01 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexjohnj/typednotification.git
Reference: v2.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexjohnj/typednotification
 * tag               v2.0.1     -> FETCH_HEAD
HEAD is now at 0b89d6f Version 2.0.1
Cloned https://github.com/alexjohnj/typednotification.git
Revision (git rev-parse @):
0b89d6f0dbb6cd3a733932d51f4ab3a3ecef37f5
SUCCESS checkout https://github.com/alexjohnj/typednotification.git at v2.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "typednotification",
      "name": "TypedNotification",
      "url": "https://github.com/alexjohnj/typednotification.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/typednotification",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/alexjohnj/typednotification.git
[1/231] Fetching typednotification
Fetched https://github.com/alexjohnj/typednotification.git from cache (0.87s)
Creating working copy for https://github.com/alexjohnj/typednotification.git
Working copy of https://github.com/alexjohnj/typednotification.git resolved at v2.0.1 (0b89d6f)
warning: '.resolve-product-dependencies': dependency 'typednotification' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexjohnj/typednotification.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling TypedNotification TypedNotification.swift
/Users/admin/builder/spi-builder-workspace/Sources/TypedNotification.swift:221:108: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
218 |     ///
219 |     public func addObserver(forNotificationNamed name: NSNotification.Name?, object obj: Any?, queue: OperationQueue?,
220 |                             using block: @escaping (Notification) -> Void) -> NotificationObservation {
    |                                   `- note: parameter 'block' is implicitly non-sendable
221 |         let observer: NSObjectProtocol = self.addObserver(forName: name, object: obj, queue: queue, using: block)
    |                                                                                                            `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
222 |         return NotificationObservation { self.removeObserver(observer) }
223 |     }
[4/4] Emitting module TypedNotification
Build complete! (5.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TypedNotification",
  "name" : "TypedNotification",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "TypedNotification",
      "targets" : [
        "TypedNotification"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TypedNotificationTests",
      "module_type" : "SwiftTarget",
      "name" : "TypedNotificationTests",
      "path" : "Tests",
      "sources" : [
        "TypedNotificationTests.swift"
      ],
      "target_dependencies" : [
        "TypedNotification"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TypedNotification",
      "module_type" : "SwiftTarget",
      "name" : "TypedNotification",
      "path" : "Sources",
      "product_memberships" : [
        "TypedNotification"
      ],
      "sources" : [
        "TypedNotification.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.