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 ToastUI, reference main (146e2f), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 06:05:29 UTC.

Swift 6 data race errors: 1

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: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/quanshousio/ToastUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/quanshousio/ToastUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 146e2f5 Merge pull request #38 from quanshousio/4.0.0
Cloned https://github.com/quanshousio/ToastUI.git
Revision (git rev-parse @):
146e2f52c132f681fbf798c8c9f0eb52f021f346
SUCCESS checkout https://github.com/quanshousio/ToastUI.git at main
========================================
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": "toastui",
      "name": "ToastUI",
      "url": "https://github.com/quanshousio/ToastUI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ToastUI",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/quanshousio/ToastUI.git
[1/1450] Fetching toastui
Fetched https://github.com/quanshousio/ToastUI.git from cache (1.15s)
Creating working copy for https://github.com/quanshousio/ToastUI.git
Working copy of https://github.com/quanshousio/ToastUI.git resolved at main (146e2f5)
warning: '.resolve-product-dependencies': dependency 'toastui' 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/quanshousio/ToastUI.git
https://github.com/quanshousio/ToastUI.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ToastUI",
  "name" : "ToastUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ToastUI",
      "targets" : [
        "ToastUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastUI",
      "module_type" : "SwiftTarget",
      "name" : "ToastUI",
      "path" : "Sources/ToastUI",
      "product_memberships" : [
        "ToastUI"
      ],
      "sources" : [
        "DefaultToastViewStyle.swift",
        "EnvironmentValues.swift",
        "ToastUI.swift",
        "ToastView.swift",
        "ToastViewBridge.swift",
        "ToastViewController.swift",
        "ToastViewHostingController.swift",
        "ToastViewStyle.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/11] Compiling ToastUI ToastViewBridge.swift
[4/11] Compiling ToastUI ToastViewHostingController.swift
[5/11] Compiling ToastUI ToastView.swift
[6/11] Compiling ToastUI EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/EnvironmentValues.swift:31:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyToastViewStyle' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | struct ToastViewStyleEnvironmentKey: EnvironmentKey {
31 |   static let defaultValue = AnyToastViewStyle(DefaultToastViewStyle())
   |              |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyToastViewStyle' 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:11:8: note: consider making struct 'AnyToastViewStyle' conform to the 'Sendable' protocol
  9 |
 10 | /// A concrete, type-erased ``ToastViewStyle``.
 11 | struct AnyToastViewStyle: ToastViewStyle {
    |        `- note: consider making struct 'AnyToastViewStyle' conform to the 'Sendable' protocol
 12 |   private let _makeBody: (Configuration) -> AnyView
 13 |
[7/11] Compiling ToastUI ToastUI.swift
[8/11] Compiling ToastUI DefaultToastViewStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:41:5: warning: call to main actor-isolated initializer 'init(content:label:background:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 38 |   ///
 39 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
 40 |   public func makeBody(configuration: Configuration) -> some View {
    |               `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
 41 |     DefaultToastView {
    |     `- warning: call to main actor-isolated initializer 'init(content:label:background:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 42 |       configuration.content
 43 |     } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/ToastView.swift:193:3: note: calls to initializer 'init(content:label:background:)' from outside of its actor context are implicitly asynchronous
191 |   @ScaledMetric private var cornerSize = 9.0
192 |
193 |   init(
    |   |- note: calls to initializer 'init(content:label:background:)' from outside of its actor context are implicitly asynchronous
    |   `- note: main actor isolation inferred from conformance to protocol 'View'
194 |     @ViewBuilder content: () -> Content,
195 |     @ViewBuilder label: () -> Label,
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:116:5: warning: call to main actor-isolated initializer 'init(configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 63 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
 64 | public struct IndeterminateProgressToastViewStyle: ToastViewStyle {
 65 |   struct IndeterminateProgressToastView: View {
    |          |- note: calls to initializer 'init(configuration:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from conformance to protocol 'View'
 66 |     let configuration: Configuration
 67 |
    :
113 |   ///
114 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
115 |   public func makeBody(configuration: Configuration) -> some View {
    |               `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
116 |     IndeterminateProgressToastView(configuration: configuration)
    |     `- warning: call to main actor-isolated initializer 'init(configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |   }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:189:5: warning: call to main actor-isolated initializer 'init(configuration:value:total:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | public struct DeterminateProgressToastViewStyle<Value>: ToastViewStyle
134 |   where Value: BinaryFloatingPoint {
135 |   struct DeterminateProgressToastView: View {
    |          |- note: calls to initializer 'init(configuration:value:total:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from conformance to protocol 'View'
136 |     let configuration: Configuration
137 |     @Binding var value: Value
    :
186 |   ///
187 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
188 |   public func makeBody(configuration: Configuration) -> some View {
    |               `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
189 |     DeterminateProgressToastView(configuration: configuration, value: $value, total: $total)
    |     `- warning: call to main actor-isolated initializer 'init(configuration:value:total:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 |   }
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:249:5: warning: call to main actor-isolated initializer 'init(configuration:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, visionOS 1.0, *)
214 | public struct IconToastViewStyle<Content>: ToastViewStyle where Content: View {
215 |   struct IconToastView: View {
    |          |- note: calls to initializer 'init(configuration:content:)' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from conformance to protocol 'View'
216 |     let configuration: Configuration
217 |     let content: Content
    :
246 |   ///
247 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
248 |   public func makeBody(configuration: Configuration) -> some View {
    |               `- note: add '@MainActor' to make instance method 'makeBody(configuration:)' part of global actor 'MainActor'
249 |     IconToastView(configuration: configuration, content: content)
    |     `- warning: call to main actor-isolated initializer 'init(configuration:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 |   }
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:249:5: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
247 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
248 |   public func makeBody(configuration: Configuration) -> some View {
249 |     IconToastView(configuration: configuration, content: content)
    |     |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 |   }
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:249:5: warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
247 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
248 |   public func makeBody(configuration: Configuration) -> some View {
249 |     IconToastView(configuration: configuration, content: content)
    |     |- warning: sending 'self.content' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated 'self.content' to main actor-isolated initializer 'init(configuration:content:)' risks causing data races between main actor-isolated and task-isolated uses
250 |   }
251 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:189:5: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
187 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
188 |   public func makeBody(configuration: Configuration) -> some View {
189 |     DeterminateProgressToastView(configuration: configuration, value: $value, total: $total)
    |     |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:value:total:)' risks causing data races between main actor-isolated and task-isolated uses
190 |   }
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:189:5: warning: sending value of non-Sendable type 'Binding<Value>' risks causing data races; this is an error in the Swift 6 language mode
187 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
188 |   public func makeBody(configuration: Configuration) -> some View {
189 |     DeterminateProgressToastView(configuration: configuration, value: $value, total: $total)
    |     |- warning: sending value of non-Sendable type 'Binding<Value>' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated value of non-Sendable type 'Binding<Value>' to main actor-isolated initializer 'init(configuration:value:total:)' risks causing races in between task-isolated and main actor-isolated uses
190 |   }
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:189:5: warning: sending value of non-Sendable type 'Binding<Value>' risks causing data races; this is an error in the Swift 6 language mode
187 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
188 |   public func makeBody(configuration: Configuration) -> some View {
189 |     DeterminateProgressToastView(configuration: configuration, value: $value, total: $total)
    |     |- warning: sending value of non-Sendable type 'Binding<Value>' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated value of non-Sendable type 'Binding<Value>' to main actor-isolated initializer 'init(configuration:value:total:)' risks causing races in between task-isolated and main actor-isolated uses
190 |   }
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:116:5: warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
114 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
115 |   public func makeBody(configuration: Configuration) -> some View {
116 |     IndeterminateProgressToastView(configuration: configuration)
    |     |- warning: sending 'configuration' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated 'configuration' to main actor-isolated initializer 'init(configuration:)' risks causing data races between main actor-isolated and task-isolated uses
117 |   }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:41:5: warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Content?' risks causing data races; this is an error in the Swift 6 language mode
 39 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
 40 |   public func makeBody(configuration: Configuration) -> some View {
 41 |     DefaultToastView {
    |     |- warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Content?' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated value of non-Sendable type '() -> ToastViewStyleConfiguration.Content?' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
 42 |       configuration.content
 43 |     } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:41:5: warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Label?' risks causing data races; this is an error in the Swift 6 language mode
 39 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
 40 |   public func makeBody(configuration: Configuration) -> some View {
 41 |     DefaultToastView {
    |     |- warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Label?' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated value of non-Sendable type '() -> ToastViewStyleConfiguration.Label?' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
 42 |       configuration.content
 43 |     } label: {
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:41:5: warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Background?' risks causing data races; this is an error in the Swift 6 language mode
 39 |   /// - Parameter configuration: The properties of the ``ToastView`` being created.
 40 |   public func makeBody(configuration: Configuration) -> some View {
 41 |     DefaultToastView {
    |     |- warning: sending value of non-Sendable type '() -> ToastViewStyleConfiguration.Background?' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: sending task-isolated value of non-Sendable type '() -> ToastViewStyleConfiguration.Background?' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
 42 |       configuration.content
 43 |     } label: {
[9/11] Emitting module ToastUI
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/EnvironmentValues.swift:31:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyToastViewStyle' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | struct ToastViewStyleEnvironmentKey: EnvironmentKey {
31 |   static let defaultValue = AnyToastViewStyle(DefaultToastViewStyle())
   |              |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyToastViewStyle' 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
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/ToastUI/DefaultToastViewStyle.swift:11:8: note: consider making struct 'AnyToastViewStyle' conform to the 'Sendable' protocol
  9 |
 10 | /// A concrete, type-erased ``ToastViewStyle``.
 11 | struct AnyToastViewStyle: ToastViewStyle {
    |        `- note: consider making struct 'AnyToastViewStyle' conform to the 'Sendable' protocol
 12 |   private let _makeBody: (Configuration) -> AnyView
 13 |
[10/11] Compiling ToastUI ToastViewController.swift
[11/11] Compiling ToastUI ToastViewStyle.swift
Build complete! (8.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ToastUI",
  "name" : "ToastUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ToastUI",
      "targets" : [
        "ToastUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ToastUI",
      "module_type" : "SwiftTarget",
      "name" : "ToastUI",
      "path" : "Sources/ToastUI",
      "product_memberships" : [
        "ToastUI"
      ],
      "sources" : [
        "DefaultToastViewStyle.swift",
        "EnvironmentValues.swift",
        "ToastUI.swift",
        "ToastView.swift",
        "ToastViewBridge.swift",
        "ToastViewController.swift",
        "ToastViewHostingController.swift",
        "ToastViewStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.