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 0.12.1 (3fc88f), with Swift 6.0 for macOS (SPM) on 7 Feb 2025 19:04:28 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PimCoumans/DidUpdate.git
Reference: 0.12.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PimCoumans/DidUpdate
 * tag               0.12.1     -> FETCH_HEAD
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 0.12.1
========================================
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": "didupdate",
      "name": "DidUpdate",
      "url": "https://github.com/PimCoumans/DidUpdate.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DidUpdate",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/PimCoumans/DidUpdate.git
[1/661] Fetching didupdate
Fetched https://github.com/PimCoumans/DidUpdate.git from cache (0.79s)
Creating working copy for https://github.com/PimCoumans/DidUpdate.git
Working copy of https://github.com/PimCoumans/DidUpdate.git resolved at 0.12.1 (3fc88f1)
warning: '.resolve-product-dependencies': dependency 'didupdate' 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/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.2.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-5BDAB9E9C0126B9D.txt
[3/15] Compiling DidUpdate WeakReadOnlyProxy.swift
[4/15] Compiling DidUpdate WeakValueProxy.swift
[5/15] 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: annotate 'key' 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
 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 ValueProxy.swift
[7/16] Compiling DidUpdate ReadOnlyProxy.swift
[8/16] Compiling DidUpdate ExternallyUpdating.swift
[9/16] Compiling DidUpdate ObservedState.swift
[10/16] Compiling DidUpdate ObservedValue.swift
[11/16] Compiling DidUpdate ReadOnlyProxy+compound.swift
[12/16] Compiling DidUpdate StateObserver.swift
[13/16] Compiling DidUpdate StateValueObserver.swift
[14/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: annotate 'key' 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
 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
[15/16] Compiling DidUpdate StoredValue.swift
[16/16] Compiling DidUpdate UpdateObservable.swift
Build complete! (10.83s)
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.