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 0.0.67 (7fabb5), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 05:30:05 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: 0.0.67
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/n4226/swiftrestclient
 * tag               0.0.67     -> FETCH_HEAD
HEAD is now at 7fabb51 fixed finaly
Cloned https://github.com/n4226/swiftrestclient.git
Revision (git rev-parse @):
7fabb516f9287ee5653ef408dec39acde65c683e
SUCCESS checkout https://github.com/n4226/swiftrestclient.git at 0.0.67
========================================
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.65s)
Creating working copy for https://github.com/n4226/swiftrestclient.git
Working copy of https://github.com/n4226/swiftrestclient.git resolved at 0.0.67 (7fabb51)
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 HttpMethiod.swift
[5/10] Compiling SwiftRestClient HTTPTask.swift
[6/10] Compiling SwiftRestClient Errors.swift
[7/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 |
[8/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 |
[9/10] Compiling SwiftRestClient URLParameterEncoder.swift
[10/10] Compiling SwiftRestClient JSONParameterEncoding.swift
Build complete! (9.09s)
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"
    }
  ],
  "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.