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 ImpactMeterAdapter, reference main (4bbb19), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 01:16:20 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/ImpactMeterAdapter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/ImpactMeterAdapter
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4bbb19d Prepare for archiving
Cloned https://github.com/ChimeHQ/ImpactMeterAdapter.git
Revision (git rev-parse @):
4bbb19ddca30cbb98e95fcaf154d31fa750a9e17
SUCCESS checkout https://github.com/ChimeHQ/ImpactMeterAdapter.git at main
Fetching https://github.com/ChimeHQ/Meter
[1/582] Fetching meter
Fetched https://github.com/ChimeHQ/Meter from cache (0.88s)
Fetching https://github.com/ChimeHQ/Impact.git
[1/755] Fetching impact
Fetched https://github.com/ChimeHQ/Impact.git from cache (0.97s)
Computing version for https://github.com/ChimeHQ/Impact.git
Computed https://github.com/ChimeHQ/Impact.git at 0.3.1 (0.65s)
Creating working copy for https://github.com/ChimeHQ/Impact.git
Working copy of https://github.com/ChimeHQ/Impact.git resolved at 0.3.1
Creating working copy for https://github.com/ChimeHQ/Meter
Working copy of https://github.com/ChimeHQ/Meter resolved at main (e0158ca)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ChimeHQ/ImpactMeterAdapter.git
[1/171] Fetching impactmeteradapter
Fetched https://github.com/ChimeHQ/ImpactMeterAdapter.git from cache (0.73s)
Fetching https://github.com/ChimeHQ/Meter from cache
Fetched https://github.com/ChimeHQ/Meter from cache (0.50s)
Fetching https://github.com/ChimeHQ/Impact.git from cache
Fetched https://github.com/ChimeHQ/Impact.git from cache (0.48s)
Computing version for https://github.com/ChimeHQ/Impact.git
Computed https://github.com/ChimeHQ/Impact.git at 0.4.0 (0.67s)
Creating working copy for https://github.com/ChimeHQ/Meter
Working copy of https://github.com/ChimeHQ/Meter resolved at main (2d5c5c2)
Creating working copy for https://github.com/ChimeHQ/ImpactMeterAdapter.git
Working copy of https://github.com/ChimeHQ/ImpactMeterAdapter.git resolved at main (4bbb19d)
Creating working copy for https://github.com/ChimeHQ/Impact.git
error: 'impact': Couldn’t update repository submodules:
    Submodule 'xcconfigs' (https://github.com/mattmassicotte/xcconfigs) registered for path 'xcconfigs'
    Cloning into '/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Impact/xcconfigs'...
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    fatal: clone of 'https://github.com/mattmassicotte/xcconfigs' into submodule path '/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Impact/xcconfigs' failed
    Failed to clone 'xcconfigs'. Retry scheduled
    Cloning into '/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Impact/xcconfigs'...
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
    fatal: clone of 'https://github.com/mattmassicotte/xcconfigs' into submodule path '/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Impact/xcconfigs' failed
    Failed to clone 'xcconfigs' a second time, aborting
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ChimeHQ/ImpactMeterAdapter.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/26] Write sources
[2/26] Write swift-version--7754E27361AE5C74.txt
[3/26] Compiling ImpactUtility.c
[4/26] Compiling ImpactSignal.c
[5/26] Compiling ImpactCPU.c
[6/26] Compiling ImpactUnwind_x86_64.c
[7/26] Compiling ImpactUnwind_arm.c
[8/26] Compiling ImpactUnwind.c
[9/26] Compiling ImpactCompactUnwind.c
[10/26] Compiling ImpactCrashHandler.c
[11/26] Compiling Impact ImpactThread.c
[12/26] Compiling ImpactUnwind_i386.c
[13/26] Compiling Impact ImpactState.c
[14/26] Compiling ImpactUnwind_arm64.c
[15/26] Compiling Impact ImpactBinaryImage.c
[16/26] Compiling ImpactDataCursor.c
[17/26] Compiling ImpactDWARFCFIInstructions.c
[18/26] Compiling ImpactDWARFParser.c
[19/26] Compiling ImpactMachException.c
[20/26] Compiling ImpactDWARF.c
[21/26] Compiling ImpactRuntimeException.mm
[22/26] Compiling ImpactLog.m
[23/26] Compiling Impact ImpactMonitor.m
[24/26] Compiling BinaryImage BinaryImage.m
[25/35] Compiling ImpactMonitoredApplication.m
[27/35] Compiling Meter MeterPayloadProvider.swift
[28/35] Compiling Meter DiagnosticProtocol.swift
[29/35] Compiling Meter DlfcnSymbolicator.swift
[30/35] Compiling Meter Symbolicator.swift
[31/35] Compiling Meter MetricKitWrappers.swift
[32/35] Compiling Meter CrashDiagnosticProtocol+Rendering.swift
[33/35] Emitting module Meter
[34/35] Compiling Meter CallStackTree.swift
[35/35] Compiling Meter DiagnosticPayload.swift
[36/39] Compiling ImpactMeterAdapter ImpactMeterDiagnosticProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImpactMeterAdapter/ImpactMeterDiagnosticProvider.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ImpactMeterDiagnosticProvider' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | import os.log
 12 |
 13 | public class ImpactMeterDiagnosticProvider {
    |              `- note: class 'ImpactMeterDiagnosticProvider' does not conform to the 'Sendable' protocol
 14 |     public static let shared = ImpactMeterDiagnosticProvider()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ImpactMeterDiagnosticProvider' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 15 |
 16 |     public let reportDirectoryURL: URL
/Users/admin/builder/spi-builder-workspace/Sources/ImpactMeterAdapter/ImpactMeterDiagnosticProvider.swift:84:29: warning: reference to class property 'shared' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 82 |         }
 83 |
 84 |         MeterPayloadManager.shared.deliver(reportablePayloads)
    |                             `- warning: reference to class property 'shared' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 85 |     }
 86 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Meter/Sources/Meter/MeterPayloadProvider.swift:19:23: note: class property declared here
 17 |
 18 | public class MeterPayloadManager: NSObject {
 19 |     public static var shared: MeterPayloadManager = MeterPayloadManager()
    |                       `- note: class property declared here
 20 |
 21 |     private var subscribers: [MeterPayloadSubscriber]
[37/39] Emitting module ImpactMeterAdapter
/Users/admin/builder/spi-builder-workspace/Sources/ImpactMeterAdapter/ImpactMeterDiagnosticProvider.swift:14:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ImpactMeterDiagnosticProvider' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | import os.log
 12 |
 13 | public class ImpactMeterDiagnosticProvider {
    |              `- note: class 'ImpactMeterDiagnosticProvider' does not conform to the 'Sendable' protocol
 14 |     public static let shared = ImpactMeterDiagnosticProvider()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ImpactMeterDiagnosticProvider' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 15 |
 16 |     public let reportDirectoryURL: URL
[38/39] Compiling ImpactMeterAdapter ImpactDiagnostic.swift
[39/39] Compiling ImpactMeterAdapter ImpactLog.swift
Build complete! (18.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "meter",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Meter"
    },
    {
      "identity" : "impact",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Impact.git"
    }
  ],
  "manifest_display_name" : "ImpactMeterAdapter",
  "name" : "ImpactMeterAdapter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "ImpactMeterAdapter",
      "targets" : [
        "ImpactMeterAdapter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ImpactMeterAdapterTests",
      "module_type" : "SwiftTarget",
      "name" : "ImpactMeterAdapterTests",
      "path" : "Tests/ImpactMeterAdapterTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ImpactMeterAdapterTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ImpactDiagnosticTests.swift",
        "ImpactLogTests.swift"
      ],
      "target_dependencies" : [
        "ImpactMeterAdapter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ImpactMeterAdapter",
      "module_type" : "SwiftTarget",
      "name" : "ImpactMeterAdapter",
      "path" : "Sources/ImpactMeterAdapter",
      "product_dependencies" : [
        "Impact",
        "Meter"
      ],
      "product_memberships" : [
        "ImpactMeterAdapter"
      ],
      "sources" : [
        "ImpactDiagnostic.swift",
        "ImpactLog.swift",
        "ImpactMeterDiagnosticProvider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.