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 0.4.0 (8adc74), with Swift 5.10 for macOS (SPM) on 21 Apr 2025 17:00:37 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: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mattmassicotte/MainOffender
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 8adc743 Remove hardcoded intend width
Cloned https://github.com/mattmassicotte/MainOffender.git
Revision (git rev-parse @):
8adc74300838c9a105c701e5de998c50edd93387
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/MainOffender.git at 0.4.0
========================================
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 RunLoop+Async.swift
[4/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)
                                ^
[5/10] Compiling MainOffender ThreadExecutor.swift
[6/10] Compiling MainOffender MainOperationQueue.swift
[7/10] Compiling MainOffender MainDispatchQueue.swift
[8/10] Emitting module MainOffender
[9/10] Compiling MainOffender MainActor+RunUnsafely.swift
[10/10] Compiling MainOffender UndoManager+MainActor.swift
Build complete! (6.28s)
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.