This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of AlertToast with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elai950/AlertToast.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elai950/AlertToast
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 638f38f Fixed line break bug.
Cloned https://github.com/elai950/AlertToast.git
Revision (git rev-parse @):
638f38f9daf08e17b7caea22d2fcb9c0a418d1b6
SUCCESS checkout https://github.com/elai950/AlertToast.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/elai950/AlertToast.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Compiling AlertToast BlurView.swift
[4/6] Emitting module AlertToast
[5/6] Compiling AlertToast AlertToast.swift
/Users/admin/builder/spi-builder-workspace/Sources/AlertToast/AlertToast.swift:471:37: warning: capture of 'self' with non-sendable type 'AlertToastModifier' in a `@Sendable` closure; this is an error in the Swift 6 language mode
401 |
402 | @available(iOS 13, macOS 11, *)
403 | public struct AlertToastModifier: ViewModifier{
    |               `- note: consider making struct 'AlertToastModifier' conform to the 'Sendable' protocol
404 |
405 |     ///Presentation `Binding<Bool>`
    :
469 |                                 DispatchQueue.main.async {
470 |
471 |                                     self.alertRect = rect
    |                                     `- warning: capture of 'self' with non-sendable type 'AlertToastModifier' in a `@Sendable` closure; this is an error in the Swift 6 language mode
472 |                                 }
473 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/AlertToast/AlertToast.swift:471:37: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
469 |                                 DispatchQueue.main.async {
470 |
471 |                                     self.alertRect = rect
    |                                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
472 |                                 }
473 |                             }
[6/6] Compiling AlertToast ActivityIndicator.swift
Build complete! (32.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AlertToast",
  "name" : "AlertToast",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "AlertToast",
      "targets" : [
        "AlertToast"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AlertToastTests",
      "module_type" : "SwiftTarget",
      "name" : "AlertToastTests",
      "path" : "Tests/AlertToastTests",
      "sources" : [
        "AlertToastTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "AlertToast"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AlertToast",
      "module_type" : "SwiftTarget",
      "name" : "AlertToast",
      "path" : "Sources/AlertToast",
      "product_memberships" : [
        "AlertToast"
      ],
      "sources" : [
        "ActivityIndicator.swift",
        "AlertToast.swift",
        "BlurView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.