The Swift Package Index logo.Swift Package Index

Build Information

Successful build of ToastKit, reference main (b5d3ac), with Swift 6.1 for macOS (SPM) on 20 Aug 2026 10:43:52 UTC.

Swift 6 data race errors: 3

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: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/angelosstampoulisgithub/ToastKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/angelosstampoulisgithub/ToastKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b5d3ac8 Commit remove old files
Cloned https://github.com/angelosstampoulisgithub/ToastKit.git
Revision (git rev-parse @):
b5d3ac891f9dad70993e07264a09a997e98a27ac
SUCCESS checkout https://github.com/angelosstampoulisgithub/ToastKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/angelosstampoulisgithub/ToastKit.git
https://github.com/angelosstampoulisgithub/ToastKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ToastKit",
  "name" : "ToastKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "ToastKit",
      "targets" : [
        "ToastKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ToastKitTests",
      "path" : "Tests",
      "sources" : [
        "ToastKitTests/ToastKitTests.swift"
      ],
      "target_dependencies" : [
        "ToastKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ToastKit",
      "module_type" : "SwiftTarget",
      "name" : "ToastKit",
      "path" : "Sources",
      "product_memberships" : [
        "ToastKit"
      ],
      "sources" : [
        "ToastKit/Toast.swift",
        "ToastKit/ToastKit.swift",
        "ToastKit/ToastModifier.swift",
        "ToastKit/ToastPosition.swift",
        "ToastKit/ToastStyle.swift",
        "ToastKit/ToastView.swift",
        "ToastKit/View+Toast.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/10] Compiling ToastKit ToastPosition.swift
[4/10] Compiling ToastKit View+Toast.swift
[5/10] Compiling ToastKit ToastModifier.swift
[6/10] Compiling ToastKit ToastKit.swift
[7/10] Compiling ToastKit ToastStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:20:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
18 |     }
19 |
20 |     public static let `default` = ToastStyle(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         background: Color.black.opacity(0.85),
22 |         textColor: .white
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:25:23: warning: static property 'success' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
23 |     )
24 |
25 |     public static let success = ToastStyle(
   |                       |- warning: static property 'success' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'success' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |         background: Color.green.opacity(0.85),
27 |         textColor: .white
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:30:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
28 |     )
29 |
30 |     public static let error = ToastStyle(
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |         background: Color.red.opacity(0.85),
32 |         textColor: .white
[8/10] Compiling ToastKit Toast.swift
[9/10] Compiling ToastKit ToastView.swift
[10/10] Emitting module ToastKit
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:20:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
18 |     }
19 |
20 |     public static let `default` = ToastStyle(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         background: Color.black.opacity(0.85),
22 |         textColor: .white
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:25:23: warning: static property 'success' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
23 |     )
24 |
25 |     public static let success = ToastStyle(
   |                       |- warning: static property 'success' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'success' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |         background: Color.green.opacity(0.85),
27 |         textColor: .white
/Users/admin/builder/spi-builder-workspace/Sources/ToastKit/ToastStyle.swift:30:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct ToastStyle {
   |               `- note: consider making struct 'ToastStyle' conform to the 'Sendable' protocol
12 |     public let background: Color
13 |     public let textColor: Color
   :
28 |     )
29 |
30 |     public static let error = ToastStyle(
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'ToastStyle' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |         background: Color.red.opacity(0.85),
32 |         textColor: .white
Build complete! (8.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ToastKit",
  "name" : "ToastKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "ToastKit",
      "targets" : [
        "ToastKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ToastKitTests",
      "path" : "Tests",
      "sources" : [
        "ToastKitTests/ToastKitTests.swift"
      ],
      "target_dependencies" : [
        "ToastKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ToastKit",
      "module_type" : "SwiftTarget",
      "name" : "ToastKit",
      "path" : "Sources",
      "product_memberships" : [
        "ToastKit"
      ],
      "sources" : [
        "ToastKit/Toast.swift",
        "ToastKit/ToastKit.swift",
        "ToastKit/ToastModifier.swift",
        "ToastKit/ToastPosition.swift",
        "ToastKit/ToastStyle.swift",
        "ToastKit/ToastView.swift",
        "ToastKit/View+Toast.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.