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 DBThreadSafe, reference 2.2.0 (19a7f3), with Swift 5.10 for macOS (SPM) on 5 Mar 2025 14:47:24 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/dodobrands/DBThreadSafe-ios.git
Reference: 2.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dodobrands/DBThreadSafe-ios
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at 19a7f34 Downgrade swift version (#17)
Cloned https://github.com/dodobrands/DBThreadSafe-ios.git
Revision (git rev-parse @):
19a7f347f721a5c18aa275fc2d5bc207c536d4a3
SUCCESS checkout https://github.com/dodobrands/DBThreadSafe-ios.git at 2.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/dodobrands/DBThreadSafe-ios.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/5] Emitting module DBThreadSafe
/Users/admin/builder/spi-builder-workspace/Sources/DBThreadSafe/DBThreadSafeContainer.swift:4:37: warning: stored property 'value' of 'Sendable'-conforming generic class 'DBThreadSafeContainer' is mutable
    nonisolated(unsafe) private var value: T
                                    ^
/Users/admin/builder/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:4:37: warning: stored property 'lock' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<pthread_rwlock_t>' (aka 'UnsafeMutablePointer<_opaque_pthread_rwlock_t>')
    nonisolated(unsafe) private let lock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
                                    ^
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
@frozen public struct UnsafeMutablePointer<Pointee> : _Pointer {
                      ^
[4/5] Compiling DBThreadSafe DBThreadSafeContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/DBThreadSafe/DBThreadSafeContainer.swift:4:37: warning: stored property 'value' of 'Sendable'-conforming generic class 'DBThreadSafeContainer' is mutable
    nonisolated(unsafe) private var value: T
                                    ^
[5/5] Compiling DBThreadSafe Lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/DBThreadSafe/Lock.swift:4:37: warning: stored property 'lock' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<pthread_rwlock_t>' (aka 'UnsafeMutablePointer<_opaque_pthread_rwlock_t>')
    nonisolated(unsafe) private let lock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
                                    ^
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
@frozen public struct UnsafeMutablePointer<Pointee> : _Pointer {
                      ^
Build complete! (4.39s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DBThreadSafe",
  "name" : "DBThreadSafe",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DBThreadSafe",
      "targets" : [
        "DBThreadSafe"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DBThreadSafeTests",
      "module_type" : "SwiftTarget",
      "name" : "DBThreadSafeTests",
      "path" : "Tests/DBThreadSafeTests",
      "sources" : [
        "DBThreadSafeContainerTests.swift"
      ],
      "target_dependencies" : [
        "DBThreadSafe"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DBThreadSafe",
      "module_type" : "SwiftTarget",
      "name" : "DBThreadSafe",
      "path" : "Sources/DBThreadSafe",
      "product_memberships" : [
        "DBThreadSafe"
      ],
      "sources" : [
        "DBThreadSafeContainer.swift",
        "Lock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.