Build Information
Successful build of NiceNotifications, reference 0.0.7-alpha (dc2487
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 07:26:10 UTC.
Swift 6 data race errors: 12
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/dreymonde/NiceNotifications.git
Reference: 0.0.7-alpha
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dreymonde/NiceNotifications
* tag 0.0.7-alpha -> FETCH_HEAD
HEAD is now at dc24879 Update DateBuilder
Cloned https://github.com/dreymonde/NiceNotifications.git
Revision (git rev-parse @):
dc24879ac7979efdea18a2c1f7a8bb6c364d16e6
SUCCESS checkout https://github.com/dreymonde/NiceNotifications.git at 0.0.7-alpha
Fetching https://github.com/dreymonde/DateBuilder
[1/148] Fetching datebuilder
Fetched https://github.com/dreymonde/DateBuilder from cache (0.79s)
Computing version for https://github.com/dreymonde/DateBuilder
Computed https://github.com/dreymonde/DateBuilder at 0.1.3 (0.53s)
Creating working copy for https://github.com/dreymonde/DateBuilder
Working copy of https://github.com/dreymonde/DateBuilder resolved at 0.1.3
========================================
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": "nicenotifications",
"name": "NiceNotifications",
"url": "https://github.com/dreymonde/NiceNotifications.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NiceNotifications",
"dependencies": [
{
"identity": "datebuilder",
"name": "DateBuilder",
"url": "https://github.com/dreymonde/DateBuilder",
"version": "0.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DateBuilder",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/dreymonde/NiceNotifications.git
[1/146] Fetching nicenotifications
Fetched https://github.com/dreymonde/NiceNotifications.git from cache (0.83s)
Fetching https://github.com/dreymonde/DateBuilder from cache
Fetched https://github.com/dreymonde/DateBuilder from cache (0.47s)
Computing version for https://github.com/dreymonde/DateBuilder
Computed https://github.com/dreymonde/DateBuilder at 0.1.4 (0.02s)
Creating working copy for https://github.com/dreymonde/DateBuilder
Working copy of https://github.com/dreymonde/DateBuilder resolved at 0.1.4
Creating working copy for https://github.com/dreymonde/NiceNotifications.git
Working copy of https://github.com/dreymonde/NiceNotifications.git resolved at 0.0.7-alpha (dc24879)
warning: '.resolve-product-dependencies': dependency 'nicenotifications' is not used by any target
Found 1 product dependencies
- DateBuilder
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dreymonde/NiceNotifications.git
{
"dependencies" : [
{
"identity" : "datebuilder",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dreymonde/DateBuilder"
}
],
"manifest_display_name" : "NiceNotifications",
"name" : "NiceNotifications",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "NiceNotifications",
"targets" : [
"NiceNotifications"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NiceNotificationsTests",
"module_type" : "SwiftTarget",
"name" : "NiceNotificationsTests",
"path" : "Tests/NiceNotificationsTests",
"sources" : [
"NiceNotificationsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NiceNotifications"
],
"type" : "test"
},
{
"c99name" : "NiceNotifications",
"module_type" : "SwiftTarget",
"name" : "NiceNotifications",
"path" : "Sources/NiceNotifications",
"product_dependencies" : [
"DateBuilder"
],
"product_memberships" : [
"NiceNotifications"
],
"sources" : [
"NiceNotifications.swift",
"NotificationPermissionView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/5] Compiling DateBuilder DateBuilder.swift
[5/5] Emitting module DateBuilder
[6/8] Compiling NiceNotifications NotificationPermissionView.swift
[7/8] Emitting module NiceNotifications
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:805:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
803 | }
804 |
805 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
806 | public enum TimelineBuilder {
807 | public typealias Expression = LocalNotifications.NotificationRequest
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:14:27: warning: static property 'info' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | extension LocalNotifications {
13 | public enum Log {
14 | public static var info: (Any) -> () = { _ in }
| |- warning: static property 'info' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'info' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'info' 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
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:47:27: warning: static property 'askSystemPermissionIfNeeded' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension LocalNotifications {
19 | public struct PermissionStrategy {
| `- note: consider making struct 'PermissionStrategy' conform to the 'Sendable' protocol
20 |
21 | public init(groupLevel: LocalNotifications.PermissionStrategy.GroupLevel, systemLevel: LocalNotifications.PermissionStrategy.SystemLevel) {
:
45 | }
46 |
47 | public static let askSystemPermissionIfNeeded = PermissionStrategy(
| |- warning: static property 'askSystemPermissionIfNeeded' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'askSystemPermissionIfNeeded' 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
48 | groupLevel: .bypass,
49 | systemLevel: .askPermission
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:52:27: warning: static property 'scheduleIfSystemAllowed' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension LocalNotifications {
19 | public struct PermissionStrategy {
| `- note: consider making struct 'PermissionStrategy' conform to the 'Sendable' protocol
20 |
21 | public init(groupLevel: LocalNotifications.PermissionStrategy.GroupLevel, systemLevel: LocalNotifications.PermissionStrategy.SystemLevel) {
:
50 | )
51 |
52 | public static let scheduleIfSystemAllowed = PermissionStrategy(
| |- warning: static property 'scheduleIfSystemAllowed' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'scheduleIfSystemAllowed' 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
53 | groupLevel: .bypass,
54 | systemLevel: .ifAlreadyAllowed
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:86:27: warning: static property 'addNotificationRequest' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | public enum Env {
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
| |- warning: static property 'addNotificationRequest' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addNotificationRequest' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'addNotificationRequest' 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
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:87:27: warning: static property 'removeDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | public enum Env {
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
| |- warning: static property 'removeDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'removeDeliveredNotifications' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'removeDeliveredNotifications' 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
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:88:27: warning: static property 'removePendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
| |- warning: static property 'removePendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'removePendingNotificationRequests' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'removePendingNotificationRequests' 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
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:89:27: warning: static property 'getPendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
| |- warning: static property 'getPendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getPendingNotificationRequests' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getPendingNotificationRequests' 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
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:90:27: warning: static property 'getDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
| |- warning: static property 'getDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getDeliveredNotifications' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getDeliveredNotifications' 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
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:432:31: warning: static property 'valueForKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
430 |
431 | public enum Env {
432 | public static var valueForKey = UserDefaults.standard.value(forKey:)
| |- warning: static property 'valueForKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'valueForKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'valueForKey' 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
433 | public static var setValue = UserDefaults.standard.setValue(_:forKey:)
434 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:433:31: warning: static property 'setValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
431 | public enum Env {
432 | public static var valueForKey = UserDefaults.standard.value(forKey:)
433 | public static var setValue = UserDefaults.standard.setValue(_:forKey:)
| |- warning: static property 'setValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setValue' 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
434 |
435 | public static func setUserDefaults(_ userDefaults: UserDefaults) {
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:476:31: warning: static property 'getNotificationSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 |
475 | public enum Env {
476 | public static var getNotificationSettings = UNUserNotificationCenter.current().getNotificationSettings
| |- warning: static property 'getNotificationSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getNotificationSettings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getNotificationSettings' 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
477 | public static var requestAuthorization = UNUserNotificationCenter.current().requestAuthorization
478 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:477:31: warning: static property 'requestAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
475 | public enum Env {
476 | public static var getNotificationSettings = UNUserNotificationCenter.current().getNotificationSettings
477 | public static var requestAuthorization = UNUserNotificationCenter.current().requestAuthorization
| |- warning: static property 'requestAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestAuthorization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestAuthorization' 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
478 | }
479 |
[8/8] Compiling NiceNotifications NiceNotifications.swift
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:805:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
803 | }
804 |
805 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
806 | public enum TimelineBuilder {
807 | public typealias Expression = LocalNotifications.NotificationRequest
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:14:27: warning: static property 'info' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | extension LocalNotifications {
13 | public enum Log {
14 | public static var info: (Any) -> () = { _ in }
| |- warning: static property 'info' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'info' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'info' 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
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:47:27: warning: static property 'askSystemPermissionIfNeeded' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension LocalNotifications {
19 | public struct PermissionStrategy {
| `- note: consider making struct 'PermissionStrategy' conform to the 'Sendable' protocol
20 |
21 | public init(groupLevel: LocalNotifications.PermissionStrategy.GroupLevel, systemLevel: LocalNotifications.PermissionStrategy.SystemLevel) {
:
45 | }
46 |
47 | public static let askSystemPermissionIfNeeded = PermissionStrategy(
| |- warning: static property 'askSystemPermissionIfNeeded' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'askSystemPermissionIfNeeded' 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
48 | groupLevel: .bypass,
49 | systemLevel: .askPermission
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:52:27: warning: static property 'scheduleIfSystemAllowed' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | extension LocalNotifications {
19 | public struct PermissionStrategy {
| `- note: consider making struct 'PermissionStrategy' conform to the 'Sendable' protocol
20 |
21 | public init(groupLevel: LocalNotifications.PermissionStrategy.GroupLevel, systemLevel: LocalNotifications.PermissionStrategy.SystemLevel) {
:
50 | )
51 |
52 | public static let scheduleIfSystemAllowed = PermissionStrategy(
| |- warning: static property 'scheduleIfSystemAllowed' is not concurrency-safe because non-'Sendable' type 'LocalNotifications.PermissionStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'scheduleIfSystemAllowed' 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
53 | groupLevel: .bypass,
54 | systemLevel: .ifAlreadyAllowed
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:86:27: warning: static property 'addNotificationRequest' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | public enum Env {
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
| |- warning: static property 'addNotificationRequest' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'addNotificationRequest' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'addNotificationRequest' 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
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:87:27: warning: static property 'removeDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | public enum Env {
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
| |- warning: static property 'removeDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'removeDeliveredNotifications' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'removeDeliveredNotifications' 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
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:88:27: warning: static property 'removePendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public static var addNotificationRequest = UNUserNotificationCenter.current().add
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
| |- warning: static property 'removePendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'removePendingNotificationRequests' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'removePendingNotificationRequests' 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
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:89:27: warning: static property 'getPendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 | public static var removeDeliveredNotifications = UNUserNotificationCenter.current().removeDeliveredNotifications
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
| |- warning: static property 'getPendingNotificationRequests' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getPendingNotificationRequests' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getPendingNotificationRequests' 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
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:90:27: warning: static property 'getDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | public static var removePendingNotificationRequests = UNUserNotificationCenter.current().removePendingNotificationRequests
89 | public static var getPendingNotificationRequests = UNUserNotificationCenter.current().getPendingNotificationRequests
90 | public static var getDeliveredNotifications = UNUserNotificationCenter.current().getDeliveredNotifications
| |- warning: static property 'getDeliveredNotifications' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getDeliveredNotifications' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getDeliveredNotifications' 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
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:432:31: warning: static property 'valueForKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
430 |
431 | public enum Env {
432 | public static var valueForKey = UserDefaults.standard.value(forKey:)
| |- warning: static property 'valueForKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'valueForKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'valueForKey' 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
433 | public static var setValue = UserDefaults.standard.setValue(_:forKey:)
434 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:433:31: warning: static property 'setValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
431 | public enum Env {
432 | public static var valueForKey = UserDefaults.standard.value(forKey:)
433 | public static var setValue = UserDefaults.standard.setValue(_:forKey:)
| |- warning: static property 'setValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setValue' 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
434 |
435 | public static func setUserDefaults(_ userDefaults: UserDefaults) {
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:476:31: warning: static property 'getNotificationSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 |
475 | public enum Env {
476 | public static var getNotificationSettings = UNUserNotificationCenter.current().getNotificationSettings
| |- warning: static property 'getNotificationSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'getNotificationSettings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'getNotificationSettings' 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
477 | public static var requestAuthorization = UNUserNotificationCenter.current().requestAuthorization
478 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:477:31: warning: static property 'requestAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
475 | public enum Env {
476 | public static var getNotificationSettings = UNUserNotificationCenter.current().getNotificationSettings
477 | public static var requestAuthorization = UNUserNotificationCenter.current().requestAuthorization
| |- warning: static property 'requestAuthorization' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestAuthorization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestAuthorization' 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
478 | }
479 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:243:55: warning: converting non-sendable function value to '@MainActor @Sendable @convention(block) () -> Void' may introduce data races
241 |
242 | let performSchedule = group.preferredExecutionContext == .mainQueueOnly
243 | ? { DispatchQueue.main.async(execute: performScheduleInCurrentContext) }
| `- warning: converting non-sendable function value to '@MainActor @Sendable @convention(block) () -> Void' may introduce data races
244 | : performScheduleInCurrentContext
245 |
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:106:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
104 | let completion = { status in
105 | DispatchQueue.main.async {
106 | completion(status)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:106:28: warning: sending 'status' risks causing data races; this is an error in the Swift 6 language mode
104 | let completion = { status in
105 | DispatchQueue.main.async {
106 | completion(status)
| |- warning: sending 'status' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'status' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:225:40: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
223 |
224 | let mainQueueCompletion = { val in
225 | DispatchQueue.main.async { completion(val) }
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
226 | }
227 | Log.info("EXECUTING AUTH STRATEGY")
/Users/admin/builder/spi-builder-workspace/Sources/NiceNotifications/NiceNotifications.swift:225:51: warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
223 |
224 | let mainQueueCompletion = { val in
225 | DispatchQueue.main.async { completion(val) }
| |- warning: sending 'val' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'val' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
226 | }
227 | Log.info("EXECUTING AUTH STRATEGY")
Build complete! (9.05s)
Build complete.
{
"dependencies" : [
{
"identity" : "datebuilder",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dreymonde/DateBuilder"
}
],
"manifest_display_name" : "NiceNotifications",
"name" : "NiceNotifications",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "macos",
"version" : "10.14"
}
],
"products" : [
{
"name" : "NiceNotifications",
"targets" : [
"NiceNotifications"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NiceNotificationsTests",
"module_type" : "SwiftTarget",
"name" : "NiceNotificationsTests",
"path" : "Tests/NiceNotificationsTests",
"sources" : [
"NiceNotificationsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NiceNotifications"
],
"type" : "test"
},
{
"c99name" : "NiceNotifications",
"module_type" : "SwiftTarget",
"name" : "NiceNotifications",
"path" : "Sources/NiceNotifications",
"product_dependencies" : [
"DateBuilder"
],
"product_memberships" : [
"NiceNotifications"
],
"sources" : [
"NiceNotifications.swift",
"NotificationPermissionView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.