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 CBORCoding, reference main (434a23), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 00:47:17 UTC.

Swift 6 data race errors: 2

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/SomeRandomiOSDev/CBORCoding.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SomeRandomiOSDev/CBORCoding
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 434a239 Merge pull request #33 from DanieleCeglia-EPR/main
Submodule path 'Half': checked out '14b1ab35ffdf62c999ef1016ec0f8e745a6feed5'
Submodule 'Half' (https://github.com/SomeRandomiOSDev/Half) registered for path 'Half'
Cloning into '/Users/admin/builder/spi-builder-workspace/Half'...
Cloned https://github.com/SomeRandomiOSDev/CBORCoding.git
Revision (git rev-parse @):
434a239fba3909bf957b36dbabac93626985a0d2
SUCCESS checkout https://github.com/SomeRandomiOSDev/CBORCoding.git at main
Fetching https://github.com/SomeRandomiOSDev/Half
[1/630] Fetching half
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.76s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.1 (1.34s)
Creating working copy for https://github.com/SomeRandomiOSDev/Half
Working copy of https://github.com/SomeRandomiOSDev/Half resolved at 1.4.1
========================================
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": "cborcoding",
      "name": "CBORCoding",
      "url": "https://github.com/SomeRandomiOSDev/CBORCoding.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CBORCoding",
      "dependencies": [
        {
          "identity": "half",
          "name": "Half",
          "url": "https://github.com/SomeRandomiOSDev/Half",
          "version": "1.4.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Half",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/SomeRandomiOSDev/CBORCoding.git
[1/1452] Fetching cborcoding
Fetched https://github.com/SomeRandomiOSDev/CBORCoding.git from cache (0.92s)
Fetching https://github.com/SomeRandomiOSDev/Half from cache
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.42s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.2 (0.90s)
Creating working copy for https://github.com/SomeRandomiOSDev/CBORCoding.git
Working copy of https://github.com/SomeRandomiOSDev/CBORCoding.git resolved at main (434a239)
Creating working copy for https://github.com/SomeRandomiOSDev/Half
Working copy of https://github.com/SomeRandomiOSDev/Half resolved at 1.4.2
warning: '.resolve-product-dependencies': dependency 'cborcoding' is not used by any target
Found 1 product dependencies
  - Half
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SomeRandomiOSDev/CBORCoding.git
https://github.com/SomeRandomiOSDev/CBORCoding.git
{
  "dependencies" : [
    {
      "identity" : "half",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SomeRandomiOSDev/Half"
    }
  ],
  "manifest_display_name" : "CBORCoding",
  "name" : "CBORCoding",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "CBORCoding",
      "targets" : [
        "CBORCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CBORCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "CBORCodingTests",
      "path" : "Tests/CBORCodingTests",
      "product_dependencies" : [
        "Half"
      ],
      "sources" : [
        "CBORDecoderTests.swift",
        "CBOREncoderTests.swift",
        "CBORParserTests.swift",
        "CBORTests.swift",
        "ContainersTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CBORCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CBORCoding",
      "module_type" : "SwiftTarget",
      "name" : "CBORCoding",
      "path" : "Sources/CBORCoding",
      "product_dependencies" : [
        "Half"
      ],
      "product_memberships" : [
        "CBORCoding"
      ],
      "sources" : [
        "CBOR+Codable.swift",
        "CBOR+Equatable.swift",
        "CBOR.swift",
        "CBORDecoder.swift",
        "CBOREncoder.swift",
        "CBORParser.swift",
        "Containers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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/6] Write sources
[2/6] Compiling fp_extend.cpp
[2/6] Compiling fp_trunc.cpp
[4/6] Write swift-version-2F0A5646E1D333AE.txt
[5/6] Compiling half.c
[7/10] Compiling Half Half+Coding.swift
[8/10] Compiling Half Functions.swift
[9/10] Emitting module Half
[10/10] Compiling Half Half.swift
[11/18] Compiling CBORCoding Containers.swift
[12/18] Compiling CBORCoding CBORDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBORDecoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
[13/18] Compiling CBORCoding CBOREncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOREncoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
[14/18] Compiling CBORCoding CBOR.swift
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:43:27: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
 41 |
 42 |         /// The maximum value this type can represent: `-1`
 43 |         public static let max = NegativeUInt64(rawValue: 0)
    |                           |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'max' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:46:27: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
    :
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
 46 |         public static let min = NegativeUInt64(rawValue: .max)
    |                           |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'min' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[15/18] Compiling CBORCoding CBOR+Equatable.swift
[16/18] Compiling CBORCoding CBOR+Codable.swift
[17/18] Emitting module CBORCoding
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBORDecoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOREncoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBORParser.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | // MARK: - CBORParser Definition
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:43:27: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
 41 |
 42 |         /// The maximum value this type can represent: `-1`
 43 |         public static let max = NegativeUInt64(rawValue: 0)
    |                           |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'max' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:46:27: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
    :
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
 46 |         public static let min = NegativeUInt64(rawValue: .max)
    |                           |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'min' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[18/18] Compiling CBORCoding CBORParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/CBORCoding/CBORParser.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | // MARK: - CBORParser Definition
Build complete! (7.46s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "half",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SomeRandomiOSDev/Half"
    }
  ],
  "manifest_display_name" : "CBORCoding",
  "name" : "CBORCoding",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "CBORCoding",
      "targets" : [
        "CBORCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CBORCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "CBORCodingTests",
      "path" : "Tests/CBORCodingTests",
      "product_dependencies" : [
        "Half"
      ],
      "sources" : [
        "CBORDecoderTests.swift",
        "CBOREncoderTests.swift",
        "CBORParserTests.swift",
        "CBORTests.swift",
        "ContainersTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CBORCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CBORCoding",
      "module_type" : "SwiftTarget",
      "name" : "CBORCoding",
      "path" : "Sources/CBORCoding",
      "product_dependencies" : [
        "Half"
      ],
      "product_memberships" : [
        "CBORCoding"
      ],
      "sources" : [
        "CBOR+Codable.swift",
        "CBOR+Equatable.swift",
        "CBOR.swift",
        "CBORDecoder.swift",
        "CBOREncoder.swift",
        "CBORParser.swift",
        "Containers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.