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 Fuse, reference 1.4.0 (26ba86), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 17:10:15 UTC.

Swift 6 data race errors: 0

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/krisk/fuse-swift.git
Reference: 1.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krisk/fuse-swift
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 26ba868 Updated version
Cloned https://github.com/krisk/fuse-swift.git
Revision (git rev-parse @):
26ba868691b2d8b7bf2b1322951eb591be70ccca
SUCCESS checkout https://github.com/krisk/fuse-swift.git at 1.4.0
========================================
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": "fuse-swift",
      "name": "Fuse",
      "url": "https://github.com/krisk/fuse-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/fuse-swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/krisk/fuse-swift.git
[1/691] Fetching fuse-swift
Fetched https://github.com/krisk/fuse-swift.git from cache (0.92s)
Creating working copy for https://github.com/krisk/fuse-swift.git
Working copy of https://github.com/krisk/fuse-swift.git resolved at 1.4.0 (26ba868)
warning: '.resolve-product-dependencies': dependency 'fuse-swift' 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/krisk/fuse-swift.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling Fuse FuseUtilities.swift
[4/6] Compiling Fuse String+Fuse.swift
[5/6] Emitting module Fuse
[6/6] Compiling Fuse Fuse.swift
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:369:37: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
367 |
368 |                 for (index, item) in chunk.enumerated() {
369 |                     if let result = self.search(pattern, in: item) {
    |                                     `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 |                         chunkItems.append((offset + index, result.score, result.ranges))
371 |                     }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:21: warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                     `- warning: mutation of captured var 'items' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:375:46: warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
373 |
374 |                 itemsQueue.async {
375 |                     items.append(contentsOf: chunkItems)
    |                                              `- warning: reference to captured var 'chunkItems' in concurrently-executing code; this is an error in the Swift 6 language mode
376 |                     group.leave()
377 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
384 |             let sorted = items.sorted { $0.score < $1.score }
385 |             DispatchQueue.main.async {
386 |                 completion(sorted)
    |                 |- warning: capture of 'completion' with non-sendable type '([Fuse.SearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, ranges: Array<ClosedRange<Int>>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
387 |             }
388 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:521:38: warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | }
 24 |
 25 | public protocol Fuseable {
    |                 `- note: protocol 'Fuseable' does not conform to the 'Sendable' protocol
 26 |     var properties: [FuseProperty] { get }
 27 | }
    :
519 |                 var chunkResult = [FusableSearchResult]()
520 |
521 |                 for (index, item) in chunk.enumerated() {
    |                                      `- warning: capture of 'chunk' with non-sendable type '[any Fuseable]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
522 |                     var scores = [Double]()
523 |                     var totalScore = 0.0
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in a `@Sendable` closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:531:41: warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
 27 | }
 28 |
 29 | public class Fuse {
    |              `- note: class 'Fuse' does not conform to the 'Sendable' protocol
 30 |     private var location: Int
 31 |     private var distance: Int
    :
529 |                         let value = property.name
530 |
531 |                         if let result = self.search(pattern, in: value) {
    |                                         `- warning: capture of 'self' with non-sendable type 'Fuse' in an isolated closure; this is an error in the Swift 6 language mode
532 |                             let weight = property.weight == 1 ? 1 : 1 - property.weight
533 |                             let score = result.score * weight
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:21: warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                     `- warning: mutation of captured var 'collectionResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:554:57: warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
552 |
553 |                 collectionResultQueue.async {
554 |                     collectionResult.append(contentsOf: chunkResult)
    |                                                         `- warning: reference to captured var 'chunkResult' in concurrently-executing code; this is an error in the Swift 6 language mode
555 |                     group.leave()
556 |                 }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
563 |             let sorted = collectionResult.sorted { $0.score < $1.score }
564 |             DispatchQueue.main.async {
565 |                 completion(sorted)
    |                 |- warning: capture of 'completion' with non-sendable type '([Fuse.FusableSearchResult]) -> Void' (aka '(Array<(index: Int, score: Double, results: Array<(key: String, score: Double, ranges: Array<ClosedRange<Int>>)>)>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
566 |             }
567 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:386:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
384 |             let sorted = items.sorted { $0.score < $1.score }
385 |             DispatchQueue.main.async {
386 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
387 |             }
388 |         }
/Users/admin/builder/spi-builder-workspace/Fuse/Classes/Fuse.swift:565:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
563 |             let sorted = collectionResult.sorted { $0.score < $1.score }
564 |             DispatchQueue.main.async {
565 |                 completion(sorted)
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
566 |             }
567 |         }
Build complete! (6.13s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fuse",
  "name" : "Fuse",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Fuse",
      "targets" : [
        "Fuse"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Fuse",
      "module_type" : "SwiftTarget",
      "name" : "Fuse",
      "path" : "Fuse",
      "product_memberships" : [
        "Fuse"
      ],
      "sources" : [
        "Classes/Fuse.swift",
        "Classes/FuseUtilities.swift",
        "Classes/String+Fuse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.