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 ldk-node, reference main (c08c3d), with Swift 6.0 for macOS (SPM) on 12 Nov 2024 19:47:44 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.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lightningdevkit/ldk-node.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lightningdevkit/ldk-node
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c08c3d5 Merge pull request #345 from tnull/2024-08-regard-reserve-spending-all
Cloned https://github.com/lightningdevkit/ldk-node.git
Revision (git rev-parse @):
c08c3d5d76a1e6623f7211c282cada0828936643
SUCCESS checkout https://github.com/lightningdevkit/ldk-node.git at main
[6881/236294051] Downloading https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip
Downloading binary artifact https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip
Downloaded https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip (10.49s)
========================================
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": "ldk-node",
      "name": "ldk-node",
      "url": "https://github.com/lightningdevkit/ldk-node.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ldk-node",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/lightningdevkit/ldk-node.git
[1/6465] Fetching ldk-node
Fetched https://github.com/lightningdevkit/ldk-node.git from cache (1.28s)
Creating working copy for https://github.com/lightningdevkit/ldk-node.git
Working copy of https://github.com/lightningdevkit/ldk-node.git resolved at main (c08c3d5)
Fetching binary artifact https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip from cache
Fetched https://github.com/lightningdevkit/ldk-node/releases/download/v0.4.2/LDKNodeFFI.xcframework.zip from cache (8.56s)
warning: '.resolve-product-dependencies': dependency 'ldk-node' 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/lightningdevkit/ldk-node.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
[1/3] Copying LDKNodeFFI.framework
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/5] Compiling LDKNode LDKNode.swift
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/LDKNode/LDKNode.swift:7142:17: warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
 339 |     }
 340 | }
 341 | fileprivate class UniffiHandleMap<T> {
     |                   `- note: generic class 'UniffiHandleMap' does not conform to the 'Sendable' protocol
 342 |     private var map: [UInt64: T] = [:]
 343 |     private let lock = NSLock()
     :
7140 | private let UNIFFI_RUST_FUTURE_POLL_MAYBE_READY: Int8 = 1
7141 |
7142 | fileprivate let uniffiContinuationHandleMap = UniffiHandleMap<UnsafeContinuation<Int8, Never>>()
     |                 |- warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                 |- note: annotate 'uniffiContinuationHandleMap' 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
7143 |
7144 | fileprivate func uniffiRustCallAsync<F, T>(
[5/5] Emitting module LDKNode
/Users/admin/builder/spi-builder-workspace/bindings/swift/Sources/LDKNode/LDKNode.swift:7142:17: warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
 339 |     }
 340 | }
 341 | fileprivate class UniffiHandleMap<T> {
     |                   `- note: generic class 'UniffiHandleMap' does not conform to the 'Sendable' protocol
 342 |     private var map: [UInt64: T] = [:]
 343 |     private let lock = NSLock()
     :
7140 | private let UNIFFI_RUST_FUTURE_POLL_MAYBE_READY: Int8 = 1
7141 |
7142 | fileprivate let uniffiContinuationHandleMap = UniffiHandleMap<UnsafeContinuation<Int8, Never>>()
     |                 |- warning: let 'uniffiContinuationHandleMap' is not concurrency-safe because non-'Sendable' type 'UniffiHandleMap<UnsafeContinuation<Int8, Never>>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                 |- note: annotate 'uniffiContinuationHandleMap' 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
7143 |
7144 | fileprivate func uniffiRustCallAsync<F, T>(
Build complete! (8.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ldk-node",
  "name" : "ldk-node",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "LDKNode",
      "targets" : [
        "LDKNodeFFI",
        "LDKNode"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LDKNodeFFI",
      "module_type" : "BinaryTarget",
      "name" : "LDKNodeFFI",
      "path" : "remote/archive/LDKNodeFFI.xcframework.zip",
      "product_memberships" : [
        "LDKNode"
      ],
      "sources" : [
      ],
      "type" : "binary"
    },
    {
      "c99name" : "LDKNode",
      "module_type" : "SwiftTarget",
      "name" : "LDKNode",
      "path" : "bindings/swift/Sources",
      "product_memberships" : [
        "LDKNode"
      ],
      "sources" : [
        "LDKNode/LDKNode.swift"
      ],
      "target_dependencies" : [
        "LDKNodeFFI"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.