The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Toasty, reference 1.0.1 (2d81a9), with Swift 6.1 for macOS (SPM) on 25 Sep 2025 07:56:35 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/annurdien/Toasty.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/annurdien/Toasty
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 2d81a9a docs: update README.md
Cloned https://github.com/annurdien/Toasty.git
Revision (git rev-parse @):
2d81a9acedb900f540ea8c7fa670c57ecb040c81
SUCCESS checkout https://github.com/annurdien/Toasty.git at 1.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "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
[1/157] Fetching toasty
Fetched https://github.com/annurdien/Toasty.git from cache (1.09s)
Creating working copy for https://github.com/annurdien/Toasty.git
Working copy of https://github.com/annurdien/Toasty.git resolved at 1.0.1 (2d81a9a)
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 ToastPresenterModifier.swift
[4/10] Compiling Toasty ToastData.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 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 |
[7/10] Compiling Toasty View+Toastable.swift
[8/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 |
[9/10] Compiling Toasty ToastView.swift
[10/10] Compiling Toasty ToastManager.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 ToastView.swift
[4/9] Compiling Toasty View+Toastable.swift
[5/9] Compiling Toasty ToastManager.swift
[6/9] Compiling Toasty ToastData.swift
[7/9] Compiling Toasty ToastConfiguration.swift
[8/9] Emitting module Toasty
[9/9] Compiling Toasty ToastPresenterModifier.swift
Build complete! (1.42s)
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.