The Swift Package Index logo.Swift Package Index

Build Information

Successful build of NotificationManager, reference v1.2.0 (0474e2), with Swift 6.1 for macOS (SPM) on 16 Jul 2026 06:58:55 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timokoethe/NotificationManager.git
Reference: v1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timokoethe/NotificationManager
 * tag               v1.2.0     -> FETCH_HEAD
HEAD is now at 0474e2f Wrap badge example in availability check (#10)
Cloned https://github.com/timokoethe/NotificationManager.git
Revision (git rev-parse @):
0474e2f878fadf430646c9a9f05a4bfc24255f36
SUCCESS checkout https://github.com/timokoethe/NotificationManager.git at v1.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/timokoethe/NotificationManager.git
https://github.com/timokoethe/NotificationManager.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NotificationManager",
  "name" : "NotificationManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "NotificationManager",
      "targets" : [
        "NotificationManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NotificationManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "NotificationManagerTests",
      "path" : "Tests/NotificationManagerTests",
      "sources" : [
        "NotificationManagerTests.swift"
      ],
      "target_dependencies" : [
        "NotificationManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NotificationManager",
      "module_type" : "SwiftTarget",
      "name" : "NotificationManager",
      "path" : "Sources/NotificationManager",
      "product_memberships" : [
        "NotificationManager"
      ],
      "sources" : [
        "NotificationManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Compiling NotificationManager NotificationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:54:24: warning: static property 'centerOverride' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 52 | public struct NotificationManager {
 53 |     private static let defaultAuthorizationOptions: UNAuthorizationOptions = [.alert, .sound, .badge]
 54 |     private static var centerOverride: (any UserNotificationCenter)?
    |                        |- warning: static property 'centerOverride' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'centerOverride' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'centerOverride' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 55 |     static var center: any UserNotificationCenter {
 56 |         get { centerOverride ?? UNUserNotificationCenter.current() }
[4/4] Emitting module NotificationManager
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:54:24: warning: static property 'centerOverride' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 52 | public struct NotificationManager {
 53 |     private static let defaultAuthorizationOptions: UNAuthorizationOptions = [.alert, .sound, .badge]
 54 |     private static var centerOverride: (any UserNotificationCenter)?
    |                        |- warning: static property 'centerOverride' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'centerOverride' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'centerOverride' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 55 |     static var center: any UserNotificationCenter {
 56 |         get { centerOverride ?? UNUserNotificationCenter.current() }
Build complete! (4.88s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NotificationManager",
  "name" : "NotificationManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "NotificationManager",
      "targets" : [
        "NotificationManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NotificationManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "NotificationManagerTests",
      "path" : "Tests/NotificationManagerTests",
      "sources" : [
        "NotificationManagerTests.swift"
      ],
      "target_dependencies" : [
        "NotificationManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NotificationManager",
      "module_type" : "SwiftTarget",
      "name" : "NotificationManager",
      "path" : "Sources/NotificationManager",
      "product_memberships" : [
        "NotificationManager"
      ],
      "sources" : [
        "NotificationManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.