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 json-rpc2, reference v0.1.1 (aa977b), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 14:15:24 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/finsig/json-rpc2.git
Reference: v0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/finsig/json-rpc2
 * tag               v0.1.1     -> FETCH_HEAD
HEAD is now at aa977b9 Make JSONRPC2Error codes public
Cloned https://github.com/finsig/json-rpc2.git
Revision (git rev-parse @):
aa977b971b4baf6d905d8c1e0efbf71299fec330
SUCCESS checkout https://github.com/finsig/json-rpc2.git at v0.1.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/finsig/json-rpc2.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/3] Write sources
[2/3] Write swift-version-117DEE11B69C53C9.txt
[4/7] Compiling JSON Primitive.swift
[5/7] Compiling JSON Object.swift
[6/7] Emitting module JSON
[7/7] Compiling JSON JSON.swift
[8/17] Compiling JSONRPC2 RequestParameters.swift
[9/18] Compiling JSONRPC2 JSONRPC2ErrorCode.swift
[10/18] Compiling JSONRPC2 Identifier.swift
[11/18] Compiling JSONRPC2 Notification.swift
[12/18] Compiling JSONRPC2 JSONRPC2Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONRPC2/Public/JSONRPC2Error.swift:18:16: warning: stored property 'errorInfo' of 'Sendable'-conforming struct 'JSONRPC2Error' has non-sendable type 'JSON?'; this is an error in the Swift 6 language mode
16 |     public let code: Int
17 |     public let message: String
18 |     public let errorInfo: JSON?
   |                `- warning: stored property 'errorInfo' of 'Sendable'-conforming struct 'JSONRPC2Error' has non-sendable type 'JSON?'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/json/Sources/JSON/Model/JSON.swift:18:13: note: enum 'JSON' does not conform to the 'Sendable' protocol
16 |
17 | */
18 | public enum JSON {
   |             `- note: enum 'JSON' does not conform to the 'Sendable' protocol
19 |     case object(Object)
20 |     case array(Array<JSON>)
/Users/admin/builder/spi-builder-workspace/Sources/JSONRPC2/Public/JSONRPC2Error.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSON'
 5 |
 6 | import Foundation
 7 | import JSON
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSON'
 8 |
 9 | /**
[13/18] Compiling JSONRPC2 JSONRPCVersion.swift
[14/18] Compiling JSONRPC2 Batch.swift
[15/18] Compiling JSONRPC2 Request.swift
[16/18] Compiling JSONRPC2 JSONRPC2.swift
[17/18] Emitting module JSONRPC2
/Users/admin/builder/spi-builder-workspace/Sources/JSONRPC2/Public/JSONRPC2Error.swift:18:16: warning: stored property 'errorInfo' of 'Sendable'-conforming struct 'JSONRPC2Error' has non-sendable type 'JSON?'; this is an error in the Swift 6 language mode
16 |     public let code: Int
17 |     public let message: String
18 |     public let errorInfo: JSON?
   |                `- warning: stored property 'errorInfo' of 'Sendable'-conforming struct 'JSONRPC2Error' has non-sendable type 'JSON?'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/json/Sources/JSON/Model/JSON.swift:18:13: note: enum 'JSON' does not conform to the 'Sendable' protocol
16 |
17 | */
18 | public enum JSON {
   |             `- note: enum 'JSON' does not conform to the 'Sendable' protocol
19 |     case object(Object)
20 |     case array(Array<JSON>)
/Users/admin/builder/spi-builder-workspace/Sources/JSONRPC2/Public/JSONRPC2Error.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSON'
 5 |
 6 | import Foundation
 7 | import JSON
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSON'
 8 |
 9 | /**
[18/18] Compiling JSONRPC2 Response.swift
Build complete! (14.26s)
Fetching https://github.com/finsig/json
[1/26] Fetching json
Fetched https://github.com/finsig/json from cache (0.65s)
Computing version for https://github.com/finsig/json
Computed https://github.com/finsig/json at 0.1.0 (0.57s)
Creating working copy for https://github.com/finsig/json
Working copy of https://github.com/finsig/json resolved at 0.1.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "json",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/finsig/json"
    }
  ],
  "manifest_display_name" : "json-rpc2",
  "name" : "json-rpc2",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONRPC2",
      "targets" : [
        "JSONRPC2"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONRPC2Tests",
      "module_type" : "SwiftTarget",
      "name" : "JSONRPC2Tests",
      "path" : "Tests/JSONRPC2Tests",
      "sources" : [
        "Public/IdentifierTests.swift",
        "Public/NotificationTests.swift",
        "Public/ResponseTests.swift"
      ],
      "target_dependencies" : [
        "JSONRPC2"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONRPC2",
      "module_type" : "SwiftTarget",
      "name" : "JSONRPC2",
      "path" : "Sources/JSONRPC2",
      "product_dependencies" : [
        "JSON"
      ],
      "product_memberships" : [
        "JSONRPC2"
      ],
      "sources" : [
        "Internal/JSONRPCVersion.swift",
        "JSONRPC2.swift",
        "Public/Batch.swift",
        "Public/Identifier.swift",
        "Public/JSONRPC2Error.swift",
        "Public/JSONRPC2ErrorCode.swift",
        "Public/Notification.swift",
        "Public/Request.swift",
        "Public/RequestParameters.swift",
        "Public/Response.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.