This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 StrasbourgParkAPI with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yageek/StrasbourgParkAPI.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/yageek/StrasbourgParkAPI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 784074f Update changelog
Cloned https://github.com/yageek/StrasbourgParkAPI.git
Revision (git rev-parse @):
784074f28e99def979c39d53f962f45873bcab36
SUCCESS checkout https://github.com/yageek/StrasbourgParkAPI.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/yageek/StrasbourgParkAPI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[4/7] Compiling Logging LogHandler.swift
[5/7] Compiling Logging Logging.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Locks.swift
[8/16] Compiling StrasbourgParkAPI DownloadOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadOperation.swift:10:13: warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | final class DownloadOperation<T: Decodable>: BaseOperation, CompletableOperation {
   |             `- warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
11 |     private let url: URL
12 |     private let lock = NSLock()
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Logging
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 29 |     @usableFromInline
 30 |     var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 6 | //
 7 |
 8 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     |- note: annotate 'logger' 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
11 |
[9/16] Compiling StrasbourgParkAPI BaseOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/BaseOperation.swift:17:7: warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
15 | }
16 |
17 | class BaseOperation: Operation {
   |       `- warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 |     // MARK: - Helper Begin
[10/16] Compiling StrasbourgParkAPI DownloadAllPageOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:20:13: warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
 18 | }
 19 |
 20 | final class DownloadAllPages<T: Decodable>: BaseOperation, CompletableOperation {
    |             `- warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
 21 |
 22 |     private let workingQueue: OperationQueue
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Logging
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 29 |     @usableFromInline
 30 |     var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 6 | //
 7 |
 8 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     |- note: annotate 'logger' 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
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:161:27: warning: 'as' test is always true
159 |             self.records[pageNumber] = elements
160 |
161 |         } catch let error as ParkingAPIClientError {
    |                           `- warning: 'as' test is always true
162 |             logger.error("Error downloading data: \(error)")
163 |             self.errors.append(error)
[11/16] Compiling StrasbourgParkAPI Log.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Logging
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 29 |     @usableFromInline
 30 |     var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 6 | //
 7 |
 8 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     |- note: annotate 'logger' 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
11 |
[12/16] Compiling StrasbourgParkAPI ParkAPIOpenData.swift
[13/16] Compiling StrasbourgParkAPI ParkAPILegacy.swift
[14/16] Compiling StrasbourgParkAPI ParkingAPIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/ParkingAPIClient.swift:25:17: warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
 23 | public final class ParkingAPIClient: NSObject, URLSessionDelegate {
 24 |
 25 |     private var session: URLSession!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
 26 |     private let workingQueue: OperationQueue
 27 |     private let pageSize: UInt
[15/16] Emitting module StrasbourgParkAPI
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:10:5: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Logging
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
 26 | ///     logger.info("Hello World!")
 27 | ///
 28 | public struct Logger {
    |               `- note: struct 'Logger' does not conform to the 'Sendable' protocol
 29 |     @usableFromInline
 30 |     var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/Log.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 6 | //
 7 |
 8 | import Logging
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
 9 |
10 | let logger = Logger(label: "net.yageek.StrasbourgPark-API")
   |     |- note: annotate 'logger' 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
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Core/ParkingAPIClient.swift:25:17: warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
 23 | public final class ParkingAPIClient: NSObject, URLSessionDelegate {
 24 |
 25 |     private var session: URLSession!
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'ParkingAPIClient' is mutable; this is an error in the Swift 6 language mode
 26 |     private let workingQueue: OperationQueue
 27 |     private let pageSize: UInt
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/BaseOperation.swift:17:7: warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
15 | }
16 |
17 | class BaseOperation: Operation {
   |       `- warning: class 'BaseOperation' must restate inherited '@unchecked Sendable' conformance
18 |
19 |     // MARK: - Helper Begin
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadAllPageOperation.swift:20:13: warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
 18 | }
 19 |
 20 | final class DownloadAllPages<T: Decodable>: BaseOperation, CompletableOperation {
    |             `- warning: class 'DownloadAllPages' must restate inherited '@unchecked Sendable' conformance
 21 |
 22 |     private let workingQueue: OperationQueue
/Users/admin/builder/spi-builder-workspace/Sources/StrasbourgParkAPI/Operations/DownloadOperation.swift:10:13: warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | final class DownloadOperation<T: Decodable>: BaseOperation, CompletableOperation {
   |             `- warning: class 'DownloadOperation' must restate inherited '@unchecked Sendable' conformance
11 |     private let url: URL
12 |     private let lock = NSLock()
[16/16] Compiling StrasbourgParkAPI Endpoint.swift
Build complete! (22.63s)
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (0.68s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.2.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "StrasbourgParkAPI",
  "name" : "StrasbourgParkAPI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "StrasbourgParkAPI",
      "targets" : [
        "StrasbourgParkAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StrasbourgParkAPITests",
      "module_type" : "SwiftTarget",
      "name" : "StrasbourgParkAPITests",
      "path" : "Tests/StrasbourgParkAPITests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/StrasbourgParkAPITests/samples",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "StrasbourgParkAPITests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "StrasbourgParkAPI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StrasbourgParkAPI",
      "module_type" : "SwiftTarget",
      "name" : "StrasbourgParkAPI",
      "path" : "Sources/StrasbourgParkAPI",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "StrasbourgParkAPI"
      ],
      "sources" : [
        "Core/Endpoint.swift",
        "Core/Log.swift",
        "Core/ParkAPILegacy.swift",
        "Core/ParkAPIOpenData.swift",
        "Core/ParkingAPIClient.swift",
        "Operations/BaseOperation.swift",
        "Operations/DownloadAllPageOperation.swift",
        "Operations/DownloadOperation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.