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 sebbu-bitstream, reference main (eba458), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 12:18:02 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MarSe32m/sebbu-bitstream.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MarSe32m/sebbu-bitstream
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eba458d Update windows.yml
Cloned https://github.com/MarSe32m/sebbu-bitstream.git
Revision (git rev-parse @):
eba458d316493346284ebc797e4a24683939a0fa
SUCCESS checkout https://github.com/MarSe32m/sebbu-bitstream.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": "sebbu-bitstream",
      "name": "sebbu-bitstream",
      "url": "https://github.com/MarSe32m/sebbu-bitstream.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sebbu-bitstream",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/MarSe32m/sebbu-bitstream.git
[1/286] Fetching sebbu-bitstream
Fetched https://github.com/MarSe32m/sebbu-bitstream.git from cache (0.84s)
Creating working copy for https://github.com/MarSe32m/sebbu-bitstream.git
Working copy of https://github.com/MarSe32m/sebbu-bitstream.git resolved at main (eba458d)
warning: '.resolve-product-dependencies': dependency 'sebbu-bitstream' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/MarSe32m/sebbu-bitstream.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/9] Compiling SebbuBitStream Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SebbuBitStream/Utilities.swift:2:14: warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | @usableFromInline
 2 | internal let crcTable: UnsafeBufferPointer<UInt32> = {
   |              |- warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'crcTable' with '@MainActor' if property should only be accessed from the main actor
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 |     let buffer = UnsafeMutableBufferPointer<UInt32>.allocate(capacity: 256)
 4 |     for i in 0...255 {
Swift.UnsafeBufferPointer:1:23: note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafePointer<Element>?, count: Int)
[5/9] Emitting module SebbuBitStream
/Users/admin/builder/spi-builder-workspace/Sources/SebbuBitStream/Utilities.swift:2:14: warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | @usableFromInline
 2 | internal let crcTable: UnsafeBufferPointer<UInt32> = {
   |              |- warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'crcTable' with '@MainActor' if property should only be accessed from the main actor
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 |     let buffer = UnsafeMutableBufferPointer<UInt32>.allocate(capacity: 256)
 4 |     for i in 0...255 {
Swift.UnsafeBufferPointer:1:23: note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafePointer<Element>?, count: Int)
[6/9] Compiling SebbuBitStream Compressors.swift
[7/9] Compiling SebbuBitStream BitStreamCodable.swift
[8/9] Compiling SebbuBitStream BitStream + Optionals.swift
[9/9] Compiling SebbuBitStream BitStream.swift
[10/11] Emitting module SebbuBitStreamFoundation
[11/11] Compiling SebbuBitStreamFoundation BitStream + Foundation.swift
Build complete! (7.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "sebbu-bitstream",
  "name" : "sebbu-bitstream",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SebbuBitStream",
      "targets" : [
        "SebbuBitStream"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SebbuBitStreamFoundation",
      "targets" : [
        "SebbuBitStreamFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SebbuBitStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStreamTests",
      "path" : "Tests/SebbuBitStreamTests",
      "sources" : [
        "SebbuBitStreamTests.swift"
      ],
      "target_dependencies" : [
        "SebbuBitStream",
        "SebbuBitStreamFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SebbuBitStreamFoundation",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStreamFoundation",
      "path" : "Sources/SebbuBitStreamFoundation",
      "product_memberships" : [
        "SebbuBitStreamFoundation"
      ],
      "sources" : [
        "BitStream + Foundation.swift"
      ],
      "target_dependencies" : [
        "SebbuBitStream"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SebbuBitStream",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStream",
      "path" : "Sources/SebbuBitStream",
      "product_memberships" : [
        "SebbuBitStream",
        "SebbuBitStreamFoundation"
      ],
      "sources" : [
        "BitStream + Optionals.swift",
        "BitStream.swift",
        "BitStreamCodable.swift",
        "Compressors.swift",
        "Utilities.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.