The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Toasty, reference v1.0.0 (307bcb), with Swift 6.1 for macOS (SPM) on 25 Jul 2025 14:54:19 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/annurdien/Toasty.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/annurdien/Toasty
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 307bcb6 fix: fix build yml
Cloned https://github.com/annurdien/Toasty.git
Revision (git rev-parse @):
307bcb665a1fb1395b67f623034960578e24f4cb
SUCCESS checkout https://github.com/annurdien/Toasty.git at v1.0.0
========================================
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": "toasty",
      "name": "Toasty",
      "url": "https://github.com/annurdien/Toasty.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Toasty",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/annurdien/Toasty.git
[4/157] Fetching toasty
Fetched https://github.com/annurdien/Toasty.git from cache (1.00s)
Creating working copy for https://github.com/annurdien/Toasty.git
Working copy of https://github.com/annurdien/Toasty.git resolved at v1.0.0 (307bcb6)
warning: '.resolve-product-dependencies': dependency 'toasty' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/annurdien/Toasty.git
https://github.com/annurdien/Toasty.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Toasty",
  "name" : "Toasty",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Toasty",
      "targets" : [
        "Toasty"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastyTests",
      "module_type" : "SwiftTarget",
      "name" : "ToastyTests",
      "path" : "Tests/ToastyTests",
      "sources" : [
        "ToastyTests.swift"
      ],
      "target_dependencies" : [
        "Toasty"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Toasty",
      "module_type" : "SwiftTarget",
      "name" : "Toasty",
      "path" : "Sources/Toasty",
      "product_memberships" : [
        "Toasty"
      ],
      "sources" : [
        "Core/ToastConfiguration.swift",
        "Core/ToastData.swift",
        "Core/ToastManager.swift",
        "Extensions/View+Toastable.swift",
        "Modifiers/ToastPresenterModifier.swift",
        "Views/ToastView.swift",
        "Wrappers/Toast.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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 Toasty ToastView.swift
[4/10] Compiling Toasty ToastManager.swift
[5/10] Emitting module Toasty
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Core/ToastConfiguration.swift:30:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration object for customizing toast appearance and behavior
 4 | public struct ToastConfiguration {
   |               `- note: consider making struct 'ToastConfiguration' conform to the 'Sendable' protocol
 5 |     /// The corner radius of the toast
 6 |     public var cornerRadius: CGFloat = 10
   :
28 |
29 |     /// Default configuration
30 |     public static let `default` = ToastConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' 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
31 |
32 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Core/ToastConfiguration.swift:37:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration object for customizing toast appearance and behavior
 4 | public struct ToastConfiguration {
   |               `- note: consider making struct 'ToastConfiguration' conform to the 'Sendable' protocol
 5 |     /// The corner radius of the toast
 6 |     public var cornerRadius: CGFloat = 10
   :
35 | /// Environment key for toast configuration
36 | private struct ToastConfigurationKey: EnvironmentKey {
37 |     static let defaultValue = ToastConfiguration.default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
[6/10] Compiling Toasty ToastData.swift
[7/10] Compiling Toasty ToastConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Core/ToastConfiguration.swift:30:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration object for customizing toast appearance and behavior
 4 | public struct ToastConfiguration {
   |               `- note: consider making struct 'ToastConfiguration' conform to the 'Sendable' protocol
 5 |     /// The corner radius of the toast
 6 |     public var cornerRadius: CGFloat = 10
   :
28 |
29 |     /// Default configuration
30 |     public static let `default` = ToastConfiguration()
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' 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
31 |
32 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Core/ToastConfiguration.swift:37:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Configuration object for customizing toast appearance and behavior
 4 | public struct ToastConfiguration {
   |               `- note: consider making struct 'ToastConfiguration' conform to the 'Sendable' protocol
 5 |     /// The corner radius of the toast
 6 |     public var cornerRadius: CGFloat = 10
   :
35 | /// Environment key for toast configuration
36 | private struct ToastConfigurationKey: EnvironmentKey {
37 |     static let defaultValue = ToastConfiguration.default
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'ToastConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | }
39 |
[8/10] Compiling Toasty Toast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Wrappers/Toast.swift:8:9: warning: main actor-isolated property 'toastManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 3 | @propertyWrapper
 4 | public struct Toast: DynamicProperty {
 5 |     @EnvironmentObject private var toastManager: ToastManager
   |                                    `- note: property declared here
 6 |
 7 |     public var wrappedValue: ToastManager {
 8 |         toastManager
   |         `- warning: main actor-isolated property 'toastManager' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 9 |     }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Toasty/Wrappers/Toast.swift:11:20: error: return from initializer without initializing all stored properties
 9 |     }
10 |
11 |     public init() {}
   |                    |- error: return from initializer without initializing all stored properties
   |                    `- note: main actor-isolated default value of 'self.toastManager' cannot be used in a nonisolated initalizer
12 | }
13 |
[9/10] Compiling Toasty ToastPresenterModifier.swift
[10/10] Compiling Toasty View+Toastable.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/9] Compiling Toasty Toast.swift
[3/9] Compiling Toasty View+Toastable.swift
[4/9] Compiling Toasty ToastData.swift
[5/9] Compiling Toasty ToastManager.swift
[6/9] Compiling Toasty ToastConfiguration.swift
[7/9] Emitting module Toasty
[8/9] Compiling Toasty ToastPresenterModifier.swift
[9/9] Compiling Toasty ToastView.swift
Build complete! (1.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Toasty",
  "name" : "Toasty",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Toasty",
      "targets" : [
        "Toasty"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastyTests",
      "module_type" : "SwiftTarget",
      "name" : "ToastyTests",
      "path" : "Tests/ToastyTests",
      "sources" : [
        "ToastyTests.swift"
      ],
      "target_dependencies" : [
        "Toasty"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Toasty",
      "module_type" : "SwiftTarget",
      "name" : "Toasty",
      "path" : "Sources/Toasty",
      "product_memberships" : [
        "Toasty"
      ],
      "sources" : [
        "Core/ToastConfiguration.swift",
        "Core/ToastData.swift",
        "Core/ToastManager.swift",
        "Extensions/View+Toastable.swift",
        "Modifiers/ToastPresenterModifier.swift",
        "Views/ToastView.swift",
        "Wrappers/Toast.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.