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 0.1.1 (b63fb4), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 08:17:19 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/ChimeHQ/ImpactMeterAdapter.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/ImpactMeterAdapter
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at b63fb4e Version bump
Submodule path 'xcconfigs': checked out '90aae8c60a57e10604288ae5a0b348ef83e50d83'
Submodule 'xcconfigs' (https://github.com/mrackwitz/xcconfigs.git) registered for path 'xcconfigs'
Cloning into '/Users/admin/builder/spi-builder-workspace/xcconfigs'...
Cloned https://github.com/ChimeHQ/ImpactMeterAdapter.git
Revision (git rev-parse @):
b63fb4e912ffcef6db62eb8dd066cb04fb6c39be
SUCCESS checkout https://github.com/ChimeHQ/ImpactMeterAdapter.git at 0.1.1
Fetching https://github.com/ChimeHQ/Meter
Fetching https://github.com/ChimeHQ/Impact.git
[1/582] Fetching meter
[19/1337] Fetching meter, impact
Fetched https://github.com/ChimeHQ/Meter from cache (0.92s)
Fetched https://github.com/ChimeHQ/Impact.git from cache (0.92s)
Computing version for https://github.com/ChimeHQ/Impact.git
Computed https://github.com/ChimeHQ/Impact.git at 0.3.1 (0.56s)
Computing version for https://github.com/ChimeHQ/Meter
Computed https://github.com/ChimeHQ/Meter at 0.2.0 (0.56s)
Creating working copy for https://github.com/ChimeHQ/Meter
Working copy of https://github.com/ChimeHQ/Meter resolved at 0.2.0
Creating working copy for https://github.com/ChimeHQ/Impact.git
Working copy of https://github.com/ChimeHQ/Impact.git resolved at 0.3.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/ChimeHQ/ImpactMeterAdapter.git
[1/171] Fetching impactmeteradapter
Fetched https://github.com/ChimeHQ/ImpactMeterAdapter.git from cache (0.79s)
Fetching https://github.com/ChimeHQ/Meter from cache
Fetching https://github.com/ChimeHQ/Impact.git from cache
Fetched https://github.com/ChimeHQ/Meter from cache (0.49s)
Fetched https://github.com/ChimeHQ/Impact.git from cache (0.49s)
Computing version for https://github.com/ChimeHQ/Impact.git
Computed https://github.com/ChimeHQ/Impact.git at 0.4.0 (0.55s)
Computing version for https://github.com/ChimeHQ/Meter
Computed https://github.com/ChimeHQ/Meter at 0.6.0 (0.44s)
Creating working copy for https://github.com/ChimeHQ/Meter
Working copy of https://github.com/ChimeHQ/Meter resolved at 0.6.0
Creating working copy for https://github.com/ChimeHQ/ImpactMeterAdapter.git
Working copy of https://github.com/ChimeHQ/ImpactMeterAdapter.git resolved at 0.1.1 (b63fb4e)
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 -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/25] Write sources
[2/25] Write swift-version--7754E27361AE5C74.txt
[3/25] Compiling ImpactUtility.c
[4/25] Compiling ImpactSignal.c
[5/25] Compiling ImpactUnwind.c
[6/25] Compiling ImpactUnwind_i386.c
[7/25] Compiling ImpactCompactUnwind.c
[8/31] Compiling ImpactCrashHandler.c
[9/31] Compiling ImpactCPU.c
[10/31] Compiling Impact ImpactThread.c
[11/31] Compiling Impact ImpactState.c
[12/31] Compiling ImpactMachException.c
[13/31] Compiling ImpactUnwind_arm64.c
[14/31] Compiling ImpactUnwind_arm.c
[15/31] Compiling ImpactDataCursor.c
[16/31] Compiling Impact ImpactBinaryImage.c
[17/31] Compiling ImpactDWARFParser.c
[18/31] Compiling ImpactDWARFCFIInstructions.c
[19/31] Compiling ImpactUnwind_x86_64.c
[20/31] Compiling ImpactDWARF.c
[21/31] Compiling ImpactRuntimeException.mm
[22/31] Compiling ImpactLog.m
[23/31] Compiling Impact ImpactMonitor.m
[24/31] Compiling ImpactMonitoredApplication.m
[26/31] Emitting module Meter
[27/31] Compiling Meter MetricKitWrappers.swift
[28/31] Compiling Meter DiagnosticProtocol.swift
[29/31] Compiling Meter DiagnosticPayload.swift
[30/31] Compiling Meter MeterPayloadProvider.swift
[31/31] Compiling Meter CallStackTree.swift
[32/35] Compiling ImpactMeterAdapter ImpactLog.swift
[33/35] Compiling ImpactMeterAdapter ImpactDiagnostic.swift
[34/35] Compiling ImpactMeterAdapter ImpactMeterDiagnosticProvider.swift
/Users/admin/builder/spi-builder-workspace/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/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/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]
[35/35] Emitting module ImpactMeterAdapter
/Users/admin/builder/spi-builder-workspace/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
Build complete! (11.32s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "meter",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "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" : "ImpactMeterAdapterTests",
      "sources" : [
        "ImpactDiagnosticTests.swift",
        "ImpactLogTests.swift"
      ],
      "target_dependencies" : [
        "ImpactMeterAdapter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ImpactMeterAdapter",
      "module_type" : "SwiftTarget",
      "name" : "ImpactMeterAdapter",
      "path" : "ImpactMeterAdapter",
      "product_dependencies" : [
        "Impact",
        "Meter"
      ],
      "product_memberships" : [
        "ImpactMeterAdapter"
      ],
      "sources" : [
        "ImpactDiagnostic.swift",
        "ImpactLog.swift",
        "ImpactMeterDiagnosticProvider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.