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 JSONHTTPClient, reference develop (345021), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 04:25:51 UTC.

Swift 6 data race errors: 1

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/otaviokz/JSONHTTPClient.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/otaviokz/JSONHTTPClient
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 3450210 Merge pull request #3 from otaviokz/v1.1.0
Cloned https://github.com/otaviokz/JSONHTTPClient.git
Revision (git rev-parse @):
34502106a676cac3d86209814a9bb99ddab66ea2
SUCCESS checkout https://github.com/otaviokz/JSONHTTPClient.git at develop
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/otaviokz/JSONHTTPClient.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/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/6] Compiling JSONHTTPClient JSONHTTPClientError.swift
[4/6] Compiling JSONHTTPClient URLRequests+Utils.swift
[5/6] Emitting module JSONHTTPClient
/Users/admin/builder/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0.0, *)
13 | public struct JSONHTTPClient: JSONHTTPClientType {
   |               `- note: consider making struct 'JSONHTTPClient' conform to the 'Sendable' protocol
14 |     public static let shared = JSONHTTPClient()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
15 |
16 |     private init() {}
[6/6] Compiling JSONHTTPClient JSONHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | @available(iOS 13.0.0, *)
13 | public struct JSONHTTPClient: JSONHTTPClientType {
   |               `- note: consider making struct 'JSONHTTPClient' conform to the 'Sendable' protocol
14 |     public static let shared = JSONHTTPClient()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONHTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' 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
15 |
16 |     private init() {}
Build complete! (6.38s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONHTTPClient",
  "name" : "JSONHTTPClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "JSONHTTPClient",
      "targets" : [
        "JSONHTTPClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONHTTPClientTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONHTTPClientTests",
      "path" : "Tests/JSONHTTPClientTests",
      "sources" : [
        "JSONHTTPClientTests.swift"
      ],
      "target_dependencies" : [
        "JSONHTTPClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONHTTPClient",
      "module_type" : "SwiftTarget",
      "name" : "JSONHTTPClient",
      "path" : "Sources/JSONHTTPClient",
      "product_memberships" : [
        "JSONHTTPClient"
      ],
      "sources" : [
        "JSONHTTPClient.swift",
        "JSONHTTPClientError.swift",
        "URLRequests+Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.