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 SimpleDownloader, reference 2.0.0 (9206df), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 04:38:02 UTC.

Swift 6 data race errors: 2

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/t-ae/simpledownloader.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/t-ae/simpledownloader
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 9206dfb Update for swift4.2
Cloned https://github.com/t-ae/simpledownloader.git
Revision (git rev-parse @):
9206dfb63469bc596e51824c264e29676e8a536a
SUCCESS checkout https://github.com/t-ae/simpledownloader.git at 2.0.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": "simpledownloader",
      "name": "SimpleDownloader",
      "url": "https://github.com/t-ae/simpledownloader.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/simpledownloader",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/t-ae/simpledownloader.git
[1/248] Fetching simpledownloader
Fetched https://github.com/t-ae/simpledownloader.git from cache (0.67s)
Creating working copy for https://github.com/t-ae/simpledownloader.git
Working copy of https://github.com/t-ae/simpledownloader.git resolved at 2.0.0 (9206dfb)
warning: '.resolve-product-dependencies': dependency 'simpledownloader' 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/t-ae/simpledownloader.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 SimpleDownloader SimpleDownloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleDownloader.swift:3:14: warning: non-final class 'SimpleDownloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |              `- warning: non-final class 'SimpleDownloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 4 |
 5 |     let destination: URL
/Users/admin/builder/spi-builder-workspace/Sources/SimpleDownloader.swift:3:14: warning: 'Sendable' class 'SimpleDownloader' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |              `- warning: 'Sendable' class 'SimpleDownloader' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 4 |
 5 |     let destination: URL
[4/6] Compiling SimpleDownloader SimpleRequester.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleRequester.swift:44:21: warning: capture of 'self' with non-sendable type 'SimpleRequester' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
   |              `- note: class 'SimpleRequester' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init(method: HTTPMethod, url: URL,
   :
42 |             DispatchQueue.main.async {
43 |                 if let error = error {
44 |                     self.errorHandler?(error)
   |                     `- warning: capture of 'self' with non-sendable type 'SimpleRequester' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |                 } else {
46 |                     self.completionHandler?((response!, data!))
/Users/admin/builder/spi-builder-workspace/Sources/SimpleRequester.swift:44:21: warning: capture of 'self' with non-sendable type 'SimpleRequester' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public class SimpleRequester: URLSessionWrapper<(URLResponse, Data)> {
   |              `- note: class 'SimpleRequester' does not conform to the 'Sendable' protocol
 8 |
 9 |     public init(method: HTTPMethod, url: URL,
   :
42 |             DispatchQueue.main.async {
43 |                 if let error = error {
44 |                     self.errorHandler?(error)
   |                     `- warning: capture of 'self' with non-sendable type 'SimpleRequester' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |                 } else {
46 |                     self.completionHandler?((response!, data!))
[5/6] Emitting module SimpleDownloader
/Users/admin/builder/spi-builder-workspace/Sources/SimpleDownloader.swift:3:14: warning: non-final class 'SimpleDownloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |              `- warning: non-final class 'SimpleDownloader' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 4 |
 5 |     let destination: URL
/Users/admin/builder/spi-builder-workspace/Sources/SimpleDownloader.swift:3:14: warning: 'Sendable' class 'SimpleDownloader' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public class SimpleDownloader: URLSessionWrapper<URL>, URLSessionDownloadDelegate {
   |              `- warning: 'Sendable' class 'SimpleDownloader' cannot inherit from another class other than 'NSObject'; this is an error in the Swift 6 language mode
 4 |
 5 |     let destination: URL
[6/6] Compiling SimpleDownloader URLSessionWrapper.swift
Build complete! (6.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleDownloader",
  "name" : "SimpleDownloader",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleDownloader",
      "targets" : [
        "SimpleDownloader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleDownloaderTests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleDownloaderTests",
      "path" : "Tests/SimpleDownloaderTests",
      "sources" : [
        "SimpleDownloaderTests.swift",
        "SimpleRequesterTests.swift"
      ],
      "target_dependencies" : [
        "SimpleDownloader"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleDownloader",
      "module_type" : "SwiftTarget",
      "name" : "SimpleDownloader",
      "path" : "Sources",
      "product_memberships" : [
        "SimpleDownloader"
      ],
      "sources" : [
        "SimpleDownloader.swift",
        "SimpleRequester.swift",
        "URLSessionWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.