Build Information
Successful build of SwiftyAlert, reference v1.0.8 (593eac), with Swift 6.4 for macOS (SPM) on 21 Sep 2026 06:29:46 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chocoford/SwiftyAlert.git
Reference: v1.0.8
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chocoford/SwiftyAlert
* tag v1.0.8 -> FETCH_HEAD
HEAD is now at 593eac6 Create NotificationAlertAction.swift
Cloned https://github.com/chocoford/SwiftyAlert.git
Revision (git rev-parse @):
593eac6fe95b7765f012040c3d6685ca7c4176d8
SUCCESS checkout https://github.com/chocoford/SwiftyAlert.git at v1.0.8
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/chocoford/SwiftyAlert.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 96]
[Planning deferred tasks]
[25 / 42]
[26 / 43] AlertToast
[36 / 113]
[39 / 113]
[47 / 113]
[49 / 113]
[50 / 113]
[55 / 113]
[58 / 113]
[61 / 113]
[67 / 113]
[70 / 113]
[72 / 113]
[73 / 113]
[83 / 113]
[85 / 113]
[86 / 113]
[89 / 113]
[91 / 113]
[96 / 113] AlertToast
[103 / 114] SwiftyAlert
[111 / 122] SwiftyAlert
[112 / 122] SwiftyAlert
[117 / 122] SwiftyAlert
[118 / 122] AlertToast
Build complete! (11.46 sec)
Fetching https://github.com/elai950/AlertToast.git
[1/1572] Fetching alerttoast
Fetched https://github.com/elai950/AlertToast.git (2.30s)
Creating working copy for https://github.com/elai950/AlertToast.git
Working copy of https://github.com/elai950/AlertToast.git resolved at master (76a1c17)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:19:16: [1;33mwarning: [1;39mmain actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode[0;0m
[0;36m17 |[0;0m // 1. Create the key with a default value
[0;36m18 |[0;0m private struct AlertToastActionKey: EnvironmentKey {
[0;36m19 |[0;0m static let defaultValue: AlertToastAction = AlertToastAction(
[0;36m|[0;0m `- [1;33mwarning: [1;39mmain actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode[0;0m
[0;36m20 |[0;0m isPresented: .constant(false),
[0;36m21 |[0;0m alertToast: .constant(AlertToast(displayMode: .hud, type: .error(.red))),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:36:18: [1;33mwarning: [1;39mstored property '_onTap' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m34 |[0;0m @Binding var tapToDismiss: Bool
[0;36m35 |[0;0m @Binding var offsetY: CGFloat
[0;36m36 |[0;0m @Binding var onTap: (() -> Void)?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '_onTap' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:37:18: [1;33mwarning: [1;39mstored property '_onCompletion' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m35 |[0;0m @Binding var offsetY: CGFloat
[0;36m36 |[0;0m @Binding var onTap: (() -> Void)?
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '_onCompletion' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var queue: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
macro expansion @State:1:13: [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:39:99: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var [4;39mqueue[0;0m: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m|[0;0m |- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m +--- [0;0mmacro expansion @State [0;36m----------------------------------------[0;0m
[0;36m |[0;0m [0;36m1 |[0;0m private var __queue = SwiftUICore.State._makeStorage(({
[0;36m |[0;0m [0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m |[0;0m [0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m |[0;0m [0;36m2 |[0;0m let value: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m |[0;0m [0;36m3 |[0;0m return value
[0;36m +---------------------------[0;0m[0;36m----------------------------------------[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m public func callAsFunction(
macro expansion @State:1:13: [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:39:99: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var [4;39mqueue[0;0m: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m|[0;0m |- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m +--- [0;0mmacro expansion @State [0;36m----------------------------------------[0;0m
[0;36m |[0;0m [0;36m1 |[0;0m private var __queue = SwiftUICore.State._makeStorage(({
[0;36m |[0;0m [0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m |[0;0m [0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m |[0;0m [0;36m2 |[0;0m let value: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m |[0;0m [0;36m3 |[0;0m return value
[0;36m +---------------------------[0;0m[0;36m----------------------------------------[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m public func callAsFunction(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:13:16: [1;33mwarning: [1;39mstatic property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AlertAction' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m11 |[0;0m // 1. Create the key with a default value
[0;36m12 |[0;0m private struct AlertActionKey: EnvironmentKey {
[0;36m13 |[0;0m static let defaultValue: AlertAction = .init(
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AlertAction' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m14 |[0;0m title: .constant("Alert"),
[0;36m15 |[0;0m isPresented: .constant(false),
[0;36m:[0;0m
[0;36m19 |[0;0m }
[0;36m20 |[0;0m
[0;36m21 |[0;0m public struct AlertAction {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'AlertAction' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m @Binding var title: LocalizedStringKey
[0;36m23 |[0;0m @Binding var isPresented: Bool
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:13:16: [1;33mwarning: [1;39mstatic property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AlertAction' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m11 |[0;0m // 1. Create the key with a default value
[0;36m12 |[0;0m private struct AlertActionKey: EnvironmentKey {
[0;36m13 |[0;0m static let defaultValue: AlertAction = .init(
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AlertAction' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m14 |[0;0m title: .constant("Alert"),
[0;36m15 |[0;0m isPresented: .constant(false),
[0;36m:[0;0m
[0;36m19 |[0;0m }
[0;36m20 |[0;0m
[0;36m21 |[0;0m public struct AlertAction {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'AlertAction' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m @Binding var title: LocalizedStringKey
[0;36m23 |[0;0m @Binding var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:17: [1;33mwarning: [1;39mcapture of 'self' with non-Sendable type 'AlertAction' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m19 |[0;0m }
[0;36m20 |[0;0m
[0;36m21 |[0;0m public struct AlertAction {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'AlertAction' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m @Binding var title: LocalizedStringKey
[0;36m23 |[0;0m @Binding var isPresented: Bool
[0;36m:[0;0m
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'self' with non-Sendable type 'AlertAction' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:41: [1;33mwarning: [1;39mcapture of 'title' with non-Sendable type 'LocalizedStringKey' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of 'title' with non-Sendable type 'LocalizedStringKey' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
SwiftUI.LocalizedStringKey:2:23: [1;39mnote: [1;39mstruct 'LocalizedStringKey' explicitly suppresses conformance to 'Sendable' protocol[0;0m
[0;36m1 |[0;0m @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
[0;36m2 |[0;0m @frozen public struct LocalizedStringKey : Equatable, ExpressibleByStringInterpolation, ~Sendable {
[0;36m|[0;0m `- [1;39mnote: [1;39mstruct 'LocalizedStringKey' explicitly suppresses conformance to 'Sendable' protocol[0;0m
[0;36m3 |[0;0m public init(_ value: String)
[0;36m4 |[0;0m public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:9:1: [1;33mwarning: [1;39madd '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftUICore'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import\AddPreconcurrencyImport]8;;\]
[0;36m7 |[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m import SwiftUI
[0;36m|[0;0m `- [1;33mwarning: [1;39madd '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftUICore'[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import\AddPreconcurrencyImport]8;;\]
[0;36m10 |[0;0m
[0;36m11 |[0;0m // 1. Create the key with a default value
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:57: [1;33mwarning: [1;39mcapture of 'actions' with non-Sendable type '() -> some View' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39mcapture of 'actions' with non-Sendable type '() -> some View' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:75: [1;33mwarning: [1;39mcapture of 'message' with non-Sendable type '() -> some View' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39mcapture of 'message' with non-Sendable type '() -> some View' in a '@Sendable' closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:22: [1;33mwarning: [1;39mcapture of non-Sendable type '(some View).Type' in an isolated closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of non-Sendable type '(some View).Type' in an isolated closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:22: [1;33mwarning: [1;39mcapture of non-Sendable type '(some View).Type' in an isolated closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m `- [1;33mwarning: [1;39mcapture of non-Sendable type '(some View).Type' in an isolated closure[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes\SendableMetatypes]8;;\]
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:22: [1;33mwarning: [1;39msending 'self' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39msending 'self' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39m'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against code in the current isolation context[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:22: [1;33mwarning: [1;39msending 'title' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39msending 'title' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39m'title' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against code in the current isolation context[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:57: [1;33mwarning: [1;39msending 'actions' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39msending 'actions' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39m'actions' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against code in the current isolation context[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/Environments/Alert.swift:35:75: [1;33mwarning: [1;39msending 'message' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m33 |[0;0m self.isPresented.toggle()
[0;36m34 |[0;0m DispatchQueue.main.asyncAfter(deadline: .now().advanced(by: .milliseconds(500))) {
[0;36m35 |[0;0m self.toggleAlert(title: title, actions: actions, message: message)
[0;36m|[0;0m |- [1;33mwarning: [1;39msending 'message' risks causing data races; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/region-isolation\RegionIsolation]8;;\::]8;;https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race\SendingRisksDataRace]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39m'message' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against code in the current isolation context[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m } else {
[#AddPreconcurrencyImport]: <https://docs.swift.org/compiler/documentation/diagnostics/add-preconcurrency-import>
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#RegionIsolation]: <https://docs.swift.org/compiler/documentation/diagnostics/region-isolation>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:19:16: [1;33mwarning: [1;39mmain actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode[0;0m
[0;36m17 |[0;0m // 1. Create the key with a default value
[0;36m18 |[0;0m private struct AlertToastActionKey: EnvironmentKey {
[0;36m19 |[0;0m static let defaultValue: AlertToastAction = AlertToastAction(
[0;36m|[0;0m `- [1;33mwarning: [1;39mmain actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode[0;0m
[0;36m20 |[0;0m isPresented: .constant(false),
[0;36m21 |[0;0m alertToast: .constant(AlertToast(displayMode: .hud, type: .error(.red))),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:36:18: [1;33mwarning: [1;39mstored property '_onTap' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m34 |[0;0m @Binding var tapToDismiss: Bool
[0;36m35 |[0;0m @Binding var offsetY: CGFloat
[0;36m36 |[0;0m @Binding var onTap: (() -> Void)?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '_onTap' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:37:18: [1;33mwarning: [1;39mstored property '_onCompletion' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m35 |[0;0m @Binding var offsetY: CGFloat
[0;36m36 |[0;0m @Binding var onTap: (() -> Void)?
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '_onCompletion' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var queue: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
macro expansion @State:1:13: [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:39:99: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var [4;39mqueue[0;0m: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m|[0;0m |- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m +--- [0;0mmacro expansion @State [0;36m----------------------------------------[0;0m
[0;36m |[0;0m [0;36m1 |[0;0m private var __queue = SwiftUICore.State._makeStorage(({
[0;36m |[0;0m [0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m |[0;0m [0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m |[0;0m [0;36m2 |[0;0m let value: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m |[0;0m [0;36m3 |[0;0m return value
[0;36m +---------------------------[0;0m[0;36m----------------------------------------[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m public func callAsFunction(
macro expansion @State:1:13: [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:39:99: [1;39mnote: [1;39mexpanded code originates here[0;0m
[0;36m37 |[0;0m @Binding var onCompletion: (() -> Void)?
[0;36m38 |[0;0m
[0;36m39 |[0;0m @State private var [4;39mqueue[0;0m: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m|[0;0m |- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39min expansion of macro 'State' on property 'queue' here[0;0m
[0;36m +--- [0;0mmacro expansion @State [0;36m----------------------------------------[0;0m
[0;36m |[0;0m [0;36m1 |[0;0m private var __queue = SwiftUICore.State._makeStorage(({
[0;36m |[0;0m [0;36m|[0;0m |- [1;33mwarning: [1;39mstored property '__queue' of 'Sendable'-conforming struct 'AlertToastAction' contains non-Sendable type '() -> ()'; this is an error in the Swift 6 language mode[0;0m
[0;36m |[0;0m [0;36m|[0;0m `- [1;39mnote: [1;39ma function type must be marked '@Sendable' to conform to 'Sendable'[0;0m
[0;36m |[0;0m [0;36m2 |[0;0m let value: [(AlertToast, Double, Bool, CGFloat, (() -> ())?, (() -> ())?)] = []
[0;36m |[0;0m [0;36m3 |[0;0m return value
[0;36m +---------------------------[0;0m[0;36m----------------------------------------[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m public func callAsFunction(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToastBus.swift:78:29: [1;33mwarning: [1;39mcall to main actor-isolated initializer 'init(error:displayMode:type:)' in a synchronous nonisolated context[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call\ActorIsolatedCall]8;;\]
[0;36m75 |[0;0m }
[0;36m76 |[0;0m
[0;36m77 |[0;0m public func callAsFunction(_ error: Error) {
[0;36m|[0;0m `- [1;39mnote: [1;39madd '@MainActor' to make instance method 'callAsFunction' part of global actor 'MainActor'[0;0m
[0;36m78 |[0;0m self.callAsFunction(AlertToast(error: error))
[0;36m|[0;0m `- [1;33mwarning: [1;39mcall to main actor-isolated initializer 'init(error:displayMode:type:)' in a synchronous nonisolated context[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call\ActorIsolatedCall]8;;\]
[0;36m79 |[0;0m }
[0;36m80 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyAlert/AlertToast+/AlertToast+Extension.swift:15:12: [1;39mnote: [1;39mcalls to initializer 'init(error:displayMode:type:)' from outside of its actor context are implicitly asynchronous[0;0m
[0;36m13 |[0;0m
[0;36m14 |[0;0m extension AlertToast {
[0;36m15 |[0;0m public init(
[0;36m|[0;0m `- [1;39mnote: [1;39mcalls to initializer 'init(error:displayMode:type:)' from outside of its actor context are implicitly asynchronous[0;0m
[0;36m16 |[0;0m error: Error,
[0;36m17 |[0;0m displayMode: DisplayMode = DisplayMode.hud,
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
Build complete.
{
"dependencies" : [
{
"identity" : "alerttoast",
"requirement" : {
"branch" : [
"master"
]
},
"type" : "sourceControl",
"url" : "https://github.com/elai950/AlertToast.git"
}
],
"manifest_display_name" : "SwiftyAlert",
"name" : "SwiftyAlert",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftyAlert",
"targets" : [
"SwiftyAlert"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftyAlertTests",
"module_type" : "SwiftTarget",
"name" : "SwiftyAlertTests",
"path" : "Tests/SwiftyAlertTests",
"sources" : [
"SwiftyAlertTests.swift"
],
"target_dependencies" : [
"SwiftyAlert"
],
"type" : "test"
},
{
"c99name" : "SwiftyAlert",
"module_type" : "SwiftTarget",
"name" : "SwiftyAlert",
"path" : "Sources/SwiftyAlert",
"product_dependencies" : [
"AlertToast"
],
"product_memberships" : [
"SwiftyAlert"
],
"sources" : [
"AlertToast+/AlertToast+Extension.swift",
"AlertToast+/AlertToastBus.swift",
"AlertToast+/FakeAlertToast.swift",
"Environments/Alert.swift",
"Extensions/Refreshable+SwiftyAlert.swift",
"NotificationAlert/NotificationAlertAction.swift",
"SwiftyAlert.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.