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 MainOffender, reference main (a5c60f), with Swift 5.10 for macOS (SPM) on 21 Apr 2025 16:59:55 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/MainOffender.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mattmassicotte/MainOffender
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a5c60fe Update contact info
Cloned https://github.com/mattmassicotte/MainOffender.git
Revision (git rev-parse @):
a5c60feeb800a0d41d0fbc3f102f6c286fe3c549
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/MainOffender.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/mattmassicotte/MainOffender.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/10] Compiling MainOffender ThreadExecutor.swift
[4/10] Compiling MainOffender MainActor+RunUnsafely.swift
[5/10] Compiling MainOffender NotificationCenter+Unsafe.swift
/Users/admin/builder/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:10:7: warning: initialization of immutable value 'nonMainblock' was never used; consider replacing with assignment to '_' or removing it
                let nonMainblock = unsafeBitCast(block, to: ((Notification) -> Void).self)
                ~~~~^~~~~~~~~~~~
                _
/Users/admin/builder/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:16:5: warning: capture of 'block' with non-sendable type '@MainActor (Notification) -> Void' in a `@Sendable` closure
                                block(mainNotification)
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:16:5: note: a function type must be marked '@Sendable' to conform to 'Sendable'
                                block(mainNotification)
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:16:5: warning: capture of 'block' with non-sendable type '@MainActor (Notification) -> Void' in a `@Sendable` closure
                                block(mainNotification)
                                ^
/Users/admin/builder/spi-builder-workspace/Sources/MainOffender/NotificationCenter+Unsafe.swift:16:5: note: a function type must be marked '@Sendable' to conform to 'Sendable'
                                block(mainNotification)
                                ^
[6/10] Compiling MainOffender MainDispatchQueue.swift
[7/10] Compiling MainOffender RunLoop+Async.swift
[8/10] Compiling MainOffender UndoManager+MainActor.swift
[9/10] Emitting module MainOffender
[10/10] Compiling MainOffender MainOperationQueue.swift
Build complete! (7.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MainOffender",
  "name" : "MainOffender",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "MainOffender",
      "targets" : [
        "MainOffender"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MainOffenderTests",
      "module_type" : "SwiftTarget",
      "name" : "MainOffenderTests",
      "path" : "Tests/MainOffenderTests",
      "sources" : [
        "AsyncAdditionTests.swift",
        "MainActorTests.swift",
        "ThreadExecutorTests.swift",
        "UndoManagerTests.swift"
      ],
      "target_dependencies" : [
        "MainOffender"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MainOffender",
      "module_type" : "SwiftTarget",
      "name" : "MainOffender",
      "path" : "Sources/MainOffender",
      "product_memberships" : [
        "MainOffender"
      ],
      "sources" : [
        "MainActor+RunUnsafely.swift",
        "MainDispatchQueue.swift",
        "MainOperationQueue.swift",
        "NotificationCenter+Unsafe.swift",
        "RunLoop+Async.swift",
        "ThreadExecutor.swift",
        "UndoManager+MainActor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.