Build Information
Successful build of NotificationManager with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timokoethe/NotificationManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timokoethe/NotificationManager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/timokoethe/NotificationManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.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
UserNotifications.UNUserNotificationCenter:2:12: note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.14, *)
2 | open class UNUserNotificationCenter : NSObject {
| `- note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any UNUserNotificationCenterDelegate)? { get set }
4 | open var supportsContentExtensions: Bool { get }
/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: annotate 'center' with '@MainActor' if property should only be accessed from the main actor
| `- 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
UserNotifications.UNUserNotificationCenter:2:12: note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.14, *)
2 | open class UNUserNotificationCenter : NSObject {
| `- note: class 'UNUserNotificationCenter' does not conform to the 'Sendable' protocol
3 | weak open var delegate: (any UNUserNotificationCenterDelegate)? { get set }
4 | open var supportsContentExtensions: Bool { get }
/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: annotate 'center' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | // MARK: Authorization
Build complete! (17.37s)
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.