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 Observable, reference main (8634c9), with Swift 6.1 for Linux on 27 Apr 2025 03:45:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Flowduino/Observable.git
Reference: main
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/Flowduino/Observable
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8634c9d Update FUNDING.yml
Cloned https://github.com/Flowduino/Observable.git
Revision (git rev-parse @):
8634c9d72b50763a6d66879fafa2cdd0345fce17
SUCCESS checkout https://github.com/Flowduino/Observable.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Flowduino/Observable.git
https://github.com/Flowduino/Observable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "threadsafeswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flowduino/ThreadSafeSwift.git"
    }
  ],
  "manifest_display_name" : "Observable",
  "name" : "Observable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Observable",
      "targets" : [
        "Observable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservableTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservableTests",
      "path" : "Tests/ObservableTests",
      "product_dependencies" : [
        "ThreadSafeSwift"
      ],
      "sources" : [
        "KeyedObservableClassTests.swift",
        "ObservableClassTests.swift"
      ],
      "target_dependencies" : [
        "Observable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Observable",
      "module_type" : "SwiftTarget",
      "name" : "Observable",
      "path" : "Sources/Observable",
      "product_dependencies" : [
        "ThreadSafeSwift"
      ],
      "product_memberships" : [
        "Observable"
      ],
      "sources" : [
        "Keyed/KeyedObservable.swift",
        "Keyed/KeyedObservableClass.swift",
        "Keyed/KeyedObservableThread.swift",
        "Keyed/KeyedObservableThreadSafeClass.swift",
        "Observable.swift",
        "ObservableClass.swift",
        "ObservableThread.swift",
        "ObservableThreadSafeClass.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Flowduino/ThreadSafeSwift.git
[1/53] Fetching threadsafeswift
Fetched https://github.com/Flowduino/ThreadSafeSwift.git from cache (0.17s)
Computing version for https://github.com/Flowduino/ThreadSafeSwift.git
Computed https://github.com/Flowduino/ThreadSafeSwift.git at 1.1.0 (0.63s)
Creating working copy for https://github.com/Flowduino/ThreadSafeSwift.git
Working copy of https://github.com/Flowduino/ThreadSafeSwift.git resolved at 1.1.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module ThreadSafeSwift
[5/5] Compiling ThreadSafeSwift ThreadSafeSemaphore.swift
[7/14] Compiling Observable ObservableClass.swift
/host/spi-builder-workspace/Sources/Observable/ObservableClass.swift:20:41: error: cannot find type 'ObservableObject' in scope
18 |  */
19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
20 | open class ObservableClass: Observable, ObservableObject {
   |                                         `- error: cannot find type 'ObservableObject' in scope
21 |     /**
22 |      Contains a Weak Reference to an Observer.
[8/14] Compiling Observable ObservableThread.swift
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:12: error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |            `- error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:50: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |                                                  `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:105:25: warning: capture of 'code' with non-sendable type '(TObservationProtocol) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
103 |                     let dispatchQueue = observation.dispatchQueue ?? DispatchQueue.main
104 |                     dispatchQueue.async {
105 |                         code(typedObserver)
    |                         |- warning: capture of 'code' with non-sendable type '(TObservationProtocol) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 |                     }
107 |                 }
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:105:30: warning: capture of 'typedObserver' with non-sendable type 'TObservationProtocol' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 92 |      - Version: 1.0.6
 93 |      */
 94 |     public func withObservers<TObservationProtocol>(_ code: @escaping (_ observer: TObservationProtocol) -> ()) {
    |                               `- note: consider making generic parameter 'TObservationProtocol' conform to the 'Sendable' protocol
 95 |         _observers.withLock { observers in
 96 |             for (id, observation) in observers {
    :
103 |                     let dispatchQueue = observation.dispatchQueue ?? DispatchQueue.main
104 |                     dispatchQueue.async {
105 |                         code(typedObserver)
    |                              `- warning: capture of 'typedObserver' with non-sendable type 'TObservationProtocol' in a '@Sendable' closure; this is an error in the Swift 6 language mode
106 |                     }
107 |                 }
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:140:13: error: cannot find 'objectWillChange' in scope
138 |     open func notifyChange() async {
139 |         await MainActor.run {
140 |             objectWillChange.send()
    |             `- error: cannot find 'objectWillChange' in scope
141 |         }
142 |     }
[9/15] Compiling Observable ObservableThreadSafeClass.swift
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:20:51: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThreadSafeClass: Observable, ObservableObject {
    |                                                   `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:105:25: warning: capture of 'code' with non-sendable type '(TObservationProtocol) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
103 |                     let dispatchQueue = observation.dispatchQueue ?? DispatchQueue.main
104 |                     dispatchQueue.async {
105 |                         code(typedObserver)
    |                         |- warning: capture of 'code' with non-sendable type '(TObservationProtocol) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 |                     }
107 |                 }
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:105:30: warning: capture of 'typedObserver' with non-sendable type 'TObservationProtocol' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 92 |      - Version: 1.0.6
 93 |      */
 94 |     public func withObservers<TObservationProtocol>(_ code: @escaping (_ observer: TObservationProtocol) -> ()) {
    |                               `- note: consider making generic parameter 'TObservationProtocol' conform to the 'Sendable' protocol
 95 |         _observers.withLock { observers in
 96 |             for (id, observation) in observers {
    :
103 |                     let dispatchQueue = observation.dispatchQueue ?? DispatchQueue.main
104 |                     dispatchQueue.async {
105 |                         code(typedObserver)
    |                              `- warning: capture of 'typedObserver' with non-sendable type 'TObservationProtocol' in a '@Sendable' closure; this is an error in the Swift 6 language mode
106 |                     }
107 |                 }
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:140:13: error: cannot find 'objectWillChange' in scope
138 |     open func notifyChange() async {
139 |         await MainActor.run {
140 |             objectWillChange.send()
    |             `- error: cannot find 'objectWillChange' in scope
141 |         }
142 |     }
[10/15] Compiling Observable Observable.swift
[11/15] Compiling Observable KeyedObservableThreadSafeClass.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Compiling Observable KeyedObservableClass.swift
[13/15] Compiling Observable KeyedObservable.swift
[14/15] Compiling Observable KeyedObservableThread.swift
[15/15] Emitting module Observable
/host/spi-builder-workspace/Sources/Observable/ObservableClass.swift:20:41: error: cannot find type 'ObservableObject' in scope
18 |  */
19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
20 | open class ObservableClass: Observable, ObservableObject {
   |                                         `- error: cannot find type 'ObservableObject' in scope
21 |     /**
22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:12: error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |            `- error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:50: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |                                                  `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:20:51: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThreadSafeClass: Observable, ObservableObject {
    |                                                   `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module ThreadSafeSwift
[3/3] Compiling ThreadSafeSwift ThreadSafeSemaphore.swift
[5/12] Compiling Observable Observable.swift
[6/12] Compiling Observable ObservableThread.swift
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:12: error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |            `- error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:50: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |                                                  `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:140:13: error: cannot find 'objectWillChange' in scope
138 |     open func notifyChange() async {
139 |         await MainActor.run {
140 |             objectWillChange.send()
    |             `- error: cannot find 'objectWillChange' in scope
141 |         }
142 |     }
[7/12] Compiling Observable ObservableClass.swift
/host/spi-builder-workspace/Sources/Observable/ObservableClass.swift:20:41: error: cannot find type 'ObservableObject' in scope
18 |  */
19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
20 | open class ObservableClass: Observable, ObservableObject {
   |                                         `- error: cannot find type 'ObservableObject' in scope
21 |     /**
22 |      Contains a Weak Reference to an Observer.
[8/13] Compiling Observable ObservableThreadSafeClass.swift
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:20:51: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThreadSafeClass: Observable, ObservableObject {
    |                                                   `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:140:13: error: cannot find 'objectWillChange' in scope
138 |     open func notifyChange() async {
139 |         await MainActor.run {
140 |             objectWillChange.send()
    |             `- error: cannot find 'objectWillChange' in scope
141 |         }
142 |     }
[9/13] Compiling Observable KeyedObservableThreadSafeClass.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling Observable KeyedObservableClass.swift
[11/13] Compiling Observable KeyedObservable.swift
[12/13] Compiling Observable KeyedObservableThread.swift
[13/13] Emitting module Observable
/host/spi-builder-workspace/Sources/Observable/ObservableClass.swift:20:41: error: cannot find type 'ObservableObject' in scope
18 |  */
19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
20 | open class ObservableClass: Observable, ObservableObject {
   |                                         `- error: cannot find type 'ObservableObject' in scope
21 |     /**
22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:12: error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |            `- error: cannot inherit from class 'Thread' (compiled with Swift 6.1) because it has overridable members that could not be loaded in Swift 5.10
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThread.swift:20:50: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThread: Thread, Observable, ObservableObject {
    |                                                  `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
/host/spi-builder-workspace/Sources/Observable/ObservableThreadSafeClass.swift:20:51: error: cannot find type 'ObservableObject' in scope
 18 |  */
 19 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
 20 | open class ObservableThreadSafeClass: Observable, ObservableObject {
    |                                                   `- error: cannot find type 'ObservableObject' in scope
 21 |     /**
 22 |      Contains a Weak Reference to an Observer.
BUILD FAILURE 6.1 linux