Build Information
Successful build of NotificationManager, reference v1.1.1 (d0306e
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 03:34:39 UTC.
Swift 6 data race errors: 1
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 -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.58.1
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.66s)
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.0
Building package at path: $PWD
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.1.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--7754E27361AE5C74.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! (5.95s)
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.