The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Flow, reference 1.13.0 (b452ec), with Swift 6.2 (beta) for Linux on 23 Jun 2025 02:32:31 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iZettle/Flow.git
Reference: 1.13.0
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/iZettle/Flow
 * tag               1.13.0     -> FETCH_HEAD
HEAD is now at b452ec9 Merge pull request #130 from iZettle/bump-ios-min-deployment-target
Cloned https://github.com/iZettle/Flow.git
Revision (git rev-parse @):
b452ec9f7f525d24d99d5c01ef5853ab28223d23
SUCCESS checkout https://github.com/iZettle/Flow.git at 1.13.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/iZettle/Flow.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-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/41] Emitting module Flow
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
[4/46] Compiling Flow Future.swift
/host/spi-builder-workspace/Flow/Future.swift:101:9: error: cannot find 'OSAtomicIncrement32' in scope
 99 |     ///   The `Mover` passed back should be used to move externally created futures inside this future.
100 |     public init(on scheduler: Scheduler = .current, onResult: @escaping (@escaping (Result<Value>) -> Void, Mover) throws -> Disposable) {
101 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
102 |         memPrint("Future init", futureUnitTestAliveCount)
103 |
/host/spi-builder-workspace/Flow/Future.swift:141:9: error: cannot find 'OSAtomicIncrement32' in scope
139 |     /// Creates a new instance already completed with `result`.
140 |     public init(result: Result<Value>) {
141 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
142 |         memPrint("Future init", futureUnitTestAliveCount)
143 |
/host/spi-builder-workspace/Flow/Future.swift:150:9: error: cannot find 'OSAtomicDecrement32' in scope
148 |
149 |     deinit {
150 |         OSAtomicDecrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
151 |         memPrint("Future deinit", futureUnitTestAliveCount)
152 |         mutex.deinitialize()
/host/spi-builder-workspace/Flow/Future.swift:330:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
328 |
329 | private extension Future {
330 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
331 |
332 |     private var protectedState: State {
/host/spi-builder-workspace/Flow/FutureQueue.swift:42:9: error: cannot find 'OSAtomicIncrement32' in scope
 40 |         self.maxConcurrentCount = maxConcurrentCount
 41 |         queueScheduler = executeOn
 42 |         OSAtomicIncrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
 43 |         memPrint("Queue init", futureQueueUnitTestAliveCount)
 44 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:47:9: error: cannot find 'OSAtomicDecrement32' in scope
 45 |
 46 |     deinit {
 47 |         OSAtomicDecrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
 48 |         memPrint("Queue deinit", futureQueueUnitTestAliveCount)
 49 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/FutureQueue.swift:172:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
170 |
171 | private extension FutureQueue {
172 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
173 |     func lock() { mutex.lock() }
174 |     func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/FutureQueue.swift:224:9: error: cannot find 'OSAtomicIncrement32' in scope
222 |         mutex.initialize()
223 |
224 |         OSAtomicIncrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
225 |         memPrint("Queue Item init", queueItemUnitTestAliveCount)
226 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:230:9: error: cannot find 'OSAtomicDecrement32' in scope
228 |     deinit {
229 |         mutex.deinitialize()
230 |         OSAtomicDecrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
231 |         memPrint("Queue Item deinit", queueItemUnitTestAliveCount)
232 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:234:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
232 |     }
233 |
234 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
235 |     private func lock() { mutex.lock() }
236 |     private func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/Locking.swift:14:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 12 | public final class Mutex {
 13 |     private var _mutex = pthread_mutex_t()
 14 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 15 |
 16 |     public init() {
/host/spi-builder-workspace/Flow/Locking.swift:54:42: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 52 |         }
 53 |
 54 |         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                          `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 55 |
 56 |         guard pthread_mutex_init(self, &attr) == 0 else {
/host/spi-builder-workspace/Flow/Locking.swift:90:50: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 88 |     fileprivate var disposables = [Disposable]()
 89 |     private var _mutex = pthread_mutex_t()
 90 |     fileprivate var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                                  |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                  |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                                  `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 91 |
 92 |     init(state: State, callback: @escaping (Value) -> ()) {
/host/spi-builder-workspace/Flow/OrderedCallbacker.swift:18:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
16 |     private var callbacks: [Key: (OrderedValue, (CallbackValue) -> Future<()>)] = [:]
17 |     private var _mutex = pthread_mutex_t()
18 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
   |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
19 |
20 |     public init() {
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[5/46] Compiling Flow FutureQueue.swift
/host/spi-builder-workspace/Flow/Future.swift:101:9: error: cannot find 'OSAtomicIncrement32' in scope
 99 |     ///   The `Mover` passed back should be used to move externally created futures inside this future.
100 |     public init(on scheduler: Scheduler = .current, onResult: @escaping (@escaping (Result<Value>) -> Void, Mover) throws -> Disposable) {
101 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
102 |         memPrint("Future init", futureUnitTestAliveCount)
103 |
/host/spi-builder-workspace/Flow/Future.swift:141:9: error: cannot find 'OSAtomicIncrement32' in scope
139 |     /// Creates a new instance already completed with `result`.
140 |     public init(result: Result<Value>) {
141 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
142 |         memPrint("Future init", futureUnitTestAliveCount)
143 |
/host/spi-builder-workspace/Flow/Future.swift:150:9: error: cannot find 'OSAtomicDecrement32' in scope
148 |
149 |     deinit {
150 |         OSAtomicDecrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
151 |         memPrint("Future deinit", futureUnitTestAliveCount)
152 |         mutex.deinitialize()
/host/spi-builder-workspace/Flow/Future.swift:330:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
328 |
329 | private extension Future {
330 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
331 |
332 |     private var protectedState: State {
/host/spi-builder-workspace/Flow/FutureQueue.swift:42:9: error: cannot find 'OSAtomicIncrement32' in scope
 40 |         self.maxConcurrentCount = maxConcurrentCount
 41 |         queueScheduler = executeOn
 42 |         OSAtomicIncrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
 43 |         memPrint("Queue init", futureQueueUnitTestAliveCount)
 44 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:47:9: error: cannot find 'OSAtomicDecrement32' in scope
 45 |
 46 |     deinit {
 47 |         OSAtomicDecrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
 48 |         memPrint("Queue deinit", futureQueueUnitTestAliveCount)
 49 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/FutureQueue.swift:172:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
170 |
171 | private extension FutureQueue {
172 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
173 |     func lock() { mutex.lock() }
174 |     func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/FutureQueue.swift:224:9: error: cannot find 'OSAtomicIncrement32' in scope
222 |         mutex.initialize()
223 |
224 |         OSAtomicIncrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
225 |         memPrint("Queue Item init", queueItemUnitTestAliveCount)
226 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:230:9: error: cannot find 'OSAtomicDecrement32' in scope
228 |     deinit {
229 |         mutex.deinitialize()
230 |         OSAtomicDecrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
231 |         memPrint("Queue Item deinit", queueItemUnitTestAliveCount)
232 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:234:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
232 |     }
233 |
234 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
235 |     private func lock() { mutex.lock() }
236 |     private func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/Locking.swift:14:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 12 | public final class Mutex {
 13 |     private var _mutex = pthread_mutex_t()
 14 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 15 |
 16 |     public init() {
/host/spi-builder-workspace/Flow/Locking.swift:54:42: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 52 |         }
 53 |
 54 |         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                          `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 55 |
 56 |         guard pthread_mutex_init(self, &attr) == 0 else {
/host/spi-builder-workspace/Flow/Locking.swift:90:50: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 88 |     fileprivate var disposables = [Disposable]()
 89 |     private var _mutex = pthread_mutex_t()
 90 |     fileprivate var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                                  |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                  |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                                  `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 91 |
 92 |     init(state: State, callback: @escaping (Value) -> ()) {
/host/spi-builder-workspace/Flow/OrderedCallbacker.swift:18:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
16 |     private var callbacks: [Key: (OrderedValue, (CallbackValue) -> Future<()>)] = [:]
17 |     private var _mutex = pthread_mutex_t()
18 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
   |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
19 |
20 |     public init() {
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[6/46] Compiling Flow HasEventListeners.swift
/host/spi-builder-workspace/Flow/Future.swift:101:9: error: cannot find 'OSAtomicIncrement32' in scope
 99 |     ///   The `Mover` passed back should be used to move externally created futures inside this future.
100 |     public init(on scheduler: Scheduler = .current, onResult: @escaping (@escaping (Result<Value>) -> Void, Mover) throws -> Disposable) {
101 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
102 |         memPrint("Future init", futureUnitTestAliveCount)
103 |
/host/spi-builder-workspace/Flow/Future.swift:141:9: error: cannot find 'OSAtomicIncrement32' in scope
139 |     /// Creates a new instance already completed with `result`.
140 |     public init(result: Result<Value>) {
141 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
142 |         memPrint("Future init", futureUnitTestAliveCount)
143 |
/host/spi-builder-workspace/Flow/Future.swift:150:9: error: cannot find 'OSAtomicDecrement32' in scope
148 |
149 |     deinit {
150 |         OSAtomicDecrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
151 |         memPrint("Future deinit", futureUnitTestAliveCount)
152 |         mutex.deinitialize()
/host/spi-builder-workspace/Flow/Future.swift:330:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
328 |
329 | private extension Future {
330 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
331 |
332 |     private var protectedState: State {
/host/spi-builder-workspace/Flow/FutureQueue.swift:42:9: error: cannot find 'OSAtomicIncrement32' in scope
 40 |         self.maxConcurrentCount = maxConcurrentCount
 41 |         queueScheduler = executeOn
 42 |         OSAtomicIncrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
 43 |         memPrint("Queue init", futureQueueUnitTestAliveCount)
 44 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:47:9: error: cannot find 'OSAtomicDecrement32' in scope
 45 |
 46 |     deinit {
 47 |         OSAtomicDecrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
 48 |         memPrint("Queue deinit", futureQueueUnitTestAliveCount)
 49 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/FutureQueue.swift:172:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
170 |
171 | private extension FutureQueue {
172 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
173 |     func lock() { mutex.lock() }
174 |     func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/FutureQueue.swift:224:9: error: cannot find 'OSAtomicIncrement32' in scope
222 |         mutex.initialize()
223 |
224 |         OSAtomicIncrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
225 |         memPrint("Queue Item init", queueItemUnitTestAliveCount)
226 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:230:9: error: cannot find 'OSAtomicDecrement32' in scope
228 |     deinit {
229 |         mutex.deinitialize()
230 |         OSAtomicDecrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
231 |         memPrint("Queue Item deinit", queueItemUnitTestAliveCount)
232 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:234:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
232 |     }
233 |
234 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
235 |     private func lock() { mutex.lock() }
236 |     private func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/Locking.swift:14:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 12 | public final class Mutex {
 13 |     private var _mutex = pthread_mutex_t()
 14 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 15 |
 16 |     public init() {
/host/spi-builder-workspace/Flow/Locking.swift:54:42: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 52 |         }
 53 |
 54 |         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                          `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 55 |
 56 |         guard pthread_mutex_init(self, &attr) == 0 else {
/host/spi-builder-workspace/Flow/Locking.swift:90:50: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 88 |     fileprivate var disposables = [Disposable]()
 89 |     private var _mutex = pthread_mutex_t()
 90 |     fileprivate var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                                  |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                  |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                                  `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 91 |
 92 |     init(state: State, callback: @escaping (Value) -> ()) {
/host/spi-builder-workspace/Flow/OrderedCallbacker.swift:18:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
16 |     private var callbacks: [Key: (OrderedValue, (CallbackValue) -> Future<()>)] = [:]
17 |     private var _mutex = pthread_mutex_t()
18 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
   |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
19 |
20 |     public init() {
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[7/46] Compiling Flow Locking.swift
/host/spi-builder-workspace/Flow/Future.swift:101:9: error: cannot find 'OSAtomicIncrement32' in scope
 99 |     ///   The `Mover` passed back should be used to move externally created futures inside this future.
100 |     public init(on scheduler: Scheduler = .current, onResult: @escaping (@escaping (Result<Value>) -> Void, Mover) throws -> Disposable) {
101 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
102 |         memPrint("Future init", futureUnitTestAliveCount)
103 |
/host/spi-builder-workspace/Flow/Future.swift:141:9: error: cannot find 'OSAtomicIncrement32' in scope
139 |     /// Creates a new instance already completed with `result`.
140 |     public init(result: Result<Value>) {
141 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
142 |         memPrint("Future init", futureUnitTestAliveCount)
143 |
/host/spi-builder-workspace/Flow/Future.swift:150:9: error: cannot find 'OSAtomicDecrement32' in scope
148 |
149 |     deinit {
150 |         OSAtomicDecrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
151 |         memPrint("Future deinit", futureUnitTestAliveCount)
152 |         mutex.deinitialize()
/host/spi-builder-workspace/Flow/Future.swift:330:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
328 |
329 | private extension Future {
330 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
331 |
332 |     private var protectedState: State {
/host/spi-builder-workspace/Flow/FutureQueue.swift:42:9: error: cannot find 'OSAtomicIncrement32' in scope
 40 |         self.maxConcurrentCount = maxConcurrentCount
 41 |         queueScheduler = executeOn
 42 |         OSAtomicIncrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
 43 |         memPrint("Queue init", futureQueueUnitTestAliveCount)
 44 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:47:9: error: cannot find 'OSAtomicDecrement32' in scope
 45 |
 46 |     deinit {
 47 |         OSAtomicDecrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
 48 |         memPrint("Queue deinit", futureQueueUnitTestAliveCount)
 49 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/FutureQueue.swift:172:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
170 |
171 | private extension FutureQueue {
172 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
173 |     func lock() { mutex.lock() }
174 |     func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/FutureQueue.swift:224:9: error: cannot find 'OSAtomicIncrement32' in scope
222 |         mutex.initialize()
223 |
224 |         OSAtomicIncrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
225 |         memPrint("Queue Item init", queueItemUnitTestAliveCount)
226 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:230:9: error: cannot find 'OSAtomicDecrement32' in scope
228 |     deinit {
229 |         mutex.deinitialize()
230 |         OSAtomicDecrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
231 |         memPrint("Queue Item deinit", queueItemUnitTestAliveCount)
232 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:234:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
232 |     }
233 |
234 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
235 |     private func lock() { mutex.lock() }
236 |     private func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/Locking.swift:14:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 12 | public final class Mutex {
 13 |     private var _mutex = pthread_mutex_t()
 14 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 15 |
 16 |     public init() {
/host/spi-builder-workspace/Flow/Locking.swift:54:42: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 52 |         }
 53 |
 54 |         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                          `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 55 |
 56 |         guard pthread_mutex_init(self, &attr) == 0 else {
/host/spi-builder-workspace/Flow/Locking.swift:90:50: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 88 |     fileprivate var disposables = [Disposable]()
 89 |     private var _mutex = pthread_mutex_t()
 90 |     fileprivate var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                                  |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                  |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                                  `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 91 |
 92 |     init(state: State, callback: @escaping (Value) -> ()) {
/host/spi-builder-workspace/Flow/OrderedCallbacker.swift:18:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
16 |     private var callbacks: [Key: (OrderedValue, (CallbackValue) -> Future<()>)] = [:]
17 |     private var _mutex = pthread_mutex_t()
18 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
   |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
19 |
20 |     public init() {
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[8/46] Compiling Flow OrderedCallbacker.swift
/host/spi-builder-workspace/Flow/Future.swift:101:9: error: cannot find 'OSAtomicIncrement32' in scope
 99 |     ///   The `Mover` passed back should be used to move externally created futures inside this future.
100 |     public init(on scheduler: Scheduler = .current, onResult: @escaping (@escaping (Result<Value>) -> Void, Mover) throws -> Disposable) {
101 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
102 |         memPrint("Future init", futureUnitTestAliveCount)
103 |
/host/spi-builder-workspace/Flow/Future.swift:141:9: error: cannot find 'OSAtomicIncrement32' in scope
139 |     /// Creates a new instance already completed with `result`.
140 |     public init(result: Result<Value>) {
141 |         OSAtomicIncrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
142 |         memPrint("Future init", futureUnitTestAliveCount)
143 |
/host/spi-builder-workspace/Flow/Future.swift:150:9: error: cannot find 'OSAtomicDecrement32' in scope
148 |
149 |     deinit {
150 |         OSAtomicDecrement32(&futureUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
151 |         memPrint("Future deinit", futureUnitTestAliveCount)
152 |         mutex.deinitialize()
/host/spi-builder-workspace/Flow/Future.swift:330:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
328 |
329 | private extension Future {
330 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
331 |
332 |     private var protectedState: State {
/host/spi-builder-workspace/Flow/FutureQueue.swift:42:9: error: cannot find 'OSAtomicIncrement32' in scope
 40 |         self.maxConcurrentCount = maxConcurrentCount
 41 |         queueScheduler = executeOn
 42 |         OSAtomicIncrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
 43 |         memPrint("Queue init", futureQueueUnitTestAliveCount)
 44 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:47:9: error: cannot find 'OSAtomicDecrement32' in scope
 45 |
 46 |     deinit {
 47 |         OSAtomicDecrement32(&futureQueueUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
 48 |         memPrint("Queue deinit", futureQueueUnitTestAliveCount)
 49 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/FutureQueue.swift:172:38: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
170 |
171 | private extension FutureQueue {
172 |     var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                      |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                      |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                      `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
173 |     func lock() { mutex.lock() }
174 |     func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/FutureQueue.swift:224:9: error: cannot find 'OSAtomicIncrement32' in scope
222 |         mutex.initialize()
223 |
224 |         OSAtomicIncrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicIncrement32' in scope
225 |         memPrint("Queue Item init", queueItemUnitTestAliveCount)
226 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:230:9: error: cannot find 'OSAtomicDecrement32' in scope
228 |     deinit {
229 |         mutex.deinitialize()
230 |         OSAtomicDecrement32(&queueItemUnitTestAliveCount)
    |         `- error: cannot find 'OSAtomicDecrement32' in scope
231 |         memPrint("Queue Item deinit", queueItemUnitTestAliveCount)
232 |     }
/host/spi-builder-workspace/Flow/FutureQueue.swift:234:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
232 |     }
233 |
234 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
235 |     private func lock() { mutex.lock() }
236 |     private func unlock() { mutex.unlock() }
/host/spi-builder-workspace/Flow/Locking.swift:14:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 12 | public final class Mutex {
 13 |     private var _mutex = pthread_mutex_t()
 14 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 15 |
 16 |     public init() {
/host/spi-builder-workspace/Flow/Locking.swift:54:42: error: cannot convert value of type 'Int' to expected argument type 'Int32'
 52 |         }
 53 |
 54 |         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)
    |                                          `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
 55 |
 56 |         guard pthread_mutex_init(self, &attr) == 0 else {
/host/spi-builder-workspace/Flow/Locking.swift:90:50: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 88 |     fileprivate var disposables = [Disposable]()
 89 |     private var _mutex = pthread_mutex_t()
 90 |     fileprivate var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                                  |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                                  |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                                  `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 91 |
 92 |     init(state: State, callback: @escaping (Value) -> ()) {
/host/spi-builder-workspace/Flow/OrderedCallbacker.swift:18:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
16 |     private var callbacks: [Key: (OrderedValue, (CallbackValue) -> Future<()>)] = [:]
17 |     private var _mutex = pthread_mutex_t()
18 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
   |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
19 |
20 |     public init() {
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[9/46] Compiling Flow ReadSignal.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:93:16: error: cannot find 'objc_getAssociatedObject' in scope
 91 | internal extension SignalProvider {
 92 |     var setter: ((Value) -> ())? {
 93 |         return objc_getAssociatedObject(providedSignal, &propertySetterKey) as? (Value) -> ()
    |                `- error: cannot find 'objc_getAssociatedObject' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:13: error: cannot find 'objc_setAssociatedObject' in scope
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |             `- error: cannot find 'objc_setAssociatedObject' in scope
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:73: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |                                                                         `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Scheduler.swift:128:75: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
126 |     /// Create a new instance that will schedule its work on the provided `queue`
127 |     convenience init(queue: DispatchQueue) {
128 |         self.init(identifyingObject: queue, async: { queue.async(execute: $0) }, sync: queue.sync)
    |                                                    |                      `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
    |                                                    `- note: parameter '$0' is implicitly non-Sendable
129 |     }
130 |
[10/46] Compiling Flow ReadWriteSignal.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:93:16: error: cannot find 'objc_getAssociatedObject' in scope
 91 | internal extension SignalProvider {
 92 |     var setter: ((Value) -> ())? {
 93 |         return objc_getAssociatedObject(providedSignal, &propertySetterKey) as? (Value) -> ()
    |                `- error: cannot find 'objc_getAssociatedObject' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:13: error: cannot find 'objc_setAssociatedObject' in scope
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |             `- error: cannot find 'objc_setAssociatedObject' in scope
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:73: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |                                                                         `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Scheduler.swift:128:75: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
126 |     /// Create a new instance that will schedule its work on the provided `queue`
127 |     convenience init(queue: DispatchQueue) {
128 |         self.init(identifyingObject: queue, async: { queue.async(execute: $0) }, sync: queue.sync)
    |                                                    |                      `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
    |                                                    `- note: parameter '$0' is implicitly non-Sendable
129 |     }
130 |
[11/46] Compiling Flow Recursive.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:93:16: error: cannot find 'objc_getAssociatedObject' in scope
 91 | internal extension SignalProvider {
 92 |     var setter: ((Value) -> ())? {
 93 |         return objc_getAssociatedObject(providedSignal, &propertySetterKey) as? (Value) -> ()
    |                `- error: cannot find 'objc_getAssociatedObject' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:13: error: cannot find 'objc_setAssociatedObject' in scope
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |             `- error: cannot find 'objc_setAssociatedObject' in scope
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:73: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |                                                                         `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Scheduler.swift:128:75: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
126 |     /// Create a new instance that will schedule its work on the provided `queue`
127 |     convenience init(queue: DispatchQueue) {
128 |         self.init(identifyingObject: queue, async: { queue.async(execute: $0) }, sync: queue.sync)
    |                                                    |                      `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
    |                                                    `- note: parameter '$0' is implicitly non-Sendable
129 |     }
130 |
[12/46] Compiling Flow Result.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:93:16: error: cannot find 'objc_getAssociatedObject' in scope
 91 | internal extension SignalProvider {
 92 |     var setter: ((Value) -> ())? {
 93 |         return objc_getAssociatedObject(providedSignal, &propertySetterKey) as? (Value) -> ()
    |                `- error: cannot find 'objc_getAssociatedObject' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:13: error: cannot find 'objc_setAssociatedObject' in scope
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |             `- error: cannot find 'objc_setAssociatedObject' in scope
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:73: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |                                                                         `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Scheduler.swift:128:75: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
126 |     /// Create a new instance that will schedule its work on the provided `queue`
127 |     convenience init(queue: DispatchQueue) {
128 |         self.init(identifyingObject: queue, async: { queue.async(execute: $0) }, sync: queue.sync)
    |                                                    |                      `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
    |                                                    `- note: parameter '$0' is implicitly non-Sendable
129 |     }
130 |
[13/46] Compiling Flow Scheduler.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:93:16: error: cannot find 'objc_getAssociatedObject' in scope
 91 | internal extension SignalProvider {
 92 |     var setter: ((Value) -> ())? {
 93 |         return objc_getAssociatedObject(providedSignal, &propertySetterKey) as? (Value) -> ()
    |                `- error: cannot find 'objc_getAssociatedObject' in scope
 94 |     }
 95 | }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:13: error: cannot find 'objc_setAssociatedObject' in scope
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |             `- error: cannot find 'objc_setAssociatedObject' in scope
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/ReadWriteSignal.swift:101:73: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
 99 |         self.init(onEventType: onEventType)
100 |         if let setter = setValue {
101 |             objc_setAssociatedObject(self, &propertySetterKey, setter, .OBJC_ASSOCIATION_RETAIN)
    |                                                                         `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
102 |         }
103 |     }
/host/spi-builder-workspace/Flow/Scheduler.swift:220:42: error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
218 |         Unmanaged<ThreadState>.fromOpaque(state).release()
219 |     }
220 |     pthread_key_create(&_threadStateKey, cleanup)
    |                                          `- error: cannot convert value of type '@convention(c) (UnsafeMutableRawPointer) -> Void' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> Void'
221 |     return _threadStateKey
222 | }()
/host/spi-builder-workspace/Flow/Scheduler.swift:128:75: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
126 |     /// Create a new instance that will schedule its work on the provided `queue`
127 |     convenience init(queue: DispatchQueue) {
128 |         self.init(identifyingObject: queue, async: { queue.async(execute: $0) }, sync: queue.sync)
    |                                                    |                      `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
    |                                                    `- note: parameter '$0' is implicitly non-Sendable
129 |     }
130 |
[14/46] Compiling Flow Signal+Combiners.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Construction.swift:116:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
114 |
115 |     private var _mutex = pthread_mutex_t()
116 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
117 |
118 |     init(shared: SharedState<Value>? = nil, getValue: (() -> Value)?, callback: @escaping (EventType<Value>) -> Void) {
/host/spi-builder-workspace/Flow/Signal+Construction.swift:296:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
294 |     private let getValue: (() -> Value)?
295 |     private var _mutex = pthread_mutex_t()
296 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
297 |
298 |     typealias Callback = (EventType<Value>) -> Void
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:32: error: value of type 'O' has no member 'observe'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                `- error: value of type 'O' has no member 'observe'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:59: error: cannot infer contextual base in reference to member 'new'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                                           `- error: cannot infer contextual base in reference to member 'new'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:40: error: value of type 'O' has no member 'observe'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                        `- error: value of type 'O' has no member 'observe'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:67: error: cannot infer contextual base in reference to member 'new'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                                                   `- error: cannot infer contextual base in reference to member 'new'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[15/46] Compiling Flow Signal+Construction.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Construction.swift:116:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
114 |
115 |     private var _mutex = pthread_mutex_t()
116 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
117 |
118 |     init(shared: SharedState<Value>? = nil, getValue: (() -> Value)?, callback: @escaping (EventType<Value>) -> Void) {
/host/spi-builder-workspace/Flow/Signal+Construction.swift:296:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
294 |     private let getValue: (() -> Value)?
295 |     private var _mutex = pthread_mutex_t()
296 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
297 |
298 |     typealias Callback = (EventType<Value>) -> Void
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:32: error: value of type 'O' has no member 'observe'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                `- error: value of type 'O' has no member 'observe'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:59: error: cannot infer contextual base in reference to member 'new'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                                           `- error: cannot infer contextual base in reference to member 'new'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:40: error: value of type 'O' has no member 'observe'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                        `- error: value of type 'O' has no member 'observe'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:67: error: cannot infer contextual base in reference to member 'new'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                                                   `- error: cannot infer contextual base in reference to member 'new'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[16/46] Compiling Flow Signal+Debug.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Construction.swift:116:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
114 |
115 |     private var _mutex = pthread_mutex_t()
116 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
117 |
118 |     init(shared: SharedState<Value>? = nil, getValue: (() -> Value)?, callback: @escaping (EventType<Value>) -> Void) {
/host/spi-builder-workspace/Flow/Signal+Construction.swift:296:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
294 |     private let getValue: (() -> Value)?
295 |     private var _mutex = pthread_mutex_t()
296 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
297 |
298 |     typealias Callback = (EventType<Value>) -> Void
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:32: error: value of type 'O' has no member 'observe'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                `- error: value of type 'O' has no member 'observe'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:59: error: cannot infer contextual base in reference to member 'new'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                                           `- error: cannot infer contextual base in reference to member 'new'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:40: error: value of type 'O' has no member 'observe'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                        `- error: value of type 'O' has no member 'observe'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:67: error: cannot infer contextual base in reference to member 'new'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                                                   `- error: cannot infer contextual base in reference to member 'new'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[17/46] Compiling Flow Signal+KeyValueObserving.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Construction.swift:116:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
114 |
115 |     private var _mutex = pthread_mutex_t()
116 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
117 |
118 |     init(shared: SharedState<Value>? = nil, getValue: (() -> Value)?, callback: @escaping (EventType<Value>) -> Void) {
/host/spi-builder-workspace/Flow/Signal+Construction.swift:296:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
294 |     private let getValue: (() -> Value)?
295 |     private var _mutex = pthread_mutex_t()
296 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
297 |
298 |     typealias Callback = (EventType<Value>) -> Void
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:32: error: value of type 'O' has no member 'observe'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                `- error: value of type 'O' has no member 'observe'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:59: error: cannot infer contextual base in reference to member 'new'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                                           `- error: cannot infer contextual base in reference to member 'new'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:40: error: value of type 'O' has no member 'observe'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                        `- error: value of type 'O' has no member 'observe'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:67: error: cannot infer contextual base in reference to member 'new'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                                                   `- error: cannot infer contextual base in reference to member 'new'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[18/46] Compiling Flow Signal+Listeners.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Construction.swift:116:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
114 |
115 |     private var _mutex = pthread_mutex_t()
116 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
117 |
118 |     init(shared: SharedState<Value>? = nil, getValue: (() -> Value)?, callback: @escaping (EventType<Value>) -> Void) {
/host/spi-builder-workspace/Flow/Signal+Construction.swift:296:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
294 |     private let getValue: (() -> Value)?
295 |     private var _mutex = pthread_mutex_t()
296 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
297 |
298 |     typealias Callback = (EventType<Value>) -> Void
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:12:18: error: cannot find type '_KeyValueCodingAndObserving' in scope
10 |
11 | // https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/NSObject.swift
12 | public extension _KeyValueCodingAndObserving {
   |                  `- error: cannot find type '_KeyValueCodingAndObserving' in scope
13 |     /// Returns a signal observing the property at `keyPath` of `self` using key value observing (KVO).
14 |     func signal<T>(for keyPath: KeyPath<Self, T>) -> ReadSignal<T> {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:32: error: value of type 'O' has no member 'observe'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                `- error: value of type 'O' has no member 'observe'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:28:59: error: cannot infer contextual base in reference to member 'new'
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
   |                                                           `- error: cannot infer contextual base in reference to member 'new'
29 |                 callback(.value(object[keyPath: keyPath]))
30 |             }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:40: error: value of type 'O' has no member 'observe'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                        `- error: value of type 'O' has no member 'observe'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:44:67: error: cannot infer contextual base in reference to member 'new'
42 |                   options: .shared,
43 |                   onInternalEvent: { callback in
44 |                     let token = object.observe(keyPath, options: .new) { newObject, _ in
   |                                                                   `- error: cannot infer contextual base in reference to member 'new'
45 |                         callback(.value(newObject[keyPath: keyPath]))
46 |                     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[19/46] Compiling Flow Signal+Scheduling.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:80:22: error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 78 |             let timer = DispatchSource.makeTimerSource(queue: .concurrentBackground)
 79 |
 80 |             bag.hold(timer) // DispatchSourceTimer is automatically cancelled after being released
    |                      `- error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 81 |             timer.setEventHandler {
 82 |                 callback(())
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:123:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
121 |     private var disposable: Disposable?
122 |     private var _mutex = pthread_mutex_t()
123 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
124 |     private let scheduler: Scheduler
125 |     private var callback: ((EventType<Value>) -> Void)?
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:15:95: warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
12 |     /// Returns a signal for notifications named `name`.
13 |     func signal(forName name: Notification.Name?, object: Any? = nil) -> Signal<Notification> {
14 |         return Signal(onValue: { callback in
   |                                  `- note: parameter 'callback' is implicitly non-Sendable
15 |             let observer = self.addObserver(forName: name, object: object, queue: nil, using: callback)
   |                                                                                               `- warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
16 |             return Disposer {
17 |                 self.removeObserver(observer)
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:37:19: error: cannot find 'objc_getAssociatedObject' in scope
35 | /// Returns signal that will signal once `object` is deallocated.
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
   |                   `- error: cannot find 'objc_getAssociatedObject' in scope
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
39 |     return tracker.callbacker.providedSignal
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:5: error: cannot find 'objc_setAssociatedObject' in scope
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |     `- error: cannot find 'objc_setAssociatedObject' in scope
39 |     return tracker.callbacker.providedSignal
40 | }
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:61: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |                                                             `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
39 |     return tracker.callbacker.providedSignal
40 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[20/46] Compiling Flow Signal+Transforms.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:80:22: error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 78 |             let timer = DispatchSource.makeTimerSource(queue: .concurrentBackground)
 79 |
 80 |             bag.hold(timer) // DispatchSourceTimer is automatically cancelled after being released
    |                      `- error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 81 |             timer.setEventHandler {
 82 |                 callback(())
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:123:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
121 |     private var disposable: Disposable?
122 |     private var _mutex = pthread_mutex_t()
123 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
124 |     private let scheduler: Scheduler
125 |     private var callback: ((EventType<Value>) -> Void)?
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:15:95: warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
12 |     /// Returns a signal for notifications named `name`.
13 |     func signal(forName name: Notification.Name?, object: Any? = nil) -> Signal<Notification> {
14 |         return Signal(onValue: { callback in
   |                                  `- note: parameter 'callback' is implicitly non-Sendable
15 |             let observer = self.addObserver(forName: name, object: object, queue: nil, using: callback)
   |                                                                                               `- warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
16 |             return Disposer {
17 |                 self.removeObserver(observer)
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:37:19: error: cannot find 'objc_getAssociatedObject' in scope
35 | /// Returns signal that will signal once `object` is deallocated.
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
   |                   `- error: cannot find 'objc_getAssociatedObject' in scope
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
39 |     return tracker.callbacker.providedSignal
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:5: error: cannot find 'objc_setAssociatedObject' in scope
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |     `- error: cannot find 'objc_setAssociatedObject' in scope
39 |     return tracker.callbacker.providedSignal
40 | }
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:61: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |                                                             `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
39 |     return tracker.callbacker.providedSignal
40 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[21/46] Compiling Flow Signal+Utilities.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:80:22: error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 78 |             let timer = DispatchSource.makeTimerSource(queue: .concurrentBackground)
 79 |
 80 |             bag.hold(timer) // DispatchSourceTimer is automatically cancelled after being released
    |                      `- error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 81 |             timer.setEventHandler {
 82 |                 callback(())
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:123:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
121 |     private var disposable: Disposable?
122 |     private var _mutex = pthread_mutex_t()
123 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
124 |     private let scheduler: Scheduler
125 |     private var callback: ((EventType<Value>) -> Void)?
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:15:95: warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
12 |     /// Returns a signal for notifications named `name`.
13 |     func signal(forName name: Notification.Name?, object: Any? = nil) -> Signal<Notification> {
14 |         return Signal(onValue: { callback in
   |                                  `- note: parameter 'callback' is implicitly non-Sendable
15 |             let observer = self.addObserver(forName: name, object: object, queue: nil, using: callback)
   |                                                                                               `- warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
16 |             return Disposer {
17 |                 self.removeObserver(observer)
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:37:19: error: cannot find 'objc_getAssociatedObject' in scope
35 | /// Returns signal that will signal once `object` is deallocated.
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
   |                   `- error: cannot find 'objc_getAssociatedObject' in scope
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
39 |     return tracker.callbacker.providedSignal
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:5: error: cannot find 'objc_setAssociatedObject' in scope
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |     `- error: cannot find 'objc_setAssociatedObject' in scope
39 |     return tracker.callbacker.providedSignal
40 | }
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:61: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |                                                             `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
39 |     return tracker.callbacker.providedSignal
40 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[22/46] Compiling Flow Signal.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:80:22: error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 78 |             let timer = DispatchSource.makeTimerSource(queue: .concurrentBackground)
 79 |
 80 |             bag.hold(timer) // DispatchSourceTimer is automatically cancelled after being released
    |                      `- error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 81 |             timer.setEventHandler {
 82 |                 callback(())
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:123:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
121 |     private var disposable: Disposable?
122 |     private var _mutex = pthread_mutex_t()
123 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
124 |     private let scheduler: Scheduler
125 |     private var callback: ((EventType<Value>) -> Void)?
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:15:95: warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
12 |     /// Returns a signal for notifications named `name`.
13 |     func signal(forName name: Notification.Name?, object: Any? = nil) -> Signal<Notification> {
14 |         return Signal(onValue: { callback in
   |                                  `- note: parameter 'callback' is implicitly non-Sendable
15 |             let observer = self.addObserver(forName: name, object: object, queue: nil, using: callback)
   |                                                                                               `- warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
16 |             return Disposer {
17 |                 self.removeObserver(observer)
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:37:19: error: cannot find 'objc_getAssociatedObject' in scope
35 | /// Returns signal that will signal once `object` is deallocated.
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
   |                   `- error: cannot find 'objc_getAssociatedObject' in scope
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
39 |     return tracker.callbacker.providedSignal
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:5: error: cannot find 'objc_setAssociatedObject' in scope
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |     `- error: cannot find 'objc_setAssociatedObject' in scope
39 |     return tracker.callbacker.providedSignal
40 | }
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:61: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |                                                             `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
39 |     return tracker.callbacker.providedSignal
40 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[23/46] Compiling Flow SignalProvider.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:80:22: error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 78 |             let timer = DispatchSource.makeTimerSource(queue: .concurrentBackground)
 79 |
 80 |             bag.hold(timer) // DispatchSourceTimer is automatically cancelled after being released
    |                      `- error: argument type 'any DispatchSourceTimer' expected to be an instance of a class or class-constrained type
 81 |             timer.setEventHandler {
 82 |                 callback(())
/host/spi-builder-workspace/Flow/Signal+Scheduling.swift:123:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
121 |     private var disposable: Disposable?
122 |     private var _mutex = pthread_mutex_t()
123 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
124 |     private let scheduler: Scheduler
125 |     private var callback: ((EventType<Value>) -> Void)?
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:15:95: warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
12 |     /// Returns a signal for notifications named `name`.
13 |     func signal(forName name: Notification.Name?, object: Any? = nil) -> Signal<Notification> {
14 |         return Signal(onValue: { callback in
   |                                  `- note: parameter 'callback' is implicitly non-Sendable
15 |             let observer = self.addObserver(forName: name, object: object, queue: nil, using: callback)
   |                                                                                               `- warning: passing non-Sendable parameter 'callback' to function expecting a '@Sendable' closure
16 |             return Disposer {
17 |                 self.removeObserver(observer)
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:37:19: error: cannot find 'objc_getAssociatedObject' in scope
35 | /// Returns signal that will signal once `object` is deallocated.
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
   |                   `- error: cannot find 'objc_getAssociatedObject' in scope
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
39 |     return tracker.callbacker.providedSignal
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:5: error: cannot find 'objc_setAssociatedObject' in scope
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |     `- error: cannot find 'objc_setAssociatedObject' in scope
39 |     return tracker.callbacker.providedSignal
40 | }
/host/spi-builder-workspace/Flow/Signal+Utilities.swift:38:61: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
36 | public func deallocSignal(for object: AnyObject) -> Signal<()> {
37 |     let tracker = objc_getAssociatedObject(object, &trackerKey) as? DeallocTracker ?? DeallocTracker()
38 |     objc_setAssociatedObject(object, &trackerKey, tracker, .OBJC_ASSOCIATION_RETAIN)
   |                                                             `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
39 |     return tracker.callbacker.providedSignal
40 | }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[24/46] Compiling Flow Event.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[25/46] Compiling Flow EventType.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[26/46] Compiling Flow FiniteSignal.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[27/46] Compiling Flow Future+Additions.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[28/46] Compiling Flow Future+Combiners.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[29/46] Compiling Flow Future+Signal.swift
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Future+Additions.swift:334:46: error: cannot find type 'NSInteger' in scope
332 |     ///   However, passing a nil `delayBetweenRepeats` will repeat at once.
333 |     @discardableResult
334 |     func repeatAndCollect(repeatCount count: NSInteger, delayBetweenRepetitions delay: TimeInterval? = nil) -> Future<[Value]> {
    |                                              `- error: cannot find type 'NSInteger' in scope
335 |         let state = StateAndCallback(state: (count: count, result: [Value]()))
336 |
[30/46] Compiling Flow TargetActionable.swift
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
[31/46] Compiling Flow UIControls+Extensions.swift
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
[32/46] Compiling Flow UIView+EditingMenu.swift
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
[33/46] Compiling Flow UIView+Signal.swift
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
[34/46] Compiling Flow Utilities.swift
/host/spi-builder-workspace/Flow/TargetActionable.swift:13:17: error: cannot find type 'Selector' in scope
11 | /// Whether the conforming object supports a single target and action.
12 | public protocol TargetActionable: AnyObject {
13 |     var action: Selector? { get set }
   |                 `- error: cannot find type 'Selector' in scope
14 |     var target: AnyObject? { get set }
15 | }
/host/spi-builder-workspace/Flow/TargetActionable.swift:57:33: error: cannot find type 'Selector' in scope
55 | // Helper class to setup target actions.
56 | final class TargetAction: NSObject {
57 |     public static let selector: Selector = #selector(TargetAction.flowOnAction)
   |                                 `- error: cannot find type 'Selector' in scope
58 |     fileprivate let callbacker = Callbacker<()>()
59 |
/host/spi-builder-workspace/Flow/TargetActionable.swift:64:6: error: Objective-C interoperability is disabled
62 |     }
63 |
64 |     @objc func flowOnAction() {
   |      `- error: Objective-C interoperability is disabled
65 |         callbacker.callAll()
66 |     }
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
[35/46] Compiling Flow CancelBag.swift
[36/46] Compiling Flow Disposable+Cancellable.swift
[37/46] Compiling Flow Future+Combine.swift
[38/46] Compiling Flow Publisher+Utilities.swift
[39/46] Compiling Flow Signal+Combine.swift
[40/46] Compiling Flow Signal+SwiftUI.swift
[41/46] Compiling Flow Callbacker.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[42/46] Compiling Flow CoreSignal.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[43/46] Compiling Flow Delegate.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[44/46] Compiling Flow Disposable.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[45/46] Compiling Flow Either.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[46/46] Compiling Flow Enablable.swift
/host/spi-builder-workspace/Flow/Callbacker.swift:24:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 22 |     private var callbacks = Callbacks.none
 23 |     private var _mutex = pthread_mutex_t()
 24 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 25 |
 26 |     public init() {
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:26:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
24 | public extension CoreSignal where Kind == Read {
25 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
26 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: KeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
27 |         self.init(getValue: { object[keyPath: keyPath] }, options: .shared, onInternalEvent: { callback in
28 |             let token = object.observe(keyPath, options: .new) { _, _ in
/host/spi-builder-workspace/Flow/Signal+KeyValueObserving.swift:38:25: error: cannot find type '_KeyValueCodingAndObserving' in scope
36 | public extension CoreSignal where Kind == ReadWrite {
37 |     /// Creates a new instance observing the property at `keyPath` of `object` using key value observing (KVO).
38 |     convenience init<O: _KeyValueCodingAndObserving>(object: O, keyPath: WritableKeyPath<O, Value>) {
   |                         `- error: cannot find type '_KeyValueCodingAndObserving' in scope
39 |         var object = object
40 |         self.init(getValue: { object[keyPath: keyPath] },
/host/spi-builder-workspace/Flow/Disposable.swift:32:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 30 |     private var disposer: (() -> ())?
 31 |     private var _mutex = pthread_mutex_t()
 32 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 33 |
 34 |     /// Pass a closure to be called when being disposed
/host/spi-builder-workspace/Flow/Disposable.swift:62:46: warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 60 |     private var disposables: [Disposable]
 61 |     private var _mutex = pthread_mutex_t()
 62 |     private var mutex: PThreadMutex { return PThreadMutex(&_mutex) }
    |                                              |            |- note: implicit argument conversion from 'pthread_mutex_t' to 'UnsafeMutablePointer<pthread_mutex_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                                              |            `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                                              `- warning: initialization of 'PThreadMutex' (aka 'UnsafeMutablePointer<pthread_mutex_t>') results in a dangling pointer [#TemporaryPointers]
 63 |
 64 |     /// Create an empty instance
/host/spi-builder-workspace/Flow/Enablable.swift:49:20: error: cannot find 'objc_getAssociatedObject' in scope
47 |     var enablesAutomatically: Bool {
48 |         get {
49 |             return objc_getAssociatedObject(self, &enablesAutomaticallyKey) as? Bool ?? false
   |                    `- error: cannot find 'objc_getAssociatedObject' in scope
50 |         }
51 |         set {
/host/spi-builder-workspace/Flow/Enablable.swift:52:13: error: cannot find 'objc_setAssociatedObject' in scope
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |             `- error: cannot find 'objc_setAssociatedObject' in scope
53 |             updateAutomaticEnabling()
54 |         }
/host/spi-builder-workspace/Flow/Enablable.swift:52:94: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
50 |         }
51 |         set {
52 |             objc_setAssociatedObject(self, &enablesAutomaticallyKey, newValue ? true : nil, .OBJC_ASSOCIATION_RETAIN)
   |                                                                                              `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
53 |             updateAutomaticEnabling()
54 |         }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
BUILD FAILURE 6.2 linux