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 SwiftRestClient, reference master (3eb119), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 05:29:50 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/n4226/swiftrestclient.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/n4226/swiftrestclient
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3eb1198 fix versions
Cloned https://github.com/n4226/swiftrestclient.git
Revision (git rev-parse @):
3eb11987dc8ca095d72404709fba79a3c5162e79
SUCCESS checkout https://github.com/n4226/swiftrestclient.git at master
========================================
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": "swiftrestclient",
      "name": "SwiftRestClient",
      "url": "https://github.com/n4226/swiftrestclient.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftrestclient",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/n4226/swiftrestclient.git
[1/134] Fetching swiftrestclient
Fetched https://github.com/n4226/swiftrestclient.git from cache (0.62s)
Creating working copy for https://github.com/n4226/swiftrestclient.git
Working copy of https://github.com/n4226/swiftrestclient.git resolved at master (3eb1198)
warning: '.resolve-product-dependencies': dependency 'swiftrestclient' 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/n4226/swiftrestclient.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/10] Compiling SwiftRestClient Endpoint.swift
[4/10] Compiling SwiftRestClient HTTPTask.swift
[5/10] Compiling SwiftRestClient HttpMethiod.swift
[6/10] Compiling SwiftRestClient Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/protocals/Client.swift:20:23: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     var timout: Double = 10.0
 19 |
 20 |     public static var standard = requestConfig()
    |                       |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'standard' 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
 21 | }
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/protocals/Client.swift:82:70: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
 58 |         }
 59 |
 60 |     func requestRaw(_ endpoint: EndPoint, with config: requestConfig = .standard, completion: @escaping (Data?, URLResponse?, Error?) -> Void){
    |                                                                                   `- note: parameter 'completion' is implicitly non-sendable
 61 |         var request = URLRequest(url: URL(string: endpoint.baseURL.absoluteString + endpoint.path)!, timeoutInterval: config.timout)
 62 |
    :
 80 |
 81 |         }
 82 |         URLSession.shared.dataTask(with: request, completionHandler: completion)
    |                                                                      `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
 83 |     }
 84 |
[7/10] Compiling SwiftRestClient URLParameterEncoder.swift
[8/10] Compiling SwiftRestClient JSONParameterEncoding.swift
[9/10] Emitting module SwiftRestClient
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRestClient/protocals/Client.swift:20:23: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     var timout: Double = 10.0
 19 |
 20 |     public static var standard = requestConfig()
    |                       |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'standard' 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
 21 | }
 22 |
[10/10] Compiling SwiftRestClient Errors.swift
Build complete! (9.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRestClient",
  "name" : "SwiftRestClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftRestClient",
      "targets" : [
        "SwiftRestClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRestClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestClientTests",
      "path" : "Tests/SwiftRestClientTests",
      "sources" : [
        "SwiftRestClientTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftRestClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRestClient",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestClient",
      "path" : "Sources/SwiftRestClient",
      "product_memberships" : [
        "SwiftRestClient"
      ],
      "sources" : [
        "Encoding/JSONParameterEncoding.swift",
        "Encoding/URLParameterEncoder.swift",
        "Errors.swift",
        "enums/HTTPTask.swift",
        "enums/HttpMethiod.swift",
        "protocals/Client.swift",
        "protocals/Endpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.