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 DidUpdate, reference main (3fc88f), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 12:41:03 UTC.

Swift 6 data race errors: 1

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.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PimCoumans/DidUpdate.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PimCoumans/DidUpdate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3fc88f1 Move down Codable initializer
Cloned https://github.com/PimCoumans/DidUpdate.git
Revision (git rev-parse @):
3fc88f18ccfca134a0b60f4b85e2379b5d23f5af
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/PimCoumans/DidUpdate.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/PimCoumans/DidUpdate.git
https://github.com/PimCoumans/DidUpdate.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DidUpdate",
  "name" : "DidUpdate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DidUpdate",
      "targets" : [
        "DidUpdate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DidUpdateTests",
      "module_type" : "SwiftTarget",
      "name" : "DidUpdateTests",
      "path" : "Tests/DidUpdateTests",
      "sources" : [
        "ViewModelStateTests.swift"
      ],
      "target_dependencies" : [
        "DidUpdate"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DidUpdate",
      "module_type" : "SwiftTarget",
      "name" : "DidUpdate",
      "path" : "Sources/DidUpdate",
      "product_memberships" : [
        "DidUpdate"
      ],
      "sources" : [
        "Observers/StateObserver.swift",
        "Observers/StateValueObserver.swift",
        "Property Wrappers/ExternallyUpdating.swift",
        "Property Wrappers/ObservedState.swift",
        "Property Wrappers/ObservedValue.swift",
        "Property Wrappers/ReadOnlyProxy+compound.swift",
        "Property Wrappers/ReadOnlyProxy.swift",
        "Property Wrappers/StoredValue.swift",
        "Property Wrappers/ValueProxy.swift",
        "Property Wrappers/WeakReadOnlyProxy.swift",
        "Property Wrappers/WeakValueProxy.swift",
        "Protocols/ObservableState.swift",
        "Protocols/UpdateObservable.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/15] Compiling DidUpdate WeakReadOnlyProxy.swift
[4/16] Compiling DidUpdate UpdateObservable.swift
[5/16] Compiling DidUpdate ObservableState.swift
/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:68:13: warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 66 | }
 67 |
 68 | private let key = malloc(1)!
    |             |- warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'key' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 | extension ObservableState {
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
[6/16] Compiling DidUpdate WeakValueProxy.swift
[7/16] Compiling DidUpdate ValueProxy.swift
[8/16] Compiling DidUpdate ReadOnlyProxy.swift
[9/16] Compiling DidUpdate ExternallyUpdating.swift
[10/16] Compiling DidUpdate ObservedState.swift
[11/16] Compiling DidUpdate ObservedValue.swift
[12/16] Compiling DidUpdate ReadOnlyProxy+compound.swift
[13/16] Compiling DidUpdate StateObserver.swift
[14/16] Compiling DidUpdate StateValueObserver.swift
[15/16] Compiling DidUpdate StoredValue.swift
[16/16] Emitting module DidUpdate
/Users/admin/builder/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:68:13: warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
 66 | }
 67 |
 68 | private let key = malloc(1)!
    |             |- warning: let 'key' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'key' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 | extension ObservableState {
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
Build complete! (4.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DidUpdate",
  "name" : "DidUpdate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DidUpdate",
      "targets" : [
        "DidUpdate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DidUpdateTests",
      "module_type" : "SwiftTarget",
      "name" : "DidUpdateTests",
      "path" : "Tests/DidUpdateTests",
      "sources" : [
        "ViewModelStateTests.swift"
      ],
      "target_dependencies" : [
        "DidUpdate"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DidUpdate",
      "module_type" : "SwiftTarget",
      "name" : "DidUpdate",
      "path" : "Sources/DidUpdate",
      "product_memberships" : [
        "DidUpdate"
      ],
      "sources" : [
        "Observers/StateObserver.swift",
        "Observers/StateValueObserver.swift",
        "Property Wrappers/ExternallyUpdating.swift",
        "Property Wrappers/ObservedState.swift",
        "Property Wrappers/ObservedValue.swift",
        "Property Wrappers/ReadOnlyProxy+compound.swift",
        "Property Wrappers/ReadOnlyProxy.swift",
        "Property Wrappers/StoredValue.swift",
        "Property Wrappers/ValueProxy.swift",
        "Property Wrappers/WeakReadOnlyProxy.swift",
        "Property Wrappers/WeakValueProxy.swift",
        "Protocols/ObservableState.swift",
        "Protocols/UpdateObservable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.