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 JWT, reference master (45e5d4), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 00:47:06 UTC.

Swift 6 data race errors: 0

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/kylef/JSONWebToken.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylef/JSONWebToken.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 45e5d4a Remove deprecated encode/decode methods, fix warnings and other… (#112)
Cloned https://github.com/kylef/JSONWebToken.swift.git
Revision (git rev-parse @):
45e5d4a0ff5a538d50b1cc3cb04a9b81f08eb95b
SUCCESS checkout https://github.com/kylef/JSONWebToken.swift.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": "jsonwebtoken.swift",
      "name": "JWT",
      "url": "https://github.com/kylef/JSONWebToken.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JSONWebToken.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kylef/JSONWebToken.swift.git
[1/1506] Fetching jsonwebtoken.swift
Fetched https://github.com/kylef/JSONWebToken.swift.git from cache (1.23s)
Creating working copy for https://github.com/kylef/JSONWebToken.swift.git
Working copy of https://github.com/kylef/JSONWebToken.swift.git resolved at master (45e5d4a)
warning: '.resolve-product-dependencies': dependency 'jsonwebtoken.swift' 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/kylef/JSONWebToken.swift.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/8] Compiling JWA None.swift
[5/8] Compiling JWA HMACCommonCrypto.swift
[6/8] Compiling JWA JWA.swift
[7/8] Emitting module JWA
[8/8] Compiling JWA HMAC.swift
[9/18] Compiling JWT CompactJSONEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/JWT/CompactJSONEncoder.swift:4:7: warning: class 'CompactJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 2 |
 3 |
 4 | class CompactJSONEncoder: JSONEncoder {
   |       `- warning: class 'CompactJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 5 |   override func encode<T : Encodable>(_ value: T) throws -> Data {
 6 |     return try encodeString(value).data(using: .ascii) ?? Data()
[10/18] Compiling JWT Decode.swift
[11/18] Compiling JWT CompactJSONDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/JWT/CompactJSONDecoder.swift:3:7: warning: class 'CompactJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 1 | import Foundation
 2 |
 3 | class CompactJSONDecoder: JSONDecoder {
   |       `- warning: class 'CompactJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 4 |   override func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
 5 |     guard let string = String(data: data, encoding: .ascii) else {
[12/18] Compiling JWT JOSEHeader.swift
[13/18] Compiling JWT Encode.swift
[14/18] Compiling JWT Claims.swift
[15/19] Compiling JWT Base64.swift
[16/19] Emitting module JWT
/Users/admin/builder/spi-builder-workspace/Sources/JWT/CompactJSONDecoder.swift:3:7: warning: class 'CompactJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 1 | import Foundation
 2 |
 3 | class CompactJSONDecoder: JSONDecoder {
   |       `- warning: class 'CompactJSONDecoder' must restate inherited '@unchecked Sendable' conformance
 4 |   override func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable {
 5 |     guard let string = String(data: data, encoding: .ascii) else {
/Users/admin/builder/spi-builder-workspace/Sources/JWT/CompactJSONEncoder.swift:4:7: warning: class 'CompactJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 2 |
 3 |
 4 | class CompactJSONEncoder: JSONEncoder {
   |       `- warning: class 'CompactJSONEncoder' must restate inherited '@unchecked Sendable' conformance
 5 |   override func encode<T : Encodable>(_ value: T) throws -> Data {
 6 |     return try encodeString(value).data(using: .ascii) ?? Data()
[17/19] Compiling JWT ClaimSet.swift
[18/19] Compiling JWT Algorithm.swift
[19/19] Compiling JWT JWT.swift
Build complete! (8.02s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JWT",
  "name" : "JWT",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JWT",
      "targets" : [
        "JWT"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JWTTests",
      "module_type" : "SwiftTarget",
      "name" : "JWTTests",
      "path" : "Tests/JWTTests",
      "sources" : [
        "ClaimSetTests.swift",
        "CompactJSONDecoderTests.swift",
        "CompactJSONEncoderTests.swift",
        "IntegrationTests.swift",
        "JWTDecodeTests.swift",
        "JWTEncodeTests.swift",
        "PayloadTests.swift"
      ],
      "target_dependencies" : [
        "JWT"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JWT",
      "module_type" : "SwiftTarget",
      "name" : "JWT",
      "path" : "Sources/JWT",
      "product_memberships" : [
        "JWT"
      ],
      "sources" : [
        "Algorithm.swift",
        "Base64.swift",
        "ClaimSet.swift",
        "Claims.swift",
        "CompactJSONDecoder.swift",
        "CompactJSONEncoder.swift",
        "Decode.swift",
        "Encode.swift",
        "JOSEHeader.swift",
        "JWT.swift"
      ],
      "target_dependencies" : [
        "JWA"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JWATests",
      "module_type" : "SwiftTarget",
      "name" : "JWATests",
      "path" : "Tests/JWATests",
      "sources" : [
        "HMACTests.swift",
        "NoneTests.swift"
      ],
      "target_dependencies" : [
        "JWA"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JWA",
      "module_type" : "SwiftTarget",
      "name" : "JWA",
      "path" : "Sources/JWA",
      "product_memberships" : [
        "JWT"
      ],
      "sources" : [
        "HMAC/HMAC.swift",
        "HMAC/HMACCommonCrypto.swift",
        "JWA.swift",
        "None.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.