The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of BRUtils, reference master (b2ba81), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 09:53:55 UTC.

Swift 6 data race errors: 1

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Balancingrock/BRUtils.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Balancingrock/BRUtils
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b2ba81e Added license, swift version and platforms
Cloned https://github.com/Balancingrock/BRUtils.git
Revision (git rev-parse @):
b2ba81ea6098d32dd3a59c35b70fd7be72ea6afd
SUCCESS checkout https://github.com/Balancingrock/BRUtils.git at master
========================================
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": "brutils",
      "name": "BRUtils",
      "url": "https://github.com/Balancingrock/BRUtils.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BRUtils",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Balancingrock/BRUtils.git
[1/336] Fetching brutils
Fetched https://github.com/Balancingrock/BRUtils.git from cache (0.83s)
Creating working copy for https://github.com/Balancingrock/BRUtils.git
Working copy of https://github.com/Balancingrock/BRUtils.git resolved at master (b2ba81e)
warning: '.resolve-product-dependencies': dependency 'brutils' 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/Balancingrock/BRUtils.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 -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--7754E27361AE5C74.txt
[3/12] Compiling BRUtils TimeRelated.swift
[4/12] Emitting module BRUtils
/Users/admin/builder/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
   |             `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
   :
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
   |            |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'machineEndianness' 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
58 |     func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 |         let mptr = UnsafeRawPointer(ptr)
[5/12] Compiling BRUtils NSNumber.Extensions.swift
[6/12] Compiling BRUtils Int.Extensions.swift
[7/12] Compiling BRUtils Array.Extensions.swift
[8/12] Compiling BRUtils GlobalFunctions.swift
[9/12] Compiling BRUtils Data.Extensions.swift
[10/12] Compiling BRUtils Bool.Extensions.swift
[11/12] Compiling BRUtils Endianness.swift
/Users/admin/builder/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
   |             `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
   :
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
   |            |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'machineEndianness' 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
58 |     func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 |         let mptr = UnsafeRawPointer(ptr)
[12/12] Compiling BRUtils Date.Extensions.swift
Build complete! (16.57s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BRUtils",
  "name" : "BRUtils",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "BRUtils",
      "targets" : [
        "BRUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "BRUtils",
      "module_type" : "SwiftTarget",
      "name" : "BRUtils",
      "path" : "Sources/BRUtils",
      "product_memberships" : [
        "BRUtils"
      ],
      "sources" : [
        "Array.Extensions.swift",
        "Bool.Extensions.swift",
        "Data.Extensions.swift",
        "Date.Extensions.swift",
        "Endianness.swift",
        "GlobalFunctions.swift",
        "Int.Extensions.swift",
        "NSNumber.Extensions.swift",
        "TimeRelated.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.