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 NotificationManager, reference v1.1.1 (d0306e), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 21:14:31 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: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timokoethe/NotificationManager.git
Reference: v1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timokoethe/NotificationManager
 * tag               v1.1.1     -> FETCH_HEAD
HEAD is now at d0306e8 hotfix: supported platforms (#5)
Cloned https://github.com/timokoethe/NotificationManager.git
Revision (git rev-parse @):
d0306e843f73dcbb8424da930ec91458adbc00ab
SUCCESS checkout https://github.com/timokoethe/NotificationManager.git at v1.1.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": "notificationmanager",
      "name": "NotificationManager",
      "url": "https://github.com/timokoethe/NotificationManager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NotificationManager",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/timokoethe/NotificationManager.git
[1/131] Fetching notificationmanager
Fetched https://github.com/timokoethe/NotificationManager.git from cache (0.59s)
Creating working copy for https://github.com/timokoethe/NotificationManager.git
Working copy of https://github.com/timokoethe/NotificationManager.git resolved at v1.1.1 (d0306e8)
warning: '.resolve-product-dependencies': dependency 'notificationmanager' is not used by any target
Found 0 product dependencies
========================================
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" : [
        "AuthorizationTests.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] Emitting module NotificationManager
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:9:24: warning: static property 'center' is not concurrency-safe because non-'Sendable' type 'UNUserNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |     // MARK: Variables in Context
  8 |     // Instance of the UNUserNotificationCenter to get access to all methods.
  9 |     private static let center = UNUserNotificationCenter.current()
    |                        `- warning: static property 'center' is not concurrency-safe because non-'Sendable' type 'UNUserNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     // MARK: Authorization
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h:39:12: note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
 37 |
 38 | API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 39 | @interface UNUserNotificationCenter : NSObject
    |            `- note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
 40 |
 41 | // The delegate can only be set from an application
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
  1 | import Foundation
  2 | import UserNotifications
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
  3 |
  4 | /// This represents the main class for managing local notifications. To get the functions
    :
  7 |     // MARK: Variables in Context
  8 |     // Instance of the UNUserNotificationCenter to get access to all methods.
  9 |     private static let center = UNUserNotificationCenter.current()
    |                        |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |
 11 |     // MARK: Authorization
[4/4] Compiling NotificationManager NotificationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:9:24: warning: static property 'center' is not concurrency-safe because non-'Sendable' type 'UNUserNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |     // MARK: Variables in Context
  8 |     // Instance of the UNUserNotificationCenter to get access to all methods.
  9 |     private static let center = UNUserNotificationCenter.current()
    |                        `- warning: static property 'center' is not concurrency-safe because non-'Sendable' type 'UNUserNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     // MARK: Authorization
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h:39:12: note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
 37 |
 38 | API_AVAILABLE(macos(10.14), ios(10.0), watchos(3.0), tvos(10.0))
 39 | @interface UNUserNotificationCenter : NSObject
    |            `- note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
 40 |
 41 | // The delegate can only be set from an application
/Users/admin/builder/spi-builder-workspace/Sources/NotificationManager/NotificationManager.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
  1 | import Foundation
  2 | import UserNotifications
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'UserNotifications'
  3 |
  4 | /// This represents the main class for managing local notifications. To get the functions
    :
  7 |     // MARK: Variables in Context
  8 |     // Instance of the UNUserNotificationCenter to get access to all methods.
  9 |     private static let center = UNUserNotificationCenter.current()
    |                        |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |
 11 |     // MARK: Authorization
Build complete! (4.20s)
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" : [
        "AuthorizationTests.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.