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 QuickAuth, reference 1.0.4 (19dc48), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:23:22 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/micho233/quickauth.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/micho233/quickauth
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 19dc486 Version bump
Cloned https://github.com/micho233/quickauth.git
Revision (git rev-parse @):
19dc48660260bff0e327307a6bf3aa88c476dc4c
SUCCESS checkout https://github.com/micho233/quickauth.git at 1.0.4
========================================
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": "quickauth",
      "name": "QuickAuth",
      "url": "https://github.com/micho233/quickauth.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/quickauth",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/micho233/quickauth.git
[1/68] Fetching quickauth
Fetched https://github.com/micho233/quickauth.git from cache (0.74s)
Creating working copy for https://github.com/micho233/quickauth.git
Working copy of https://github.com/micho233/quickauth.git resolved at 1.0.4 (19dc486)
warning: '.resolve-product-dependencies': dependency 'quickauth' 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/micho233/quickauth.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
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/18] Compiling QuickAuth URLError+Extension.swift
[5/18] Compiling QuickAuth NetworkError.swift
[6/19] Compiling QuickAuth DataExtension.swift
[7/19] Compiling QuickAuth Error+Extension.swift
[8/19] Emitting module QuickAuth
/Users/admin/builder/spi-builder-workspace/Sources/QuickAuth/QuickAuth.swift:29:17: warning: stored property 'refreshPublisher' of 'Sendable'-conforming class 'QuickAuth' is mutable; this is an error in the Swift 6 language mode
 27 |
 28 |     private let queue = DispatchQueue(label: "Autenticator.\(UUID().uuidString)")
 29 |     private var refreshPublisher: AnyPublisher<QuickAuthAccessProtocol?, Error>?
    |                 `- warning: stored property 'refreshPublisher' of 'Sendable'-conforming class 'QuickAuth' is mutable; this is an error in the Swift 6 language mode
 30 |     private weak var dataSource: QuickAuthDatasourceProtocol?
 31 |     private weak var delegate: QuickAuthDelegate?
[9/19] Compiling QuickAuth HTTPURLResponse+Extension.swift
[10/19] Compiling QuickAuth StringExtension.swift
[11/19] Compiling QuickAuth QuickAuthDatasourceProtocol.swift
[12/19] Compiling QuickAuth Request.swift
[13/19] Compiling QuickAuth QuickAuth.swift
/Users/admin/builder/spi-builder-workspace/Sources/QuickAuth/QuickAuth.swift:29:17: warning: stored property 'refreshPublisher' of 'Sendable'-conforming class 'QuickAuth' is mutable; this is an error in the Swift 6 language mode
 27 |
 28 |     private let queue = DispatchQueue(label: "Autenticator.\(UUID().uuidString)")
 29 |     private var refreshPublisher: AnyPublisher<QuickAuthAccessProtocol?, Error>?
    |                 `- warning: stored property 'refreshPublisher' of 'Sendable'-conforming class 'QuickAuth' is mutable; this is an error in the Swift 6 language mode
 30 |     private weak var dataSource: QuickAuthDatasourceProtocol?
 31 |     private weak var delegate: QuickAuthDelegate?
[14/19] Compiling QuickAuth QuickAuthAccessServiceProtocol.swift
[15/19] Compiling QuickAuth QuickAuthAccessProtocol.swift
[16/19] Compiling QuickAuth QuickAuthDelegate.swift
[17/19] Compiling QuickAuthMonitor QuickAuthNetMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/QuickAuthMonitor/QuickAuthNetMonitor.swift:28:17: warning: capture of 'self' with non-sendable type 'QuickAuthNetMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public class QuickAuthNetMonitor: QuickAuthNetMonitorProtocol {
   |              `- note: class 'QuickAuthNetMonitor' does not conform to the 'Sendable' protocol
17 |     private let monitor = NWPathMonitor()
18 |     private let queue = DispatchQueue(label: "com.QuickAuth.network-monitor")
   :
26 |         monitor.pathUpdateHandler = { [weak self] path in
27 |             DispatchQueue.main.async {
28 |                 self?.isConnected.send(path.status == .satisfied)
   |                 `- warning: capture of 'self' with non-sendable type 'QuickAuthNetMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |             }
30 |         }
/Users/admin/builder/spi-builder-workspace/Sources/QuickAuthMonitor/QuickAuthNetMonitor.swift:28:17: warning: capture of 'self' with non-sendable type 'QuickAuthNetMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public class QuickAuthNetMonitor: QuickAuthNetMonitorProtocol {
   |              `- note: class 'QuickAuthNetMonitor' does not conform to the 'Sendable' protocol
17 |     private let monitor = NWPathMonitor()
18 |     private let queue = DispatchQueue(label: "com.QuickAuth.network-monitor")
   :
26 |         monitor.pathUpdateHandler = { [weak self] path in
27 |             DispatchQueue.main.async {
28 |                 self?.isConnected.send(path.status == .satisfied)
   |                 `- warning: capture of 'self' with non-sendable type 'QuickAuthNetMonitor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |             }
30 |         }
/Users/admin/builder/spi-builder-workspace/Sources/QuickAuthMonitor/QuickAuthNetMonitor.swift:28:17: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
26 |         monitor.pathUpdateHandler = { [weak self] path in
27 |             DispatchQueue.main.async {
28 |                 self?.isConnected.send(path.status == .satisfied)
   |                 `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
29 |             }
30 |         }
[18/19] Emitting module QuickAuthMonitor
[19/19] Compiling QuickAuth QuickAuthLogFormatter.swift
Build complete! (15.73s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "QuickAuth",
  "name" : "QuickAuth",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "QuickAuth",
      "targets" : [
        "QuickAuth",
        "QuickAuthMonitor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickAuthTests",
      "module_type" : "SwiftTarget",
      "name" : "QuickAuthTests",
      "path" : "Tests/QuickAuthTests",
      "sources" : [
        "QuickAuthTests.swift"
      ],
      "target_dependencies" : [
        "QuickAuth"
      ],
      "type" : "test"
    },
    {
      "c99name" : "QuickAuthMonitor",
      "module_type" : "SwiftTarget",
      "name" : "QuickAuthMonitor",
      "path" : "Sources/QuickAuthMonitor",
      "product_memberships" : [
        "QuickAuth"
      ],
      "sources" : [
        "QuickAuthNetMonitor.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "QuickAuth",
      "module_type" : "SwiftTarget",
      "name" : "QuickAuth",
      "path" : "Sources/QuickAuth",
      "product_memberships" : [
        "QuickAuth"
      ],
      "sources" : [
        "Extensions/DataExtension.swift",
        "Extensions/Error+Extension.swift",
        "Extensions/HTTPURLResponse+Extension.swift",
        "Extensions/StringExtension.swift",
        "Extensions/URLError+Extension.swift",
        "NetworkError.swift",
        "Protocols/QuickAuthAccessProtocol.swift",
        "Protocols/QuickAuthAccessServiceProtocol.swift",
        "Protocols/QuickAuthDatasourceProtocol.swift",
        "Protocols/QuickAuthDelegate.swift",
        "Protocols/Request.swift",
        "QuickAuth.swift",
        "QuickAuthLogFormatter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.