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 CSVCoding, reference main (0ea76e), with Swift 6.0 for macOS (SPM) on 11 Oct 2024 00:14:35 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/CSVCoding.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/CSVCoding
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0ea76e8 Updated read me with more info about headers.
Cloned https://github.com/elegantchaos/CSVCoding.git
Revision (git rev-parse @):
0ea76e86b2ca2d87947a30417cc8cc7e8aa644cf
SUCCESS checkout https://github.com/elegantchaos/CSVCoding.git at main
Fetching https://github.com/elegantchaos/XCTestExtensions.git
[1/571] Fetching xctestextensions
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (0.75s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.3.3 (0.67s)
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.3.3
========================================
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": "csvcoding",
      "name": "CSVCoding",
      "url": "https://github.com/elegantchaos/CSVCoding.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CSVCoding",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/CSVCoding.git
[1/103] Fetching csvcoding
Fetched https://github.com/elegantchaos/CSVCoding.git from cache (0.69s)
Creating working copy for https://github.com/elegantchaos/CSVCoding.git
Working copy of https://github.com/elegantchaos/CSVCoding.git resolved at main (0ea76e8)
warning: '.resolve-product-dependencies': dependency 'csvcoding' 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/elegantchaos/CSVCoding.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/8] Emitting module CSVCoding
/Users/admin/builder/spi-builder-workspace/Sources/CSVCoding/CSVEncoder.swift:17:16: warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     static let deferredFormatter = DateFormatter()
 17 |     static let isoFormatter = ISO8601DateFormatter()
    |                |- warning: static property 'isoFormatter' 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: annotate 'isoFormatter' 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
 18 |
 19 |
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.12, *)
 2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 3 |     open var timeZone: TimeZone! { get set }
 4 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[4/8] Compiling CSVCoding CSVEncoderError.swift
[5/8] Compiling CSVCoding CSVKeyedEncodingContainer.swift
[6/8] Compiling CSVCoding CSVEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CSVCoding/CSVEncoder.swift:17:16: warning: static property 'isoFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     static let deferredFormatter = DateFormatter()
 17 |     static let isoFormatter = ISO8601DateFormatter()
    |                |- warning: static property 'isoFormatter' 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: annotate 'isoFormatter' 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
 18 |
 19 |
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | @available(macOS 10.12, *)
 2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 3 |     open var timeZone: TimeZone! { get set }
 4 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[7/8] Compiling CSVCoding CSVHeaderTranslator.swift
[8/8] Compiling CSVCoding CSVUnkeyedEncodingContainer.swift
Build complete! (8.50s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "xctestextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/XCTestExtensions.git"
    }
  ],
  "manifest_display_name" : "CSVCoding",
  "name" : "CSVCoding",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "CSVCoding",
      "targets" : [
        "CSVCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CSVCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "CSVCodingTests",
      "path" : "Tests/CSVCodingTests",
      "product_dependencies" : [
        "XCTestExtensions"
      ],
      "sources" : [
        "CSVEncoderTests.swift"
      ],
      "target_dependencies" : [
        "CSVCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CSVCoding",
      "module_type" : "SwiftTarget",
      "name" : "CSVCoding",
      "path" : "Sources/CSVCoding",
      "product_memberships" : [
        "CSVCoding"
      ],
      "sources" : [
        "CSVEncoder.swift",
        "CSVEncoderError.swift",
        "CSVHeaderTranslator.swift",
        "CSVKeyedEncodingContainer.swift",
        "CSVUnkeyedEncodingContainer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.