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 Resting, reference main (667c7e), with Swift 6.0 (beta) for macOS (SPM) on 15 Sep 2024 22:57:03 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rocxteady/Resting.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rocxteady/Resting
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 667c7e7 Merge pull request #9 from rocxteady/development
Cloned https://github.com/rocxteady/Resting.git
Revision (git rev-parse @):
667c7e7903e41ccd4ab8a39f4df0570a29f49ead
SUCCESS checkout https://github.com/rocxteady/Resting.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/rocxteady/Resting.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/5] Write sources
[1/5] Copying Info.plist
[2/5] Copying Localizable.strings
[4/5] Write swift-version-117DEE11B69C53C9.txt
[6/13] Compiling Resting RestingError.swift
[7/13] Compiling Resting URLSession+Helper.swift
[8/13] Compiling Resting DataWithURLResponse.swift
[9/13] Emitting module Resting
/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resting.swift:29:14: warning: non-final class 'RestClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 | /// ///
 28 | /// This client utilizes a `RestClientConfiguration` to configure its behavior, including the session configuration and JSON decoding.
 29 | public class RestClient: NSObject {
    |              `- warning: non-final class 'RestClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 30 |     private lazy var session: URLSession = URLSession(configuration: clientConfiguration.sessionConfiguration, delegate: self, delegateQueue: nil)
 31 |     private let clientConfiguration: RestClientConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resting.swift:30:22: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'RestClient' is mutable; this is an error in the Swift 6 language mode
 28 | /// This client utilizes a `RestClientConfiguration` to configure its behavior, including the session configuration and JSON decoding.
 29 | public class RestClient: NSObject {
 30 |     private lazy var session: URLSession = URLSession(configuration: clientConfiguration.sessionConfiguration, delegate: self, delegateQueue: nil)
    |                      `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'RestClient' is mutable; this is an error in the Swift 6 language mode
 31 |     private let clientConfiguration: RestClientConfiguration
 32 |
[10/13] Compiling Resting RequestConfiguration.swift
[11/13] Compiling Resting URLComponents+Helper.swift
[12/13] Compiling Resting Resting.swift
/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resting.swift:29:14: warning: non-final class 'RestClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 | /// ///
 28 | /// This client utilizes a `RestClientConfiguration` to configure its behavior, including the session configuration and JSON decoding.
 29 | public class RestClient: NSObject {
    |              `- warning: non-final class 'RestClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 30 |     private lazy var session: URLSession = URLSession(configuration: clientConfiguration.sessionConfiguration, delegate: self, delegateQueue: nil)
 31 |     private let clientConfiguration: RestClientConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resting.swift:30:22: warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'RestClient' is mutable; this is an error in the Swift 6 language mode
 28 | /// This client utilizes a `RestClientConfiguration` to configure its behavior, including the session configuration and JSON decoding.
 29 | public class RestClient: NSObject {
 30 |     private lazy var session: URLSession = URLSession(configuration: clientConfiguration.sessionConfiguration, delegate: self, delegateQueue: nil)
    |                      `- warning: stored property '$__lazy_storage_$_session' of 'Sendable'-conforming class 'RestClient' is mutable; this is an error in the Swift 6 language mode
 31 |     private let clientConfiguration: RestClientConfiguration
 32 |
[13/13] Compiling Resting resource_bundle_accessor.swift
Build complete! (11.37s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "Resting",
  "name" : "Resting",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "Resting",
      "targets" : [
        "Resting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RestingTests",
      "module_type" : "SwiftTarget",
      "name" : "RestingTests",
      "path" : "Tests/RestingTests",
      "sources" : [
        "LocalizationTests.swift",
        "Mocks/MockedModel.swift",
        "Mocks/MockedURLService.swift",
        "RequestConfigurationTests.swift",
        "RestClientTests.swift",
        "RestClientWithFailureTests.swift"
      ],
      "target_dependencies" : [
        "Resting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Resting",
      "module_type" : "SwiftTarget",
      "name" : "Resting",
      "path" : "Sources/Resting",
      "product_memberships" : [
        "Resting"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Resting/Resources/tr.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "tr"
            }
          }
        }
      ],
      "sources" : [
        "DataWithURLResponse.swift",
        "Extensions/URLComponents+Helper.swift",
        "Extensions/URLSession+Helper.swift",
        "RequestConfiguration.swift",
        "Resting.swift",
        "RestingError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.