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 UInt256, reference 0.2.2 (1a499a), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 01:48:46 UTC.

Swift 6 data race errors: 2

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/hyugit/UInt256.git
Reference: 0.2.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hyugit/UInt256
 * tag               0.2.2      -> FETCH_HEAD
HEAD is now at 1a499a1 minor changes
Cloned https://github.com/hyugit/UInt256.git
Revision (git rev-parse @):
1a499a1bf08afd10b9fcd0fd6d90b6dd9196be50
SUCCESS checkout https://github.com/hyugit/UInt256.git at 0.2.2
========================================
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": "uint256",
      "name": "UInt256",
      "url": "https://github.com/hyugit/UInt256.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UInt256",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/hyugit/UInt256.git
[1/574] Fetching uint256
Fetched https://github.com/hyugit/UInt256.git from cache (0.76s)
Creating working copy for https://github.com/hyugit/UInt256.git
Working copy of https://github.com/hyugit/UInt256.git resolved at 0.2.2 (1a499a1)
warning: '.resolve-product-dependencies': dependency 'uint256' 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/hyugit/UInt256.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/17] Compiling UInt256 UInt256+UnsignedInteger.swift
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:7:23: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | extension UInt256: UnsignedInteger {
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
   |                       |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'max' 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
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:8:23: warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
   |                       |- warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'min' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'min' 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
 9 |
10 |     public var magnitude: UInt256 {
[4/17] Compiling UInt256 UInt256+arc4random.swift
[5/18] Compiling UInt256 UInt256+BinaryInteger.swift
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
 20 |     }
 21 |
 22 |     public static var bitWidth: Int {
    |                       |- warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    |                       |- note: candidate operates on a type, not an instance as required
    |                       `- note: move 'bitWidth' to another extension to silence this warning
 23 |         return 256
 24 |     }
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
 9 |     var words: Self.Words { get }
10 |     var _lowWord: UInt { get }
11 |     var bitWidth: Int { get }
   |         `- note: requirement 'bitWidth' declared here
12 |     func _binaryLogarithm() -> Int
13 |     var trailingZeroBitCount: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
 43 |     }
 44 |
 45 |     public init?<T: BinaryInteger>(exactly source: T) {
    |            |- warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    |            |- note: candidate has non-matching type '(exactly: T)'
    |            `- note: move 'init(exactly:)' to another extension to silence this warning
 46 |         if let uint64 = UInt64(exactly: source) {
 47 |             self.init(withUInt64: uint64)
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
 1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
 2 |     static var isSigned: Bool { get }
 3 |     init?<T>(exactly source: T) where T : BinaryFloatingPoint
   |     `- note: requirement 'init(exactly:)' declared here
 4 |     init<T>(_ source: T) where T : BinaryFloatingPoint
 5 |     init<T>(_ source: T) where T : BinaryInteger
[6/18] Compiling UInt256 UInt256+Comparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
 20 |     }
 21 |
 22 |     public static var bitWidth: Int {
    |                       |- warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    |                       |- note: candidate operates on a type, not an instance as required
    |                       `- note: move 'bitWidth' to another extension to silence this warning
 23 |         return 256
 24 |     }
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
 9 |     var words: Self.Words { get }
10 |     var _lowWord: UInt { get }
11 |     var bitWidth: Int { get }
   |         `- note: requirement 'bitWidth' declared here
12 |     func _binaryLogarithm() -> Int
13 |     var trailingZeroBitCount: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
 43 |     }
 44 |
 45 |     public init?<T: BinaryInteger>(exactly source: T) {
    |            |- warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    |            |- note: candidate has non-matching type '(exactly: T)'
    |            `- note: move 'init(exactly:)' to another extension to silence this warning
 46 |         if let uint64 = UInt64(exactly: source) {
 47 |             self.init(withUInt64: uint64)
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
 1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
 2 |     static var isSigned: Bool { get }
 3 |     init?<T>(exactly source: T) where T : BinaryFloatingPoint
   |     `- note: requirement 'init(exactly:)' declared here
 4 |     init<T>(_ source: T) where T : BinaryFloatingPoint
 5 |     init<T>(_ source: T) where T : BinaryInteger
[7/18] Emitting module UInt256
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
 20 |     }
 21 |
 22 |     public static var bitWidth: Int {
    |                       |- warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    |                       |- note: candidate operates on a type, not an instance as required
    |                       `- note: move 'bitWidth' to another extension to silence this warning
 23 |         return 256
 24 |     }
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
 9 |     var words: Self.Words { get }
10 |     var _lowWord: UInt { get }
11 |     var bitWidth: Int { get }
   |         `- note: requirement 'bitWidth' declared here
12 |     func _binaryLogarithm() -> Int
13 |     var trailingZeroBitCount: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
 43 |     }
 44 |
 45 |     public init?<T: BinaryInteger>(exactly source: T) {
    |            |- warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    |            |- note: candidate has non-matching type '(exactly: T)'
    |            `- note: move 'init(exactly:)' to another extension to silence this warning
 46 |         if let uint64 = UInt64(exactly: source) {
 47 |             self.init(withUInt64: uint64)
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
 1 | public protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude {
 2 |     static var isSigned: Bool { get }
 3 |     init?<T>(exactly source: T) where T : BinaryFloatingPoint
   |     `- note: requirement 'init(exactly:)' declared here
 4 |     init<T>(_ source: T) where T : BinaryFloatingPoint
 5 |     init<T>(_ source: T) where T : BinaryInteger
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:7:23: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | extension UInt256: UnsignedInteger {
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
   |                       |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'max' 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
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:8:23: warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
   |                       |- warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'min' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'min' 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
 9 |
10 |     public var magnitude: UInt256 {
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
2 |
3 | extension UInt256: Hashable {
4 |     public var hashValue: Int {
  |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
5 |         return toHexString().hashValue
6 |     }
[8/18] Compiling UInt256 UInt256+Equatable.swift
[9/18] Compiling UInt256 UInt256+ExpressibleByIntegerLiteral.swift
[10/18] Compiling UInt256 UInt256+FixedWidthInteger.swift
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:7:23: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | extension UInt256: UnsignedInteger {
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
   |                       |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'max' 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
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:8:23: warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
   |                       |- warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'min' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'min' 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
 9 |
10 |     public var magnitude: UInt256 {
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
2 |
3 | extension UInt256: Hashable {
4 |     public var hashValue: Int {
  |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
5 |         return toHexString().hashValue
6 |     }
[11/18] Compiling UInt256 UInt256+Hashable.swift
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:7:23: warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | extension UInt256: UnsignedInteger {
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
   |                       |- warning: static property 'max' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'max' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'max' 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
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift:8:23: warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 |     public static var max = UInt256([UInt64.max, UInt64.max, UInt64.max, UInt64.max])
 8 |     public static var min = UInt256([UInt64.min, UInt64.min, UInt64.min, UInt64.min])
   |                       |- warning: static property 'min' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'min' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'min' 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
 9 |
10 |     public var magnitude: UInt256 {
/Users/admin/builder/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
2 |
3 | extension UInt256: Hashable {
4 |     public var hashValue: Int {
  |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
5 |         return toHexString().hashValue
6 |     }
[12/18] Compiling UInt256 UInt256+CustomStringConvertible.swift
[13/18] Compiling UInt256 UInt256+Divide&Conquer.swift
[14/18] Compiling UInt256 UInt256+Karatsuba.swift
[15/18] Compiling UInt256 UInt256+Numeric.swift
[16/18] Compiling UInt256 FixedWidthInteger+LongDivision.swift
[17/18] Compiling UInt256 UInt256+BarrettDivision.swift
[18/18] Compiling UInt256 UInt256.swift
Build complete! (13.21s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UInt256",
  "name" : "UInt256",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UInt256",
      "targets" : [
        "UInt256"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UInt256",
      "module_type" : "SwiftTarget",
      "name" : "UInt256",
      "path" : "Sources",
      "product_memberships" : [
        "UInt256"
      ],
      "sources" : [
        "FixedWidthInteger+LongDivision.swift",
        "UInt256+BarrettDivision.swift",
        "UInt256+BinaryInteger.swift",
        "UInt256+Comparable.swift",
        "UInt256+CustomStringConvertible.swift",
        "UInt256+Divide&Conquer.swift",
        "UInt256+Equatable.swift",
        "UInt256+ExpressibleByIntegerLiteral.swift",
        "UInt256+FixedWidthInteger.swift",
        "UInt256+Hashable.swift",
        "UInt256+Karatsuba.swift",
        "UInt256+Numeric.swift",
        "UInt256+UnsignedInteger.swift",
        "UInt256+arc4random.swift",
        "UInt256.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.