The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-midi-file, reference main (a26a96), with Swift 6.2 for Linux on 1 May 2026 11:20:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orchetect/swift-midi-file.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/orchetect/swift-midi-file
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a26a96d Updated GitHub CI
Cloned https://github.com/orchetect/swift-midi-file.git
Revision (git rev-parse @):
a26a96d1e3fde40759e50df735ae7544919d10d2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/orchetect/swift-midi-file.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/orchetect/swift-midi-file.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Fetching https://github.com/orchetect/swift-data-parsing
Fetching https://github.com/orchetect/swift-testing-extensions
Fetching https://github.com/orchetect/swift-timecode
Fetching https://github.com/orchetect/swift-midi-core
[1/806] Fetching swift-data-parsing
[388/2308] Fetching swift-data-parsing, swift-midi-core
[2309/3382] Fetching swift-data-parsing, swift-midi-core, swift-testing-extensions
[3383/30348] Fetching swift-data-parsing, swift-midi-core, swift-testing-extensions, swift-timecode
Fetched https://github.com/orchetect/swift-data-parsing from cache (2.27s)
Fetched https://github.com/orchetect/swift-midi-core from cache (2.27s)
Fetched https://github.com/orchetect/swift-testing-extensions from cache (2.28s)
Fetched https://github.com/orchetect/swift-timecode from cache (2.32s)
Computing version for https://github.com/orchetect/swift-testing-extensions
Computed https://github.com/orchetect/swift-testing-extensions at 0.3.0 (2.86s)
Fetching https://github.com/tsolomko/SWCompression
Fetching https://github.com/swiftlang/swift-syntax.git
[1/17717] Fetching swcompression
[9214/92755] Fetching swcompression, swift-syntax
Fetched https://github.com/tsolomko/SWCompression from cache (8.26s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.27s)
Computing version for https://github.com/orchetect/swift-timecode
Computed https://github.com/orchetect/swift-timecode at 3.1.1 (29.05s)
Computing version for https://github.com/orchetect/swift-data-parsing
Computed https://github.com/orchetect/swift-data-parsing at 0.1.2 (0.67s)
Computing version for https://github.com/orchetect/swift-midi-core
Computed https://github.com/orchetect/swift-midi-core at 1.0.0 (1.10s)
Computing version for https://github.com/tsolomko/SWCompression
Computed https://github.com/tsolomko/SWCompression at 4.8.6 (0.81s)
Fetching https://github.com/tsolomko/BitByteData
[1/3232] Fetching bitbytedata
Fetched https://github.com/tsolomko/BitByteData from cache (0.54s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.0.4 (1.25s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.1 (1.36s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.1
Creating working copy for https://github.com/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.0.4
Creating working copy for https://github.com/orchetect/swift-testing-extensions
Working copy of https://github.com/orchetect/swift-testing-extensions resolved at 0.3.0
Creating working copy for https://github.com/orchetect/swift-timecode
Working copy of https://github.com/orchetect/swift-timecode resolved at 3.1.1
Creating working copy for https://github.com/orchetect/swift-data-parsing
Working copy of https://github.com/orchetect/swift-data-parsing resolved at 0.1.2
Creating working copy for https://github.com/tsolomko/SWCompression
Working copy of https://github.com/tsolomko/SWCompression resolved at 4.8.6
Creating working copy for https://github.com/orchetect/swift-midi-core
Working copy of https://github.com/orchetect/swift-midi-core resolved at 1.0.0
Building for debugging...
[0/9] Write sources
[5/9] Write swift-version-24593BA9C3E375BF.txt
[7/125] Compiling SwiftTimecodeCore Transferable.swift
[8/125] Compiling SwiftTimecodeCore UTType.swift
[9/125] Compiling SwiftTimecodeCore Errors.swift
[10/128] Compiling SwiftTimecodeCore ComponentRanges.swift
[11/128] Compiling SwiftTimecodeCore Components.swift
[12/128] Compiling SwiftTimecodeCore NSItemProvider.swift
[13/128] Compiling SwiftTimecodeCore Fraction.swift
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/Timespec.swift:141:18: error: extraneous argument label 'seconds:' in call
139 |     @_disfavoredOverload
140 |     public init(_ interval: TimeInterval) {
141 |         self.init(seconds: interval)
    |                  `- error: extraneous argument label 'seconds:' in call
142 |     }
143 | }
[14/128] Compiling SwiftTimecodeCore FrameRateProtocol Properties.swift
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/Timespec.swift:141:18: error: extraneous argument label 'seconds:' in call
139 |     @_disfavoredOverload
140 |     public init(_ interval: TimeInterval) {
141 |         self.init(seconds: interval)
    |                  `- error: extraneous argument label 'seconds:' in call
142 |     }
143 | }
[15/128] Compiling SwiftTimecodeCore FrameRateProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/Timespec.swift:141:18: error: extraneous argument label 'seconds:' in call
139 |     @_disfavoredOverload
140 |     public init(_ interval: TimeInterval) {
141 |         self.init(seconds: interval)
    |                  `- error: extraneous argument label 'seconds:' in call
142 |     }
143 | }
[17/128] Compiling SwiftTimecodeCore SwiftTimecodeCore.swift
[18/128] Compiling SwiftTimecodeCore Component.swift
[19/130] Compiling SwiftTimecodeCore FrameCount.swift
[20/130] Compiling SwiftTimecodeCore Timecode Math Internal.swift
[21/130] Compiling SwiftMIDIInternals ThreadSynchronizedValue.swift
[22/130] Compiling SwiftMIDIInternals Utilities.swift
[23/130] Compiling SwiftTimecodeCore Timecode Rounding.swift
[24/130] Compiling SwiftTimecodeCore FrameCount Value.swift
[27/130] Compiling SwiftTimecodeCore TimecodeInterval Real Time.swift
[28/130] Compiling SwiftTimecodeCore TimecodeInterval Unary Operators.swift
[29/130] Compiling SwiftTimecodeCore TimecodeInterval.swift
[30/130] Compiling SwiftTimecodeCore TimecodeTransformer.swift
[31/130] Compiling SwiftTimecodeCore CharacterSet.swift
[32/130] Compiling SwiftTimecodeCore Decimal.swift
[33/130] Compiling SwiftTimecodeCore FloatingPoint and Darwin.swift
[34/130] Compiling SwiftTimecodeCore FloatingPoint and Foundation.swift
[35/130] Compiling SwiftTimecodeCore FloatingPoint.swift
[36/130] Compiling SwiftTimecodeCore FloatingPointPowerComputable.swift
[37/130] Compiling SwiftTimecodeCore FeetAndFrames.swift
[38/130] Compiling SwiftTimecodeCore Fraction CMTime.swift
[44/140] Compiling SwiftTimecodeCore SwiftTimecodeCore-API-2.3.0.swift
[45/140] Compiling SwiftTimecodeCore SwiftTimecodeCore-API-2.3.1.swift
[46/140] Compiling SwiftTimecodeCore SwiftTimecodeCore-API-2.3.2.swift
[47/140] Compiling SwiftTimecodeCore CMTimeRange Extensions.swift
[48/140] Emitting module SwiftDataParsing
[49/140] Emitting module SwiftTimecodeCore
[60/140] Compiling SwiftTimecodeCore Timecode String.swift
[61/140] Compiling SwiftTimecodeCore Timecode TimecodeInterval.swift
[62/140] Compiling SwiftTimecodeCore Timecode Zero.swift
[63/140] Compiling SwiftTimecodeCore StringFormat.swift
[64/140] Compiling SwiftTimecodeCore StringFormatOption.swift
[65/140] Compiling SwiftTimecodeCore SubFramesBase.swift
[66/140] Compiling SwiftTimecodeCore Timecode Conversion.swift
[67/140] Compiling SwiftTimecodeCore Timecode Properties.swift
[68/140] Compiling SwiftTimecodeCore Timecode Validation.swift
[69/140] Compiling SwiftTimecodeCore Timecode init.swift
[70/140] Compiling SwiftTimecodeCore Timecode set.swift
[71/140] Compiling SwiftTimecodeCore Timecode.swift
[72/140] Compiling SwiftTimecodeCore UpperLimit.swift
[73/140] Compiling SwiftTimecodeCore TimecodeFrameRate CompatibleGroup.swift
[74/140] Compiling SwiftTimecodeCore TimecodeFrameRate Conversions.swift
[75/140] Compiling SwiftTimecodeCore TimecodeFrameRate Formats.swift
[76/140] Compiling SwiftTimecodeCore TimecodeFrameRate Properties.swift
[77/140] Compiling SwiftTimecodeCore TimecodeFrameRate.swift
[78/140] Compiling SwiftTimecodeCore TimecodeInterval Rational CMTime.swift
[79/140] Compiling SwiftTimecodeCore TimecodeInterval Rational.swift
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:25: error: cannot find 'NSException' in scope
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                         `- error: cannot find 'NSException' in scope
38 |         exception.raise()
39 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:84: error: 'nil' requires a contextual type
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                                                                                    `- error: 'nil' requires a contextual type
38 |         exception.raise()
39 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:25: error: cannot find 'NSException' in scope
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                         `- error: cannot find 'NSException' in scope
38 |         exception.raise()
39 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:84: error: 'nil' requires a contextual type
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                                                                                    `- error: 'nil' requires a contextual type
38 |         exception.raise()
39 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:25: error: cannot find 'NSException' in scope
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                         `- error: cannot find 'NSException' in scope
38 |         exception.raise()
39 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Exception.swift:37:84: error: 'nil' requires a contextual type
35 |         reason: String? = nil
36 |     ) {
37 |         let exception = NSException(name: exceptionName, reason: reason, userInfo: nil)
   |                                                                                    `- error: 'nil' requires a contextual type
38 |         exception.raise()
39 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/140] Emitting module SwiftMIDIInternals
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:48: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                                                `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 49 |     ) {
 50 |         self.rate = rate
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:23: error: @escaping attribute only applies to function types
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                       `- error: @escaping attribute only applies to function types
 49 |     ) {
 50 |         self.rate = rate
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:67: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                                                   `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
124 |         timer.setEventHandler(handler: handler)
125 |     }
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:42: error: @escaping attribute only applies to function types
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                          `- error: @escaping attribute only applies to function types
124 |         timer.setEventHandler(handler: handler)
125 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/ASCII.swift:30:27: error: cannot find 'applyingTransform' in scope
28 |     @available(OSX 10.11, iOS 9.0, *)
29 |     var asciiStringLossy: String {
30 |         let transformed = applyingTransform(
   |                           `- error: cannot find 'applyingTransform' in scope
31 |             StringTransform("Latin-ASCII"),
32 |             reverse: false
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/ASCII.swift:30:27: error: cannot find 'applyingTransform' in scope
28 |     @available(OSX 10.11, iOS 9.0, *)
29 |     var asciiStringLossy: String {
30 |         let transformed = applyingTransform(
   |                           `- error: cannot find 'applyingTransform' in scope
31 |             StringTransform("Latin-ASCII"),
32 |             reverse: false
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/Outsourced/ASCII.swift:30:27: error: cannot find 'applyingTransform' in scope
28 |     @available(OSX 10.11, iOS 9.0, *)
29 |     var asciiStringLossy: String {
30 |         let transformed = applyingTransform(
   |                           `- error: cannot find 'applyingTransform' in scope
31 |             StringTransform("Latin-ASCII"),
32 |             reverse: false
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:48: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                                                `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 49 |     ) {
 50 |         self.rate = rate
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:23: error: @escaping attribute only applies to function types
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                       `- error: @escaping attribute only applies to function types
 49 |     ) {
 50 |         self.rate = rate
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:67: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                                                   `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
124 |         timer.setEventHandler(handler: handler)
125 |     }
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:42: error: @escaping attribute only applies to function types
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                          `- error: @escaping attribute only applies to function types
124 |         timer.setEventHandler(handler: handler)
125 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:48: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                                                `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 49 |     ) {
 50 |         self.rate = rate
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:23: error: @escaping attribute only applies to function types
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                       `- error: @escaping attribute only applies to function types
 49 |     ) {
 50 |         self.rate = rate
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:67: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                                                   `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
124 |         timer.setEventHandler(handler: handler)
125 |     }
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:42: error: @escaping attribute only applies to function types
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                          `- error: @escaping attribute only applies to function types
124 |         timer.setEventHandler(handler: handler)
125 |     }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:48: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                                                `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
 49 |     ) {
 50 |         self.rate = rate
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:48:23: error: @escaping attribute only applies to function types
 46 |         leeway: DispatchTimeInterval = .nanoseconds(0),
 47 |         queue: DispatchQueue? = nil,
 48 |         eventHandler: @escaping DispatchSource.DispatchSourceHandler = { }
    |                       `- error: @escaping attribute only applies to function types
 49 |     ) {
 50 |         self.rate = rate
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:67: error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                                                   `- error: 'DispatchSourceHandler' is not a member type of class 'Dispatch.DispatchSource'
124 |         timer.setEventHandler(handler: handler)
125 |     }
Dispatch.DispatchSource:1:14: note: 'DispatchSource' declared here
1 | public class DispatchSource : DispatchObject, @unchecked Sendable, DispatchSourceProtocol, DispatchSourceRead, DispatchSourceSignal, DispatchSourceTimer, DispatchSourceUserDataAdd, DispatchSourceUserDataOr, DispatchSourceUserDataReplace, DispatchSourceWrite {
  |              `- note: 'DispatchSource' declared here
2 |     deinit
3 | }
/host/spi-builder-workspace/.build/checkouts/swift-midi-core/Sources/SwiftMIDIInternals/Utilities/SafeDispatchTimer.swift:123:42: error: @escaping attribute only applies to function types
121 |
122 |     /// Set the event handler closure that the timer executes
123 |     public func setEventHandler(handler: @escaping DispatchSource.DispatchSourceHandler) {
    |                                          `- error: @escaping attribute only applies to function types
124 |         timer.setEventHandler(handler: handler)
125 |     }
BUILD FAILURE 6.2 linux