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

Failed to build DidUpdate, reference 0.12.1 (3fc88f), with Swift 6.0 for Linux on 7 Feb 2025 19:01:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/PimCoumans/DidUpdate.git
https://github.com/PimCoumans/DidUpdate.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DidUpdate",
  "name" : "DidUpdate",
  "path" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling DidUpdate ValueProxy.swift
[4/15] Compiling DidUpdate WeakReadOnlyProxy.swift
[5/16] Compiling DidUpdate UpdateObservable.swift
[6/16] Compiling DidUpdate ReadOnlyProxy.swift
[7/16] Compiling DidUpdate StoredValue.swift
[8/16] Emitting module DidUpdate
/host/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
[9/16] Compiling DidUpdate StateObserver.swift
[10/16] Compiling DidUpdate StateValueObserver.swift
[11/16] Compiling DidUpdate WeakValueProxy.swift
[12/16] Compiling DidUpdate ObservableState.swift
/host/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
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:72:24: error: cannot find 'objc_getAssociatedObject' in scope
 70 | extension ObservableState {
 71 | 	public var stateObserver: StateObserver {
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
    |                        `- error: cannot find 'objc_getAssociatedObject' in scope
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:74:4: error: cannot find 'objc_setAssociatedObject' in scope
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
    |    `- error: cannot find 'objc_setAssociatedObject' in scope
 75 | 			return observer
 76 | 		}
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:74:51: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
    |                                                   `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
 75 | 			return observer
 76 | 		}
[13/16] Compiling DidUpdate ObservedValue.swift
[14/16] Compiling DidUpdate ReadOnlyProxy+compound.swift
[15/16] Compiling DidUpdate ExternallyUpdating.swift
[16/16] Compiling DidUpdate ObservedState.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling DidUpdate ObservableState.swift
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:72:24: error: cannot find 'objc_getAssociatedObject' in scope
 70 | extension ObservableState {
 71 | 	public var stateObserver: StateObserver {
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
    |                        `- error: cannot find 'objc_getAssociatedObject' in scope
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:74:4: error: cannot find 'objc_setAssociatedObject' in scope
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
    |    `- error: cannot find 'objc_setAssociatedObject' in scope
 75 | 			return observer
 76 | 		}
/host/spi-builder-workspace/Sources/DidUpdate/Protocols/ObservableState.swift:74:51: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
 72 | 		guard let observer = objc_getAssociatedObject(self, key) as? StateObserver else {
 73 | 			let observer = StateObserver()
 74 | 			objc_setAssociatedObject(self, key, observer, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
    |                                                   `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
 75 | 			return observer
 76 | 		}
[3/15] Compiling DidUpdate WeakValueProxy.swift
[4/15] Compiling DidUpdate ReadOnlyProxy.swift
[5/15] Compiling DidUpdate StoredValue.swift
[6/15] Compiling DidUpdate ValueProxy.swift
[7/15] Compiling DidUpdate WeakReadOnlyProxy.swift
[8/15] Compiling DidUpdate ExternallyUpdating.swift
[9/15] Compiling DidUpdate ObservedState.swift
[10/15] Compiling DidUpdate ObservedValue.swift
[11/15] Compiling DidUpdate ReadOnlyProxy+compound.swift
[12/15] Emitting module DidUpdate
[13/15] Compiling DidUpdate StateObserver.swift
[14/15] Compiling DidUpdate StateValueObserver.swift
[15/15] Compiling DidUpdate UpdateObservable.swift
BUILD FAILURE 6.0 linux