The Swift Package Index logo.Swift Package Index

Build Information

Successful build of FDec, reference main (f77b37), with Swift 6.1 for macOS (SPM) on 2 Dec 2025 18:18:25 UTC.

Swift 6 data race errors: 7

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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/metatronsw/FDec.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/metatronsw/FDec
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f77b37a + Minor bug fixes and cosmetic improvements
Cloned https://github.com/metatronsw/FDec.git
Revision (git rev-parse @):
f77b37a4daa62a72c99d49b973414c7220bffefe
SUCCESS checkout https://github.com/metatronsw/FDec.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/metatronsw/FDec.git
https://github.com/metatronsw/FDec.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FDec",
  "name" : "FDec",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FDec",
      "targets" : [
        "FDec"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FDecTests",
      "module_type" : "SwiftTarget",
      "name" : "FDecTests",
      "path" : "Tests/FDecTests",
      "sources" : [
        "FDecTests.swift"
      ],
      "target_dependencies" : [
        "FDec"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FDec",
      "module_type" : "SwiftTarget",
      "name" : "FDec",
      "path" : "Sources/FDec",
      "product_memberships" : [
        "FDec"
      ],
      "sources" : [
        "FDec.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/4] Emitting module FDec
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:43:20: warning: static property 'decimalPlaces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 | 	/// Project-based setting that lets you set the number of decimal places.
 42 | 	///
 43 | 	public static var decimalPlaces: Int = 4 {
    |                    |- warning: static property 'decimalPlaces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'decimalPlaces' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'decimalPlaces' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 | 		didSet {
 45 | 			pow = decimalPlaces.pow10()
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:51:20: warning: static property 'pow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 49 | 	}
 50 |
 51 | 	public static var pow = decimalPlaces.pow10()
    |                    |- warning: static property 'pow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'pow' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'pow' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:52:20: warning: static property 'zeroShift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 | 	public static var pow = decimalPlaces.pow10()
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
    |                    |- warning: static property 'zeroShift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'zeroShift' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'zeroShift' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:53:20: warning: static property 'intMaxDecimals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 | 	public static var pow = decimalPlaces.pow10()
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
    |                    |- warning: static property 'intMaxDecimals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'intMaxDecimals' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'intMaxDecimals' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 | 	public static let zero = FDec()
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:55:20: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
 54 |
 55 | 	public static let zero = FDec()
    |                    |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 56 | 	public static let infinity = FDec(raw: Int.max)
 57 | 	public static let nan = FDec(raw: Int.min)
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:56:20: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 54 |
 55 | 	public static let zero = FDec()
 56 | 	public static let infinity = FDec(raw: Int.max)
    |                    |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'infinity' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 | 	public static let nan = FDec(raw: Int.min)
 58 |
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:57:20: warning: static property 'nan' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 55 | 	public static let zero = FDec()
 56 | 	public static let infinity = FDec(raw: Int.max)
 57 | 	public static let nan = FDec(raw: Int.min)
    |                    |- warning: static property 'nan' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'nan' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 | 	// MARK: Private Static - Helper numbers, for quick internal operations
[4/4] Compiling FDec FDec.swift
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:43:20: warning: static property 'decimalPlaces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 | 	/// Project-based setting that lets you set the number of decimal places.
 42 | 	///
 43 | 	public static var decimalPlaces: Int = 4 {
    |                    |- warning: static property 'decimalPlaces' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'decimalPlaces' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'decimalPlaces' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 | 		didSet {
 45 | 			pow = decimalPlaces.pow10()
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:51:20: warning: static property 'pow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 49 | 	}
 50 |
 51 | 	public static var pow = decimalPlaces.pow10()
    |                    |- warning: static property 'pow' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'pow' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'pow' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:52:20: warning: static property 'zeroShift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 | 	public static var pow = decimalPlaces.pow10()
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
    |                    |- warning: static property 'zeroShift' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'zeroShift' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'zeroShift' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:53:20: warning: static property 'intMaxDecimals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 51 | 	public static var pow = decimalPlaces.pow10()
 52 | 	public static var zeroShift = String(repeating: "0", count: decimalPlaces)
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
    |                    |- warning: static property 'intMaxDecimals' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'intMaxDecimals' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'intMaxDecimals' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 54 |
 55 | 	public static let zero = FDec()
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:55:20: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 53 | 	public static var intMaxDecimals = 19 - decimalPlaces
 54 |
 55 | 	public static let zero = FDec()
    |                    |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 56 | 	public static let infinity = FDec(raw: Int.max)
 57 | 	public static let nan = FDec(raw: Int.min)
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:56:20: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 54 |
 55 | 	public static let zero = FDec()
 56 | 	public static let infinity = FDec(raw: Int.max)
    |                    |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'infinity' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 | 	public static let nan = FDec(raw: Int.min)
 58 |
/Users/admin/builder/spi-builder-workspace/Sources/FDec/FDec.swift:57:20: warning: static property 'nan' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
 17 | /// A fixed decimal number format.
 18 | ///
 19 | public struct FDec {
    |               `- note: consider making struct 'FDec' conform to the 'Sendable' protocol
 20 |
 21 | 	/// The value actually shifted & stored inernaly
    :
 55 | 	public static let zero = FDec()
 56 | 	public static let infinity = FDec(raw: Int.max)
 57 | 	public static let nan = FDec(raw: Int.min)
    |                    |- warning: static property 'nan' is not concurrency-safe because non-'Sendable' type 'FDec' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'nan' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 | 	// MARK: Private Static - Helper numbers, for quick internal operations
Build complete! (4.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FDec",
  "name" : "FDec",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FDec",
      "targets" : [
        "FDec"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FDecTests",
      "module_type" : "SwiftTarget",
      "name" : "FDecTests",
      "path" : "Tests/FDecTests",
      "sources" : [
        "FDecTests.swift"
      ],
      "target_dependencies" : [
        "FDec"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FDec",
      "module_type" : "SwiftTarget",
      "name" : "FDec",
      "path" : "Sources/FDec",
      "product_memberships" : [
        "FDec"
      ],
      "sources" : [
        "FDec.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.