Build Information
Failed to build AsyncFileMonitor, reference 2.1.0 (106988), with Swift 6.3 for Linux on 4 Sep 2026 02:51:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/AsyncFileMonitor.git
Reference: 2.1.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/CleanCocoa/AsyncFileMonitor
* tag 2.1.0 -> FETCH_HEAD
HEAD is now at 1069889 chore: plan 3.0 as a dependency-ordered slice sequence
Cloned https://github.com/CleanCocoa/AsyncFileMonitor.git
Revision (git rev-parse @):
10698896f096830772b1b6bf74e31d15429b82cc
SUCCESS checkout https://github.com/CleanCocoa/AsyncFileMonitor.git at 2.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/CleanCocoa/AsyncFileMonitor.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:b82c9ac2aaad9c671b7a7653c8e6eeaf006cac60f6a8910901b9357c067e0892
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.58s)
[1/27133] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.26s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.14s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3818] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.55s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.76s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.23s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/13] Write sources
[6/13] Write swift-version-24593BA9C3E375BF.txt
[8/31] Emitting module InternalCollectionsUtilities
[9/33] Compiling InternalCollectionsUtilities _SortedCollection.swift
[10/33] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[11/33] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[12/33] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[13/33] Compiling InternalCollectionsUtilities Span+Extras.swift
[14/33] Compiling InternalCollectionsUtilities Debugging.swift
[15/33] Compiling InternalCollectionsUtilities Descriptions.swift
[16/33] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[17/33] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[18/33] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[19/33] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[20/33] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[21/33] Compiling InternalCollectionsUtilities String+Padding.swift
[22/33] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[23/33] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[24/33] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[25/33] Compiling InternalCollectionsUtilities Integer rank.swift
[26/33] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[27/33] Compiling InternalCollectionsUtilities UInt+reversed.swift
[28/34] Wrapping AST for InternalCollectionsUtilities for debugging
[30/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[31/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[32/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[33/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[34/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[35/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[36/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[37/91] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[38/98] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[39/98] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[40/98] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[41/98] Compiling OrderedCollections OrderedDictionary+Move.swift
[42/98] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[43/98] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[44/98] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[45/98] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[46/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[47/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[48/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[49/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[50/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[51/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[52/98] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[53/98] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[54/98] Compiling OrderedCollections OrderedDictionary+Values.swift
[55/98] Compiling OrderedCollections OrderedDictionary.swift
[56/98] Compiling OrderedCollections OrderedSet+Codable.swift
[57/98] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[58/98] Compiling OrderedCollections OrderedSet+Descriptions.swift
[59/98] Compiling OrderedCollections OrderedSet+Diffing.swift
[60/98] Compiling OrderedCollections OrderedSet+Equatable.swift
[61/98] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[62/98] Compiling OrderedCollections OrderedDictionary+Codable.swift
[63/98] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[64/98] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[65/98] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[66/98] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[67/98] Compiling OrderedCollections OrderedDictionary+Elements.swift
[68/98] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[69/98] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[70/98] Compiling OrderedCollections _HashTable+Bucket.swift
[71/98] Compiling OrderedCollections _HashTable+BucketIterator.swift
[72/98] Compiling OrderedCollections _HashTable+Constants.swift
[73/98] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[74/98] Compiling OrderedCollections _HashTable+Testing.swift
[75/98] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[76/98] Compiling OrderedCollections _HashTable.swift
[77/98] Compiling OrderedCollections _Hashtable+Header.swift
[78/98] Compiling OrderedCollections OrderedSet+Hashable.swift
[79/98] Compiling OrderedCollections OrderedSet+Initializers.swift
[80/98] Compiling OrderedCollections OrderedSet+Insertions.swift
[81/98] Compiling OrderedCollections OrderedSet+Invariants.swift
[82/98] Compiling OrderedCollections OrderedSet+Move.swift
[83/98] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[84/98] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[85/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[86/98] Compiling OrderedCollections OrderedSet+Sendable.swift
[87/98] Compiling OrderedCollections OrderedSet+SubSequence.swift
[88/98] Compiling OrderedCollections OrderedSet+Testing.swift
[89/98] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[90/98] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[91/98] Compiling OrderedCollections OrderedSet.swift
[92/98] Compiling OrderedCollections _UnsafeBitset.swift
[93/98] Emitting module OrderedCollections
[94/99] Wrapping AST for OrderedCollections for debugging
[96/106] Compiling AsyncFileMonitor StreamCondition.swift
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:33:26: error: cannot find type 'FSEventStreamEventFlags' in scope
31 |
32 | /// Extracts the stream conditions from Core Services event flags, discarding item flags.
33 | public init(eventFlags: FSEventStreamEventFlags) {
| `- error: cannot find type 'FSEventStreamEventFlags' in scope
34 | self.rawValue = Int(eventFlags) & StreamCondition.flagsMask
35 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:51:71: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
49 | /// This is the sole actionable condition in this group: ``userDropped`` and
50 | /// ``kernelDropped`` only say where the bottleneck was.
51 | public static let mustScanSubDirectories = StreamCondition(rawValue: kFSEventStreamEventFlagMustScanSubDirs)
| `- error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
52 |
53 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed on the client side.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:56:60: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
54 | ///
55 | /// Per the Core Services headers, the likelier of the two.
56 | public static let userDropped = StreamCondition(rawValue: kFSEventStreamEventFlagUserDropped)
| `- error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
57 |
58 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:59:62: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
57 |
58 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
59 | public static let kernelDropped = StreamCondition(rawValue: kFSEventStreamEventFlagKernelDropped)
| `- error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
60 |
61 | // MARK: - Invalidated state
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:67:64: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
65 | /// Previously issued event IDs are no longer valid values for `sinceWhen`. Callers that
66 | /// persist an event ID as a resume point must discard it.
67 | public static let eventIDsWrapped = StreamCondition(rawValue: kFSEventStreamEventFlagEventIdsWrapped)
| `- error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
68 |
69 | /// A directory along the path to a monitored path changed; the monitored path may no longer exist.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:75:60: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
73 | /// - Note: Only ever delivered when the stream was created with
74 | /// `kFSEventStreamCreateFlagWatchRoot`, which this library does not currently pass.
75 | public static let rootChanged = StreamCondition(rawValue: kFSEventStreamEventFlagRootChanged)
| `- error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
76 |
77 | /// A volume was mounted underneath a monitored path; `eventPath` is the mount point.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:81:56: error: cannot find 'kFSEventStreamEventFlagMount' in scope
79 | /// - Warning: The new volume may contain an arbitrarily large hierarchy, and may not be
80 | /// local. Do not scan it unconditionally.
81 | public static let mounted = StreamCondition(rawValue: kFSEventStreamEventFlagMount)
| `- error: cannot find 'kFSEventStreamEventFlagMount' in scope
82 |
83 | /// A volume was unmounted underneath a monitored path; `eventPath` is the directory it was
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:87:58: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
85 | ///
86 | /// Delivered after the unmount has already happened.
87 | public static let unmounted = StreamCondition(rawValue: kFSEventStreamEventFlagUnmount)
| `- error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
88 |
89 | // MARK: - Sentinel
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:95:60: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
93 | ///
94 | /// - Important: `eventPath` is meaningless on this event and must be ignored.
95 | public static let historyDone = StreamCondition(rawValue: kFSEventStreamEventFlagHistoryDone)
| `- error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
96 | }
97 |
[97/106] Compiling AsyncFileMonitor MulticastAsyncStream.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[98/106] Emitting module AsyncFileMonitor
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:33:26: error: cannot find type 'FSEventStreamEventFlags' in scope
31 | /// `eventPath`; see ``StreamCondition``. Masking it off is what lets an empty ``Change``
32 | /// mean "this element reports no file change".
33 | public init(eventFlags: FSEventStreamEventFlags) {
| `- error: cannot find type 'FSEventStreamEventFlags' in scope
34 | self.rawValue = Int(eventFlags) & ~StreamCondition.flagsMask
35 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:38:51: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
36 |
37 | /// The changed item is a directory.
38 | public static let isDirectory = Change(rawValue: kFSEventStreamEventFlagItemIsDir)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
39 |
40 | /// The changed item is a file.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:41:46: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
39 |
40 | /// The changed item is a file.
41 | public static let isFile = Change(rawValue: kFSEventStreamEventFlagItemIsFile)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
42 |
43 | /// The changed item is a hard link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:44:50: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
42 |
43 | /// The changed item is a hard link.
44 | public static let isHardlink = Change(rawValue: kFSEventStreamEventFlagItemIsHardlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
45 |
46 | /// The changed item is the last hard link to a file that is being removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
45 |
46 | /// The changed item is the last hard link to a file that is being removed.
47 | public static let isLastHardlink = Change(rawValue: kFSEventStreamEventFlagItemIsLastHardlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
48 |
49 | /// The changed item is a symbolic link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:50:49: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
48 |
49 | /// The changed item is a symbolic link.
50 | public static let isSymlink = Change(rawValue: kFSEventStreamEventFlagItemIsSymlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
51 |
52 | /// The item was created.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:53:47: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
51 |
52 | /// The item was created.
53 | public static let created = Change(rawValue: kFSEventStreamEventFlagItemCreated)
| `- error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
54 |
55 | /// The item was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:56:48: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
54 |
55 | /// The item was modified.
56 | public static let modified = Change(rawValue: kFSEventStreamEventFlagItemModified)
| `- error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
57 |
58 | /// The item was removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:59:47: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
57 |
58 | /// The item was removed.
59 | public static let removed = Change(rawValue: kFSEventStreamEventFlagItemRemoved)
| `- error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
60 |
61 | /// The item was renamed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:62:47: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
60 |
61 | /// The item was renamed.
62 | public static let renamed = Change(rawValue: kFSEventStreamEventFlagItemRenamed)
| `- error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
63 |
64 | /// The item's owner was changed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:65:51: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
63 |
64 | /// The item's owner was changed.
65 | public static let changeOwner = Change(rawValue: kFSEventStreamEventFlagItemChangeOwner)
| `- error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
66 |
67 | /// The item's Finder information was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:68:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
66 |
67 | /// The item's Finder information was modified.
68 | public static let finderInfoModified = Change(rawValue: kFSEventStreamEventFlagItemFinderInfoMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
69 |
70 | /// The item's inode metadata was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:71:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
69 |
70 | /// The item's inode metadata was modified.
71 | public static let inodeMetaModified = Change(rawValue: kFSEventStreamEventFlagItemInodeMetaMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
72 |
73 | /// The item's extended attributes were modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:74:54: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
72 |
73 | /// The item's extended attributes were modified.
74 | public static let xattrsModified = Change(rawValue: kFSEventStreamEventFlagItemXattrMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
75 |
76 | /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:77:46: error: cannot find 'kFSEventStreamEventFlagItemCloned' in scope
75 |
76 | /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
77 | public static let cloned = Change(rawValue: kFSEventStreamEventFlagItemCloned)
| `- error: cannot find 'kFSEventStreamEventFlagItemCloned' in scope
78 |
79 | /// The change was caused by this process.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:82:48: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
80 | ///
81 | /// Useful to suppress reacting to your own writes.
82 | public static let ownEvent = Change(rawValue: kFSEventStreamEventFlagOwnEvent)
| `- error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
83 | }
84 |
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:50:42: error: cannot find type 'FSEventStreamCallback' in scope
48 | /// Deliberately free of Task hops: scheduling here would let Swift concurrency reorder
49 | /// events that FSEvents delivered in order.
50 | private static let eventStreamCallback: FSEventStreamCallback = {
| `- error: cannot find type 'FSEventStreamCallback' in scope
51 | (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
52 | guard let contextInfo else { return }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:53:31: error: cannot find type 'CFArray' in scope
51 | (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
52 | guard let contextInfo else { return }
53 | guard let paths = Unmanaged<CFArray>.fromOpaque(eventPaths).takeUnretainedValue() as NSArray as? [String]
| `- error: cannot find type 'CFArray' in scope
54 | else {
55 | return
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:73:25: error: cannot find type 'FSEventStreamRef' in scope
71 | }
72 |
73 | private let streamRef: FSEventStreamRef
| `- error: cannot find type 'FSEventStreamRef' in scope
74 | private let queue: DispatchQueue
75 | private let eventHandlerBox: EventHandlerBox
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:77:26: error: cannot find type 'FSEventStreamRef' in scope
75 | private let eventHandlerBox: EventHandlerBox
76 |
77 | private init(streamRef: FSEventStreamRef, queue: DispatchQueue, eventHandlerBox: EventHandlerBox) {
| `- error: cannot find type 'FSEventStreamRef' in scope
78 | self.streamRef = streamRef
79 | self.queue = queue
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:93:14: error: cannot find type 'FSEventStreamEventId' in scope
91 | static func make(
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
| `- error: cannot find type 'FSEventStreamEventId' in scope
94 | latency: CFTimeInterval,
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:94:12: error: cannot find type 'CFTimeInterval' in scope
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
94 | latency: CFTimeInterval,
| `- error: cannot find type 'CFTimeInterval' in scope
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
96 | ) throws -> FileSystemEventStream {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:21:17: error: cannot find type 'FSEventStreamEventId' in scope
19 | ///
20 | /// This is an alias for ``eventID`` to satisfy the `Identifiable` protocol.
21 | public var id: FSEventStreamEventId { eventID }
| `- error: cannot find type 'FSEventStreamEventId' in scope
22 |
23 | /// The unique event identifier assigned by Core Services.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:24:22: error: cannot find type 'FSEventStreamEventId' in scope
22 |
23 | /// The unique event identifier assigned by Core Services.
24 | public let eventID: FSEventStreamEventId
| `- error: cannot find type 'FSEventStreamEventId' in scope
25 |
26 | /// The file system path where the change occurred.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:70:12: error: cannot find type 'FSEventStreamEventId' in scope
68 | /// - condition: Conditions reported by the stream itself (default: none)
69 | public init(
70 | eventID: FSEventStreamEventId,
| `- error: cannot find type 'FSEventStreamEventId' in scope
71 | eventPath: String,
72 | change: Change,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:64:22: error: cannot find type 'CFTimeInterval' in scope
62 | /// Interval (in seconds) that the system should wait before reporting events,
63 | /// allowing multiple related events to be coalesced. A value of `0.0` means no delay.
64 | public let latency: CFTimeInterval
| `- error: cannot find type 'CFTimeInterval' in scope
65 |
66 | /// The FSEventStreamEventId to start from.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:70:24: error: cannot find type 'FSEventStreamEventId' in scope
68 | /// This determines which events should be reported. Use `kFSEventStreamEventIdSinceNow`
69 | /// to only receive events that occur after monitoring starts.
70 | public let sinceWhen: FSEventStreamEventId
| `- error: cannot find type 'FSEventStreamEventId' in scope
71 |
72 | /// Create a new monitor for the specified paths.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:80:14: error: cannot find type 'FSEventStreamEventId' in scope
78 | public init(
79 | paths: [String],
80 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
81 | latency: CFTimeInterval = 0
82 | ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:81:12: error: cannot find type 'CFTimeInterval' in scope
79 | paths: [String],
80 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
81 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
82 | ) {
83 | self.paths = paths
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:96:14: error: cannot find type 'FSEventStreamEventId' in scope
94 | public convenience init(
95 | url: URL,
96 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
97 | latency: CFTimeInterval = 0
98 | ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:97:12: error: cannot find type 'CFTimeInterval' in scope
95 | url: URL,
96 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
97 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
98 | ) {
99 | precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:220:14: error: cannot find type 'FSEventStreamEventId' in scope
218 | public static func makeStream(
219 | url: URL,
220 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
221 | latency: CFTimeInterval = 0
222 | ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:221:12: error: cannot find type 'CFTimeInterval' in scope
219 | url: URL,
220 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
221 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
222 | ) -> AsyncStream<FolderContentChangeEvent> {
223 | precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:240:14: error: cannot find type 'FSEventStreamEventId' in scope
238 | public static func makeStream(
239 | paths: [String],
240 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
241 | latency: CFTimeInterval = 0
242 | ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:241:12: error: cannot find type 'CFTimeInterval' in scope
239 | paths: [String],
240 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
241 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
242 | ) -> AsyncStream<FolderContentChangeEvent> {
243 | AsyncStream { continuation in
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:33:26: error: cannot find type 'FSEventStreamEventFlags' in scope
31 |
32 | /// Extracts the stream conditions from Core Services event flags, discarding item flags.
33 | public init(eventFlags: FSEventStreamEventFlags) {
| `- error: cannot find type 'FSEventStreamEventFlags' in scope
34 | self.rawValue = Int(eventFlags) & StreamCondition.flagsMask
35 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:51:71: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
49 | /// This is the sole actionable condition in this group: ``userDropped`` and
50 | /// ``kernelDropped`` only say where the bottleneck was.
51 | public static let mustScanSubDirectories = StreamCondition(rawValue: kFSEventStreamEventFlagMustScanSubDirs)
| `- error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
52 |
53 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed on the client side.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:56:60: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
54 | ///
55 | /// Per the Core Services headers, the likelier of the two.
56 | public static let userDropped = StreamCondition(rawValue: kFSEventStreamEventFlagUserDropped)
| `- error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
57 |
58 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:59:62: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
57 |
58 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
59 | public static let kernelDropped = StreamCondition(rawValue: kFSEventStreamEventFlagKernelDropped)
| `- error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
60 |
61 | // MARK: - Invalidated state
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:67:64: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
65 | /// Previously issued event IDs are no longer valid values for `sinceWhen`. Callers that
66 | /// persist an event ID as a resume point must discard it.
67 | public static let eventIDsWrapped = StreamCondition(rawValue: kFSEventStreamEventFlagEventIdsWrapped)
| `- error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
68 |
69 | /// A directory along the path to a monitored path changed; the monitored path may no longer exist.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:75:60: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
73 | /// - Note: Only ever delivered when the stream was created with
74 | /// `kFSEventStreamCreateFlagWatchRoot`, which this library does not currently pass.
75 | public static let rootChanged = StreamCondition(rawValue: kFSEventStreamEventFlagRootChanged)
| `- error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
76 |
77 | /// A volume was mounted underneath a monitored path; `eventPath` is the mount point.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:81:56: error: cannot find 'kFSEventStreamEventFlagMount' in scope
79 | /// - Warning: The new volume may contain an arbitrarily large hierarchy, and may not be
80 | /// local. Do not scan it unconditionally.
81 | public static let mounted = StreamCondition(rawValue: kFSEventStreamEventFlagMount)
| `- error: cannot find 'kFSEventStreamEventFlagMount' in scope
82 |
83 | /// A volume was unmounted underneath a monitored path; `eventPath` is the directory it was
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:87:58: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
85 | ///
86 | /// Delivered after the unmount has already happened.
87 | public static let unmounted = StreamCondition(rawValue: kFSEventStreamEventFlagUnmount)
| `- error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
88 |
89 | // MARK: - Sentinel
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:95:60: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
93 | ///
94 | /// - Important: `eventPath` is meaningless on this event and must be ignored.
95 | public static let historyDone = StreamCondition(rawValue: kFSEventStreamEventFlagHistoryDone)
| `- error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
96 | }
97 |
[99/106] Compiling AsyncFileMonitor Change.swift
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:33:26: error: cannot find type 'FSEventStreamEventFlags' in scope
31 | /// `eventPath`; see ``StreamCondition``. Masking it off is what lets an empty ``Change``
32 | /// mean "this element reports no file change".
33 | public init(eventFlags: FSEventStreamEventFlags) {
| `- error: cannot find type 'FSEventStreamEventFlags' in scope
34 | self.rawValue = Int(eventFlags) & ~StreamCondition.flagsMask
35 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:38:51: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
36 |
37 | /// The changed item is a directory.
38 | public static let isDirectory = Change(rawValue: kFSEventStreamEventFlagItemIsDir)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
39 |
40 | /// The changed item is a file.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:41:46: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
39 |
40 | /// The changed item is a file.
41 | public static let isFile = Change(rawValue: kFSEventStreamEventFlagItemIsFile)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
42 |
43 | /// The changed item is a hard link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:44:50: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
42 |
43 | /// The changed item is a hard link.
44 | public static let isHardlink = Change(rawValue: kFSEventStreamEventFlagItemIsHardlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
45 |
46 | /// The changed item is the last hard link to a file that is being removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
45 |
46 | /// The changed item is the last hard link to a file that is being removed.
47 | public static let isLastHardlink = Change(rawValue: kFSEventStreamEventFlagItemIsLastHardlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
48 |
49 | /// The changed item is a symbolic link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:50:49: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
48 |
49 | /// The changed item is a symbolic link.
50 | public static let isSymlink = Change(rawValue: kFSEventStreamEventFlagItemIsSymlink)
| `- error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
51 |
52 | /// The item was created.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:53:47: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
51 |
52 | /// The item was created.
53 | public static let created = Change(rawValue: kFSEventStreamEventFlagItemCreated)
| `- error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
54 |
55 | /// The item was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:56:48: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
54 |
55 | /// The item was modified.
56 | public static let modified = Change(rawValue: kFSEventStreamEventFlagItemModified)
| `- error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
57 |
58 | /// The item was removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:59:47: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
57 |
58 | /// The item was removed.
59 | public static let removed = Change(rawValue: kFSEventStreamEventFlagItemRemoved)
| `- error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
60 |
61 | /// The item was renamed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:62:47: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
60 |
61 | /// The item was renamed.
62 | public static let renamed = Change(rawValue: kFSEventStreamEventFlagItemRenamed)
| `- error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
63 |
64 | /// The item's owner was changed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:65:51: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
63 |
64 | /// The item's owner was changed.
65 | public static let changeOwner = Change(rawValue: kFSEventStreamEventFlagItemChangeOwner)
| `- error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
66 |
67 | /// The item's Finder information was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:68:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
66 |
67 | /// The item's Finder information was modified.
68 | public static let finderInfoModified = Change(rawValue: kFSEventStreamEventFlagItemFinderInfoMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
69 |
70 | /// The item's inode metadata was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:71:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
69 |
70 | /// The item's inode metadata was modified.
71 | public static let inodeMetaModified = Change(rawValue: kFSEventStreamEventFlagItemInodeMetaMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
72 |
73 | /// The item's extended attributes were modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:74:54: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
72 |
73 | /// The item's extended attributes were modified.
74 | public static let xattrsModified = Change(rawValue: kFSEventStreamEventFlagItemXattrMod)
| `- error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
75 |
76 | /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:77:46: error: cannot find 'kFSEventStreamEventFlagItemCloned' in scope
75 |
76 | /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
77 | public static let cloned = Change(rawValue: kFSEventStreamEventFlagItemCloned)
| `- error: cannot find 'kFSEventStreamEventFlagItemCloned' in scope
78 |
79 | /// The change was caused by this process.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:82:48: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
80 | ///
81 | /// Useful to suppress reacting to your own writes.
82 | public static let ownEvent = Change(rawValue: kFSEventStreamEventFlagOwnEvent)
| `- error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
83 | }
84 |
[100/106] Compiling AsyncFileMonitor FileSystemEventStream.swift
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:50:42: error: cannot find type 'FSEventStreamCallback' in scope
48 | /// Deliberately free of Task hops: scheduling here would let Swift concurrency reorder
49 | /// events that FSEvents delivered in order.
50 | private static let eventStreamCallback: FSEventStreamCallback = {
| `- error: cannot find type 'FSEventStreamCallback' in scope
51 | (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
52 | guard let contextInfo else { return }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:53:31: error: cannot find type 'CFArray' in scope
51 | (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
52 | guard let contextInfo else { return }
53 | guard let paths = Unmanaged<CFArray>.fromOpaque(eventPaths).takeUnretainedValue() as NSArray as? [String]
| `- error: cannot find type 'CFArray' in scope
54 | else {
55 | return
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:73:25: error: cannot find type 'FSEventStreamRef' in scope
71 | }
72 |
73 | private let streamRef: FSEventStreamRef
| `- error: cannot find type 'FSEventStreamRef' in scope
74 | private let queue: DispatchQueue
75 | private let eventHandlerBox: EventHandlerBox
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:77:26: error: cannot find type 'FSEventStreamRef' in scope
75 | private let eventHandlerBox: EventHandlerBox
76 |
77 | private init(streamRef: FSEventStreamRef, queue: DispatchQueue, eventHandlerBox: EventHandlerBox) {
| `- error: cannot find type 'FSEventStreamRef' in scope
78 | self.streamRef = streamRef
79 | self.queue = queue
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:93:14: error: cannot find type 'FSEventStreamEventId' in scope
91 | static func make(
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
| `- error: cannot find type 'FSEventStreamEventId' in scope
94 | latency: CFTimeInterval,
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:94:12: error: cannot find type 'CFTimeInterval' in scope
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
94 | latency: CFTimeInterval,
| `- error: cannot find type 'CFTimeInterval' in scope
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
96 | ) throws -> FileSystemEventStream {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:101:17: error: cannot find 'FSEventStreamContext' in scope
99 |
100 | let contextPointer = Unmanaged.passUnretained(eventHandlerBox).toOpaque()
101 | var context = FSEventStreamContext(
| `- error: cannot find 'FSEventStreamContext' in scope
102 | version: 0,
103 | info: contextPointer,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:112:21: error: 'nil' requires a contextual type
110 | Unmanaged<EventHandlerBox>.fromOpaque(info).release()
111 | },
112 | copyDescription: nil
| `- error: 'nil' requires a contextual type
113 | )
114 |
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:115:22: error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
113 | )
114 |
115 | let flags = UInt32(kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents)
| `- error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
116 |
117 | guard
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:115:59: error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
113 | )
114 |
115 | let flags = UInt32(kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents)
| `- error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
116 |
117 | guard
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:118:17: error: cannot find 'FSEventStreamCreate' in scope
116 |
117 | guard
118 | let stream = FSEventStreamCreate(
| `- error: cannot find 'FSEventStreamCreate' in scope
119 | kCFAllocatorDefault,
120 | eventStreamCallback,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:119:5: error: cannot find 'kCFAllocatorDefault' in scope
117 | guard
118 | let stream = FSEventStreamCreate(
119 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
120 | eventStreamCallback,
121 | &context,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:122:14: error: cannot find type 'CFArray' in scope
120 | eventStreamCallback,
121 | &context,
122 | paths as CFArray,
| `- error: cannot find type 'CFArray' in scope
123 | sinceWhen,
124 | latency,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:131:3: error: cannot find 'FSEventStreamSetDispatchQueue' in scope
129 | }
130 |
131 | FSEventStreamSetDispatchQueue(stream, queue)
| `- error: cannot find 'FSEventStreamSetDispatchQueue' in scope
132 |
133 | guard FSEventStreamStart(stream) else {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:133:9: error: cannot find 'FSEventStreamStart' in scope
131 | FSEventStreamSetDispatchQueue(stream, queue)
132 |
133 | guard FSEventStreamStart(stream) else {
| `- error: cannot find 'FSEventStreamStart' in scope
134 | FSEventStreamRelease(stream)
135 | throw Error.startFailed
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:134:4: error: cannot find 'FSEventStreamRelease' in scope
132 |
133 | guard FSEventStreamStart(stream) else {
134 | FSEventStreamRelease(stream)
| `- error: cannot find 'FSEventStreamRelease' in scope
135 | throw Error.startFailed
136 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:144:3: error: cannot find 'FSEventStreamStop' in scope
142 | deinit {
143 | FileSystemEventStream.liveCount.subtract(1, ordering: .relaxed)
144 | FSEventStreamStop(streamRef)
| `- error: cannot find 'FSEventStreamStop' in scope
145 | FSEventStreamInvalidate(streamRef)
146 | FSEventStreamRelease(streamRef)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:145:3: error: cannot find 'FSEventStreamInvalidate' in scope
143 | FileSystemEventStream.liveCount.subtract(1, ordering: .relaxed)
144 | FSEventStreamStop(streamRef)
145 | FSEventStreamInvalidate(streamRef)
| `- error: cannot find 'FSEventStreamInvalidate' in scope
146 | FSEventStreamRelease(streamRef)
147 | }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:146:3: error: cannot find 'FSEventStreamRelease' in scope
144 | FSEventStreamStop(streamRef)
145 | FSEventStreamInvalidate(streamRef)
146 | FSEventStreamRelease(streamRef)
| `- error: cannot find 'FSEventStreamRelease' in scope
147 | }
148 | }
[101/106] Compiling AsyncFileMonitor FolderContentMonitor.swift
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:73:25: error: cannot find type 'FSEventStreamRef' in scope
71 | }
72 |
73 | private let streamRef: FSEventStreamRef
| `- error: cannot find type 'FSEventStreamRef' in scope
74 | private let queue: DispatchQueue
75 | private let eventHandlerBox: EventHandlerBox
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:64:22: error: cannot find type 'CFTimeInterval' in scope
62 | /// Interval (in seconds) that the system should wait before reporting events,
63 | /// allowing multiple related events to be coalesced. A value of `0.0` means no delay.
64 | public let latency: CFTimeInterval
| `- error: cannot find type 'CFTimeInterval' in scope
65 |
66 | /// The FSEventStreamEventId to start from.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:70:24: error: cannot find type 'FSEventStreamEventId' in scope
68 | /// This determines which events should be reported. Use `kFSEventStreamEventIdSinceNow`
69 | /// to only receive events that occur after monitoring starts.
70 | public let sinceWhen: FSEventStreamEventId
| `- error: cannot find type 'FSEventStreamEventId' in scope
71 |
72 | /// Create a new monitor for the specified paths.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:80:14: error: cannot find type 'FSEventStreamEventId' in scope
78 | public init(
79 | paths: [String],
80 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
81 | latency: CFTimeInterval = 0
82 | ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:81:12: error: cannot find type 'CFTimeInterval' in scope
79 | paths: [String],
80 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
81 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
82 | ) {
83 | self.paths = paths
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:96:14: error: cannot find type 'FSEventStreamEventId' in scope
94 | public convenience init(
95 | url: URL,
96 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
97 | latency: CFTimeInterval = 0
98 | ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:97:12: error: cannot find type 'CFTimeInterval' in scope
95 | url: URL,
96 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
97 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
98 | ) {
99 | precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:220:14: error: cannot find type 'FSEventStreamEventId' in scope
218 | public static func makeStream(
219 | url: URL,
220 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
221 | latency: CFTimeInterval = 0
222 | ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:221:12: error: cannot find type 'CFTimeInterval' in scope
219 | url: URL,
220 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
221 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
222 | ) -> AsyncStream<FolderContentChangeEvent> {
223 | precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:240:14: error: cannot find type 'FSEventStreamEventId' in scope
238 | public static func makeStream(
239 | paths: [String],
240 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
| `- error: cannot find type 'FSEventStreamEventId' in scope
241 | latency: CFTimeInterval = 0
242 | ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:241:12: error: cannot find type 'CFTimeInterval' in scope
239 | paths: [String],
240 | sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
241 | latency: CFTimeInterval = 0
| `- error: cannot find type 'CFTimeInterval' in scope
242 | ) -> AsyncStream<FolderContentChangeEvent> {
243 | AsyncStream { continuation in
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:93:14: error: cannot find type 'FSEventStreamEventId' in scope
91 | static func make(
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
| `- error: cannot find type 'FSEventStreamEventId' in scope
94 | latency: CFTimeInterval,
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:94:12: error: cannot find type 'CFTimeInterval' in scope
92 | paths: [String],
93 | sinceWhen: FSEventStreamEventId,
94 | latency: CFTimeInterval,
| `- error: cannot find type 'CFTimeInterval' in scope
95 | eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
96 | ) throws -> FileSystemEventStream {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:224:20: error: extra arguments at positions #2, #3 in call
126 | ///
127 | /// - Returns: An `AsyncStream` of ``FolderContentChangeEvent`` objects
128 | public func makeStream() -> AsyncStream<FolderContentChangeEvent> {
| `- note: 'makeStream()' declared here
129 | setupLifecycleManagement()
130 | return multicastStream.makeStream()
:
222 | ) -> AsyncStream<FolderContentChangeEvent> {
223 | precondition(url.isFileURL)
224 | return makeStream(paths: [url.path], sinceWhen: sinceWhen, latency: latency)
| `- error: extra arguments at positions #2, #3 in call
225 | }
226 |
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:224:10: error: function produces expected type 'AsyncStream<FolderContentChangeEvent>'; did you mean to call it with '()'?
222 | ) -> AsyncStream<FolderContentChangeEvent> {
223 | precondition(url.isFileURL)
224 | return makeStream(paths: [url.path], sinceWhen: sinceWhen, latency: latency)
| `- error: function produces expected type 'AsyncStream<FolderContentChangeEvent>'; did you mean to call it with '()'?
225 | }
226 |
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:224:28: error: cannot convert value of type '[String]' to expected argument type 'FolderContentMonitor'
222 | ) -> AsyncStream<FolderContentChangeEvent> {
223 | precondition(url.isFileURL)
224 | return makeStream(paths: [url.path], sinceWhen: sinceWhen, latency: latency)
| `- error: cannot convert value of type '[String]' to expected argument type 'FolderContentMonitor'
225 | }
226 |
[102/106] Compiling AsyncFileMonitor FolderContentChangeEvent.swift
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:21:17: error: cannot find type 'FSEventStreamEventId' in scope
19 | ///
20 | /// This is an alias for ``eventID`` to satisfy the `Identifiable` protocol.
21 | public var id: FSEventStreamEventId { eventID }
| `- error: cannot find type 'FSEventStreamEventId' in scope
22 |
23 | /// The unique event identifier assigned by Core Services.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:24:22: error: cannot find type 'FSEventStreamEventId' in scope
22 |
23 | /// The unique event identifier assigned by Core Services.
24 | public let eventID: FSEventStreamEventId
| `- error: cannot find type 'FSEventStreamEventId' in scope
25 |
26 | /// The file system path where the change occurred.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:70:12: error: cannot find type 'FSEventStreamEventId' in scope
68 | /// - condition: Conditions reported by the stream itself (default: none)
69 | public init(
70 | eventID: FSEventStreamEventId,
| `- error: cannot find type 'FSEventStreamEventId' in scope
71 | eventPath: String,
72 | change: Change,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:51:71: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
49 | /// This is the sole actionable condition in this group: ``userDropped`` and
50 | /// ``kernelDropped`` only say where the bottleneck was.
51 | public static let mustScanSubDirectories = StreamCondition(rawValue: kFSEventStreamEventFlagMustScanSubDirs)
| `- error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
52 |
53 | /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed on the client side.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:33:26: error: cannot find type 'FSEventStreamEventFlags' in scope
31 |
32 | /// Extracts the stream conditions from Core Services event flags, discarding item flags.
33 | public init(eventFlags: FSEventStreamEventFlags) {
| `- error: cannot find type 'FSEventStreamEventFlags' in scope
34 | self.rawValue = Int(eventFlags) & StreamCondition.flagsMask
35 | }
BUILD FAILURE 6.3 linux