Build Information
Failed to build ArchitectureComponents, reference master (ee79f0), with Swift 6.1 for Wasm on 27 May 2025 09:31:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spropensource/ArchitectureComponents.git
Reference: master
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/spropensource/ArchitectureComponents
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at ee79f06 Updated README to note Carthage and CocoaPods are supported
Cloned https://github.com/spropensource/ArchitectureComponents.git
Revision (git rev-parse @):
ee79f060ccbcac69a479af973d3a33426becfa26
SUCCESS checkout https://github.com/spropensource/ArchitectureComponents.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/spropensource/ArchitectureComponents.git
https://github.com/spropensource/ArchitectureComponents.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ArchitectureComponents",
"name" : "ArchitectureComponents",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ArchitectureComponents",
"targets" : [
"ArchitectureComponents"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ArchitectureComponentsTests",
"module_type" : "SwiftTarget",
"name" : "ArchitectureComponentsTests",
"path" : "Tests/ArchitectureComponentsTests",
"sources" : [
"Lifecycle/LifecycleStateTests.swift",
"LiveData/Helpers/MockLifecycleOwner.swift",
"LiveData/Helpers/MockLiveDataObserver.swift",
"LiveData/LiveData_NotificationTests.swift",
"LiveData/LiveData_ObserverManagementTests.swift",
"LiveData/MutableLiveData_PostValueTests.swift"
],
"target_dependencies" : [
"ArchitectureComponents"
],
"type" : "test"
},
{
"c99name" : "ArchitectureComponents",
"module_type" : "SwiftTarget",
"name" : "ArchitectureComponents",
"path" : "Sources/ArchitectureComponents",
"product_memberships" : [
"ArchitectureComponents"
],
"sources" : [
"Lifecycle/DefaultLifecycleObserver.swift",
"Lifecycle/Lifecycle.swift",
"Lifecycle/LifecycleObserver.swift",
"Lifecycle/LifecycleOwner.swift",
"Lifecycle/LifecycleRegistry.swift",
"Lifecycle/Swift/Extensions.swift",
"Lifecycle/Swift/LifecycleError.swift",
"LiveData/LiveData.swift",
"LiveData/MediatorLiveData.swift",
"LiveData/MutableLiveData.swift",
"LiveData/Swift/LiveDataError.swift",
"LiveData/Swift/ObserverController.swift",
"LiveData/Swift/ObserverHandle.swift",
"LiveData/Swift/ObserverListController.swift",
"LiveData/Swift/SwitchedLiveData.swift",
"LiveData/Swift/TransformedLiveData.swift",
"LiveData/Transformations.swift",
"UIKit/LifecycleTableViewController.swift",
"UIKit/LifecycleViewController.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/20] Emitting module ArchitectureComponents
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:55:13: note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
53 | }
54 |
55 | public enum LifecycleEvent {
| `- note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
56 |
57 | case create
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[4/22] Compiling ArchitectureComponents LifecycleTableViewController.swift
[5/22] Compiling ArchitectureComponents LifecycleViewController.swift
[6/22] Compiling ArchitectureComponents MutableLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:33:20: error: cannot find 'Thread' in scope
31 | public override var value: Type {
32 | willSet {
33 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
34 | }
35 | didSet {
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:50:26: error: cannot find 'DispatchSemaphore' in scope
48 | self.controller = ObserverListController<Type>()
49 | self.nextValue = .empty
50 | self.semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
51 |
52 | super.init(initialValue: initialValue)
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:60:16: error: cannot find 'Thread' in scope
58 |
59 | public override var hasObservers: Bool {
60 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
61 | return self.controller.hasObservers
62 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:65:16: error: cannot find 'Thread' in scope
63 |
64 | public override var hasActiveObservers: Bool {
65 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
66 | return self.controller.hasActiveObservers
67 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:70:16: error: cannot find 'Thread' in scope
68 |
69 | public override func observe(owner: LifecycleOwner, observer: @escaping Observer) -> ObserverHandle {
70 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
71 | let observerController = self.controller.insert(owner: owner, observer: observer)
72 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:76:16: error: cannot find 'Thread' in scope
74 |
75 | public override func observeForever(observer: @escaping Observer) -> ObserverHandle {
76 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
77 | let observerController = self.controller.insert(observer: observer)
78 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public override func removeObserver(handle: ObserverHandle) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 | self.controller.remove(handle: handle)
84 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:87:16: error: cannot find 'Thread' in scope
85 |
86 | public override func removeObservers(owner: LifecycleOwner) {
87 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
88 | self.controller.removeAllWithOwner(owner)
89 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 | self.semaphore.signal()
113 |
114 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
115 | self.semaphore.wait()
116 | let nextValue = self.nextValue
[7/22] Compiling ArchitectureComponents LiveDataError.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:33:20: error: cannot find 'Thread' in scope
31 | public override var value: Type {
32 | willSet {
33 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
34 | }
35 | didSet {
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:50:26: error: cannot find 'DispatchSemaphore' in scope
48 | self.controller = ObserverListController<Type>()
49 | self.nextValue = .empty
50 | self.semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
51 |
52 | super.init(initialValue: initialValue)
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:60:16: error: cannot find 'Thread' in scope
58 |
59 | public override var hasObservers: Bool {
60 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
61 | return self.controller.hasObservers
62 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:65:16: error: cannot find 'Thread' in scope
63 |
64 | public override var hasActiveObservers: Bool {
65 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
66 | return self.controller.hasActiveObservers
67 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:70:16: error: cannot find 'Thread' in scope
68 |
69 | public override func observe(owner: LifecycleOwner, observer: @escaping Observer) -> ObserverHandle {
70 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
71 | let observerController = self.controller.insert(owner: owner, observer: observer)
72 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:76:16: error: cannot find 'Thread' in scope
74 |
75 | public override func observeForever(observer: @escaping Observer) -> ObserverHandle {
76 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
77 | let observerController = self.controller.insert(observer: observer)
78 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public override func removeObserver(handle: ObserverHandle) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 | self.controller.remove(handle: handle)
84 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:87:16: error: cannot find 'Thread' in scope
85 |
86 | public override func removeObservers(owner: LifecycleOwner) {
87 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
88 | self.controller.removeAllWithOwner(owner)
89 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 | self.semaphore.signal()
113 |
114 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
115 | self.semaphore.wait()
116 | let nextValue = self.nextValue
[8/22] Compiling ArchitectureComponents DefaultLifecycleObserver.swift
[9/22] Compiling ArchitectureComponents Lifecycle.swift
[10/22] Compiling ArchitectureComponents LifecycleObserver.swift
[11/22] Compiling ArchitectureComponents ObserverListController.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[12/22] Compiling ArchitectureComponents SwitchedLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[13/22] Compiling ArchitectureComponents TransformedLiveData.swift
[14/22] Compiling ArchitectureComponents Transformations.swift
[15/22] Compiling ArchitectureComponents ObserverController.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
[16/22] Compiling ArchitectureComponents ObserverHandle.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
[17/22] Compiling ArchitectureComponents LifecycleError.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:55:13: note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
53 | }
54 |
55 | public enum LifecycleEvent {
| `- note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
56 |
57 | case create
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
[18/22] Compiling ArchitectureComponents LiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:55:13: note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
53 | }
54 |
55 | public enum LifecycleEvent {
| `- note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
56 |
57 | case create
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
[19/22] Compiling ArchitectureComponents MediatorLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:18:10: warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
16 |
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
| `- warning: associated value 'invalidEventForState(state:event:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleEvent'; this is an error in the Swift 6 language mode
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
20 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:55:13: note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
53 | }
54 |
55 | public enum LifecycleEvent {
| `- note: consider making enum 'LifecycleEvent' conform to the 'Sendable' protocol
56 |
57 | case create
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/LifecycleError.swift:19:10: warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
17 | public enum LifecycleError: Swift.Error {
18 | case invalidEventForState(state: LifecycleState, event: LifecycleEvent)
19 | case invalidStateTransition(from: LifecycleState, to: LifecycleState)
| `- warning: associated value 'invalidStateTransition(from:to:)' of 'Sendable'-conforming enum 'LifecycleError' has non-sendable type 'LifecycleState'; this is an error in the Swift 6 language mode
20 | }
21 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Lifecycle.swift:70:13: note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
68 | }
69 |
70 | public enum LifecycleState: Int {
| `- note: consider making enum 'LifecycleState' conform to the 'Sendable' protocol
71 |
72 | case initialized = 0
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
[20/22] Compiling ArchitectureComponents LifecycleOwner.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
[21/22] Compiling ArchitectureComponents LifecycleRegistry.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
[22/22] Compiling ArchitectureComponents Extensions.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/19] Emitting module ArchitectureComponents
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[3/21] Compiling ArchitectureComponents LifecycleTableViewController.swift
[4/21] Compiling ArchitectureComponents LifecycleViewController.swift
[5/21] Compiling ArchitectureComponents LifecycleOwner.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
[6/21] Compiling ArchitectureComponents LifecycleRegistry.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
[7/21] Compiling ArchitectureComponents Extensions.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:48:20: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
46 | // MARK: Hashable
47 |
48 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LifecycleRegistry.LifecycleObserverEnvelope' to 'Hashable' by implementing 'hash(into:)' instead
49 | guard let observer = self.lifecycleObserver else { return 0 }
50 |
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public func addObserver(_ observer: LifecycleObserver) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 |
84 | // take the opportunity to remove any observers that have been
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:106:12: error: cannot find 'Thread' in scope
104 | }
105 |
106 | if Thread.isMainThread {
| `- error: cannot find 'Thread' in scope
107 | runIt()
108 | } else {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:109:13: error: cannot find 'DispatchQueue' in scope
107 | runIt()
108 | } else {
109 | DispatchQueue.main.async(execute: runIt)
| `- error: cannot find 'DispatchQueue' in scope
110 | }
111 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:116:16: error: cannot find 'Thread' in scope
114 |
115 | public var observerCount: Int {
116 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
117 |
118 | cleanupObservers()
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:125:16: error: cannot find 'Thread' in scope
123 |
124 | public func handleLifecycleEvent(_ event: LifecycleEvent, beforeObservers handler: LifecycleEvent.Handler? = nil) {
125 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
126 |
127 | // Update properties FIRST, THEN notify everyone of the change.
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:142:16: error: cannot find 'Thread' in scope
140 |
141 | public func markState(_ targetState: LifecycleState, beforeObservers handler: LifecycleEvent.Handler? = nil) {
142 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
143 |
144 | // determine the steps required to transition from current state to the
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/LifecycleRegistry.swift:165:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
163 | guard let owner = self.owner else { return }
164 |
165 | let activeObservers = self.weakObservers.flatMap({ $0.lifecycleObserver })
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
166 | for observer in activeObservers {
167 | switch event {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:60:5: warning: 'internal' modifier is redundant for property declared in an internal extension
58 | // MARK: Helpers
59 |
60 | internal var stateAfter: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
61 | let state: LifecycleState
62 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:73:5: warning: 'internal' modifier is redundant for property declared in an internal extension
71 | }
72 |
73 | internal var stateBefore: LifecycleState {
| `- warning: 'internal' modifier is redundant for property declared in an internal extension
74 | let state: LifecycleState
75 | switch self {
/host/spi-builder-workspace/Sources/ArchitectureComponents/Lifecycle/Swift/Extensions.swift:110:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
108 | internal extension LifecycleState {
109 |
110 | internal func eventsToState(_ targetState: LifecycleState) throws -> [LifecycleEvent] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
111 | guard self != targetState else { return [] }
112 | guard targetState != .initialized else {
[8/21] Compiling ArchitectureComponents TransformedLiveData.swift
[9/21] Compiling ArchitectureComponents Transformations.swift
[10/21] Compiling ArchitectureComponents DefaultLifecycleObserver.swift
[11/21] Compiling ArchitectureComponents Lifecycle.swift
[12/21] Compiling ArchitectureComponents LifecycleObserver.swift
[13/21] Compiling ArchitectureComponents ObserverController.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
[14/21] Compiling ArchitectureComponents ObserverHandle.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverHandle.swift:36:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
34 | // MARK: Hashable
35 |
36 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ObserverHandle' to 'Hashable' by implementing 'hash(into:)' instead
37 | let result = self.value.hashValue
38 | return result
[15/21] Compiling ArchitectureComponents ObserverListController.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[16/21] Compiling ArchitectureComponents SwitchedLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:54:37: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
52 | // MARK: ObserverControllerDelegate
53 |
54 | public func observerDidActivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
55 | self.active = self.hasActiveObservers
56 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/Swift/ObserverListController.swift:58:39: warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 |
18 |
19 | internal class ObserverListController<Type>: ObserverControllerDelegate {
| `- note: 'Type' previously declared here
20 |
21 | // MARK: Type
:
56 | }
57 |
58 | public func observerDidDeactivate<Type>(_ observer: ObserverController<Type>) {
| `- warning: generic parameter 'Type' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | self.active = self.hasActiveObservers
60 | }
[17/21] Compiling ArchitectureComponents MutableLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:33:20: error: cannot find 'Thread' in scope
31 | public override var value: Type {
32 | willSet {
33 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
34 | }
35 | didSet {
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:50:26: error: cannot find 'DispatchSemaphore' in scope
48 | self.controller = ObserverListController<Type>()
49 | self.nextValue = .empty
50 | self.semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
51 |
52 | super.init(initialValue: initialValue)
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:60:16: error: cannot find 'Thread' in scope
58 |
59 | public override var hasObservers: Bool {
60 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
61 | return self.controller.hasObservers
62 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:65:16: error: cannot find 'Thread' in scope
63 |
64 | public override var hasActiveObservers: Bool {
65 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
66 | return self.controller.hasActiveObservers
67 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:70:16: error: cannot find 'Thread' in scope
68 |
69 | public override func observe(owner: LifecycleOwner, observer: @escaping Observer) -> ObserverHandle {
70 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
71 | let observerController = self.controller.insert(owner: owner, observer: observer)
72 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:76:16: error: cannot find 'Thread' in scope
74 |
75 | public override func observeForever(observer: @escaping Observer) -> ObserverHandle {
76 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
77 | let observerController = self.controller.insert(observer: observer)
78 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public override func removeObserver(handle: ObserverHandle) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 | self.controller.remove(handle: handle)
84 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:87:16: error: cannot find 'Thread' in scope
85 |
86 | public override func removeObservers(owner: LifecycleOwner) {
87 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
88 | self.controller.removeAllWithOwner(owner)
89 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 | self.semaphore.signal()
113 |
114 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
115 | self.semaphore.wait()
116 | let nextValue = self.nextValue
[18/21] Compiling ArchitectureComponents LiveDataError.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:33:20: error: cannot find 'Thread' in scope
31 | public override var value: Type {
32 | willSet {
33 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
34 | }
35 | didSet {
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:50:26: error: cannot find 'DispatchSemaphore' in scope
48 | self.controller = ObserverListController<Type>()
49 | self.nextValue = .empty
50 | self.semaphore = DispatchSemaphore(value: 1)
| `- error: cannot find 'DispatchSemaphore' in scope
51 |
52 | super.init(initialValue: initialValue)
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:60:16: error: cannot find 'Thread' in scope
58 |
59 | public override var hasObservers: Bool {
60 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
61 | return self.controller.hasObservers
62 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:65:16: error: cannot find 'Thread' in scope
63 |
64 | public override var hasActiveObservers: Bool {
65 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
66 | return self.controller.hasActiveObservers
67 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:70:16: error: cannot find 'Thread' in scope
68 |
69 | public override func observe(owner: LifecycleOwner, observer: @escaping Observer) -> ObserverHandle {
70 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
71 | let observerController = self.controller.insert(owner: owner, observer: observer)
72 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:76:16: error: cannot find 'Thread' in scope
74 |
75 | public override func observeForever(observer: @escaping Observer) -> ObserverHandle {
76 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
77 | let observerController = self.controller.insert(observer: observer)
78 | return observerController.handle
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:82:16: error: cannot find 'Thread' in scope
80 |
81 | public override func removeObserver(handle: ObserverHandle) {
82 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
83 | self.controller.remove(handle: handle)
84 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:87:16: error: cannot find 'Thread' in scope
85 |
86 | public override func removeObservers(owner: LifecycleOwner) {
87 | assert(Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
88 | self.controller.removeAllWithOwner(owner)
89 | }
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 | self.semaphore.signal()
113 |
114 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
115 | self.semaphore.wait()
116 | let nextValue = self.nextValue
[19/21] Compiling ArchitectureComponents LifecycleError.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
[20/21] Compiling ArchitectureComponents LiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
[21/21] Compiling ArchitectureComponents MediatorLiveData.swift
/host/spi-builder-workspace/Sources/ArchitectureComponents/LiveData/MutableLiveData.swift:41:28: error: cannot find type 'DispatchSemaphore' in scope
39 |
40 | private var nextValue: ValueHolder
41 | private let semaphore: DispatchSemaphore
| `- error: cannot find type 'DispatchSemaphore' in scope
42 |
43 | private let controller: ObserverListController<Type>
BUILD FAILURE 6.1 wasm