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 RBBJSON, reference main (b6a8ac), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:54:57 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/robb/RBBJSON.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/robb/RBBJSON
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b6a8ac6 Create FUNDING.yml
Cloned https://github.com/robb/RBBJSON.git
Revision (git rev-parse @):
b6a8ac6f2cd8b043632dfcede71b5db5fc46913e
SUCCESS checkout https://github.com/robb/RBBJSON.git at main
========================================
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": "rbbjson",
      "name": "RBBJSON",
      "url": "https://github.com/robb/RBBJSON.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RBBJSON",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/robb/RBBJSON.git
[1/144] Fetching rbbjson
Fetched https://github.com/robb/RBBJSON.git from cache (0.57s)
Creating working copy for https://github.com/robb/RBBJSON.git
Working copy of https://github.com/robb/RBBJSON.git resolved at main (b6a8ac6)
warning: '.resolve-product-dependencies': dependency 'rbbjson' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/robb/RBBJSON.git
https://github.com/robb/RBBJSON.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RBBJSON",
  "name" : "RBBJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "RBBJSON",
      "targets" : [
        "RBBJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RBBJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "RBBJSONTests",
      "path" : "Tests/RBBJSONTests",
      "sources" : [
        "BooleanTests.swift",
        "ComparisonTests.swift",
        "DateTests.swift",
        "NumbersTests.swift",
        "QueryTests.swift",
        "RBBJSON+Literals.swift",
        "RBBJSONTests.swift",
        "READMETests.swift",
        "SequenceTests.swift",
        "StringTests.swift"
      ],
      "target_dependencies" : [
        "RBBJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RBBJSON",
      "module_type" : "SwiftTarget",
      "name" : "RBBJSON",
      "path" : "Sources/RBBJSON",
      "product_memberships" : [
        "RBBJSON"
      ],
      "sources" : [
        "RBBJSON+Boolean.swift",
        "RBBJSON+Comparable.swift",
        "RBBJSON+Date.swift",
        "RBBJSON+Numbers.swift",
        "RBBJSON+PlaygroundSupport.swift",
        "RBBJSON+String.swift",
        "RBBJSON.swift",
        "RBBJSONQuery.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/11] Compiling RBBJSON RBBJSONQuery.swift
[4/11] Compiling RBBJSON RBBJSON+String.swift
[5/11] Compiling RBBJSON RBBJSON+PlaygroundSupport.swift
[6/11] Compiling RBBJSON RBBJSON+Numbers.swift
[7/11] Compiling RBBJSON RBBJSON+Boolean.swift
[8/11] Compiling RBBJSON RBBJSON+Date.swift
/Users/admin/builder/spi-builder-workspace/Sources/RBBJSON/RBBJSON+Date.swift:6:32: warning: static property 'isoParser' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 4 | public extension Date {
 5 |     enum JSONDateStringDecodingStrategy: Hashable {
 6 |         fileprivate static let isoParser = ISO8601DateFormatter()
   |                                |- warning: static property 'isoParser' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                                |- note: add '@MainActor' to make static property 'isoParser' part of global actor 'MainActor'
   |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 |         case iso8601
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
[9/11] Compiling RBBJSON RBBJSON+Comparable.swift
[10/11] Emitting module RBBJSON
/Users/admin/builder/spi-builder-workspace/Sources/RBBJSON/RBBJSON+Date.swift:6:32: warning: static property 'isoParser' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 4 | public extension Date {
 5 |     enum JSONDateStringDecodingStrategy: Hashable {
 6 |         fileprivate static let isoParser = ISO8601DateFormatter()
   |                                |- warning: static property 'isoParser' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                                |- note: add '@MainActor' to make static property 'isoParser' part of global actor 'MainActor'
   |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 |         case iso8601
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h:46:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
44 |
45 | API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0))
46 | @interface NSISO8601DateFormatter : NSFormatter <NSSecureCoding> {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
47 | @private
48 |     CFDateFormatterRef _formatter;
[11/11] Compiling RBBJSON RBBJSON.swift
Build complete! (5.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RBBJSON",
  "name" : "RBBJSON",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "RBBJSON",
      "targets" : [
        "RBBJSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RBBJSONTests",
      "module_type" : "SwiftTarget",
      "name" : "RBBJSONTests",
      "path" : "Tests/RBBJSONTests",
      "sources" : [
        "BooleanTests.swift",
        "ComparisonTests.swift",
        "DateTests.swift",
        "NumbersTests.swift",
        "QueryTests.swift",
        "RBBJSON+Literals.swift",
        "RBBJSONTests.swift",
        "READMETests.swift",
        "SequenceTests.swift",
        "StringTests.swift"
      ],
      "target_dependencies" : [
        "RBBJSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RBBJSON",
      "module_type" : "SwiftTarget",
      "name" : "RBBJSON",
      "path" : "Sources/RBBJSON",
      "product_memberships" : [
        "RBBJSON"
      ],
      "sources" : [
        "RBBJSON+Boolean.swift",
        "RBBJSON+Comparable.swift",
        "RBBJSON+Date.swift",
        "RBBJSON+Numbers.swift",
        "RBBJSON+PlaygroundSupport.swift",
        "RBBJSON+String.swift",
        "RBBJSON.swift",
        "RBBJSONQuery.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.