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 swiftredunda, reference 0.1.6 (771499), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 12:47:46 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/sobotics/swiftredunda.git
Reference: 0.1.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sobotics/swiftredunda
 * tag               0.1.6      -> FETCH_HEAD
HEAD is now at 7714992 fix version not sent
Cloned https://github.com/sobotics/swiftredunda.git
Revision (git rev-parse @):
7714992103dcd46c5728af51de9d179fe4fac0d8
SUCCESS checkout https://github.com/sobotics/swiftredunda.git at 0.1.6
========================================
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": "swiftredunda",
      "name": "swiftredunda",
      "url": "https://github.com/sobotics/swiftredunda.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftredunda",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/sobotics/swiftredunda.git
[2/80] Fetching swiftredunda
Fetched https://github.com/sobotics/swiftredunda.git from cache (0.64s)
Creating working copy for https://github.com/sobotics/swiftredunda.git
Working copy of https://github.com/sobotics/swiftredunda.git resolved at 0.1.6 (7714992)
warning: '.resolve-product-dependencies': dependency 'swiftredunda' 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/sobotics/swiftredunda.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 SwiftRedunda RedundaClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:50:10: warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
48 |
49 | enum RedundaError: Error {
50 |     case invalidPingParams([String: Any])
   |          `- warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
51 |     case invalidPingJsonResponseData
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:32:17: warning: capture of 'callback' with non-sendable type '(RedundaPingResponse?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |         session.dataTask(with: req) { (data, res, err) in
31 |             if let err = err {
32 |                 callback(nil, err)
   |                 |- warning: capture of 'callback' with non-sendable type '(RedundaPingResponse?, (any Error)?) -> ()' 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'
33 |                 return
34 |             }
[4/6] Compiling SwiftRedunda RedundaPingService.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaPingService.swift:44:17: warning: capture of 'self' with non-sendable type 'RedundaPingService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public class RedundaPingService {
   |              `- note: class 'RedundaPingService' does not conform to the 'Sendable' protocol
 5 |     public var key: String
 6 |     public var version: String?
   :
42 |         queue.async {
43 |             while true {
44 |                 self.ping()
   |                 `- warning: capture of 'self' with non-sendable type 'RedundaPingService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |                 sleep(UInt32(timeInterval))
46 |             }
[5/6] Compiling SwiftRedunda RedundaPingResponse.swift
[6/6] Emitting module SwiftRedunda
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:50:10: warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
48 |
49 | enum RedundaError: Error {
50 |     case invalidPingParams([String: Any])
   |          `- warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
51 |     case invalidPingJsonResponseData
52 | }
Build complete! (5.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftredunda",
  "name" : "swiftredunda",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftRedunda",
      "targets" : [
        "SwiftRedunda"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftredundaTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftredundaTests",
      "path" : "Tests/swiftredundaTests",
      "sources" : [
        "swiftredundaTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRedunda"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRedunda",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRedunda",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftRedunda"
      ],
      "sources" : [
        "swiftredunda/RedundaClient.swift",
        "swiftredunda/RedundaPingResponse.swift",
        "swiftredunda/RedundaPingService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.