The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-midi-core, reference 1.0.2 (8ca67a), with Swift 6.1 for Android on 25 Jun 2026 04:55:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orchetect/swift-midi-core.git
Reference: 1.0.2
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-core
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at 8ca67a4 Internals: Fixed temporary regression in lossy ASCII string conversion utility
Cloned https://github.com/orchetect/swift-midi-core.git
Revision (git rev-parse @):
8ca67a4aa5dc59169b4f0abb654d4ac8340a94bf
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/orchetect/swift-midi-core.git at 1.0.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/orchetect/swift-midi-core.git
https://github.com/orchetect/swift-midi-core.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4a63948557d43955e4033f1b4ac1c3cc996c027258fe5b7a7e5b05518357d5f0
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
Fetching https://github.com/orchetect/swift-testing-extensions
[1/1144] Fetching swift-testing-extensions
Fetched https://github.com/orchetect/swift-testing-extensions from cache (0.36s)
Computing version for https://github.com/orchetect/swift-testing-extensions
Computed https://github.com/orchetect/swift-testing-extensions at 0.3.0 (0.59s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/tsolomko/SWCompression
[1/17957] Fetching swcompression
[12033/93700] Fetching swcompression, swift-syntax
Fetched https://github.com/tsolomko/SWCompression from cache (2.43s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (2.44s)
Computing version for https://github.com/tsolomko/SWCompression
Computed https://github.com/tsolomko/SWCompression at 4.9.1 (2.66s)
Fetching https://github.com/tsolomko/BitByteData
[1/3278] Fetching bitbytedata
Fetched https://github.com/tsolomko/BitByteData from cache (0.42s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.1.0 (0.62s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (0.97s)
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/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.1.0
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.2
Creating working copy for https://github.com/tsolomko/SWCompression
Working copy of https://github.com/tsolomko/SWCompression resolved at 4.9.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/25] Emitting module SwiftMIDIInternals
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[5/27] Compiling SwiftMIDIInternals MainThreadSynchronizedPThreadMutexValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/27] Compiling SwiftMIDIInternals PThreadMutex.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/27] Compiling SwiftMIDIInternals PThreadMutexValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/27] Compiling SwiftMIDIInternals ASCII String and Data.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[9/27] Compiling SwiftMIDIInternals Main Queue Utilities.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[10/27] Compiling SwiftMIDIInternals MainThreadSynchronizedPThreadMutex.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[11/27] Compiling SwiftMIDIInternals SwiftMIDIInternals.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/27] Compiling SwiftMIDIInternals Exception.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/27] Compiling SwiftMIDIInternals Hex and Binary String.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/27] Compiling SwiftMIDIInternals ThreadSynchronized.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/27] Compiling SwiftMIDIInternals ThreadSynchronizedPThreadMutex.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/27] Compiling SwiftMIDIInternals ThreadSynchronizedPThreadMutexValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/27] Compiling SwiftMIDIInternals ThreadSynchronizedValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/27] Compiling SwiftMIDIInternals Utilities.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/27] Compiling SwiftMIDIInternals Timespec.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/27] Compiling SwiftMIDIInternals RandomAccessCollection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/27] Compiling SwiftMIDIInternals SafeDispatchTimer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/27] Compiling SwiftMIDIInternals Integers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/27] Compiling SwiftMIDIInternals Ranges.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/27] Compiling SwiftMIDIInternals String.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/27] Compiling SwiftMIDIInternals Number Formatting.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/27] Compiling SwiftMIDIInternals ASCII.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/27] Compiling SwiftMIDIInternals Collections.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4a63948557d43955e4033f1b4ac1c3cc996c027258fe5b7a7e5b05518357d5f0
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/23] Emitting module SwiftMIDIInternals
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[3/25] Compiling SwiftMIDIInternals SwiftMIDIInternals.swift
[4/25] Compiling SwiftMIDIInternals Exception.swift
[5/25] Compiling SwiftMIDIInternals Hex and Binary String.swift
[6/25] Compiling SwiftMIDIInternals Timespec.swift
[7/25] Compiling SwiftMIDIInternals RandomAccessCollection.swift
[8/25] Compiling SwiftMIDIInternals SafeDispatchTimer.swift
[9/25] Compiling SwiftMIDIInternals Number Formatting.swift
[10/25] Compiling SwiftMIDIInternals ASCII.swift
[11/25] Compiling SwiftMIDIInternals Collections.swift
[12/25] Compiling SwiftMIDIInternals Integers.swift
[13/25] Compiling SwiftMIDIInternals Ranges.swift
[14/25] Compiling SwiftMIDIInternals String.swift
[15/25] Compiling SwiftMIDIInternals ASCII String and Data.swift
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[16/25] Compiling SwiftMIDIInternals Main Queue Utilities.swift
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[17/25] Compiling SwiftMIDIInternals MainThreadSynchronizedPThreadMutex.swift
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:13:13: error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             `- error: let 'mainQueueKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state
14 | private let mainQueueValue: UInt8 = 1
15 |
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
  |                    `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 |     public init()
3 |     deinit
/host/spi-builder-workspace/Sources/SwiftMIDIInternals/Utilities/Threading and Synchronization/Main Queue Utilities.swift:7:1: warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 5 | //
 6 |
 7 | import class Foundation.DispatchQueue
   | `- warning: add '@preconcurrency' to treat 'Sendable'-related errors from module 'Dispatch' as warnings
 8 | import class Foundation.DispatchSpecificKey
 9 |
   :
11 |
12 | // We store the dispatch key and value globally so they aren't bound to the generic type
13 | private let mainQueueKey = DispatchSpecificKey<UInt8>()
   |             |- note: add '@MainActor' to make let 'mainQueueKey' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private let mainQueueValue: UInt8 = 1
15 |
[18/25] Compiling SwiftMIDIInternals ThreadSynchronized.swift
[19/25] Compiling SwiftMIDIInternals ThreadSynchronizedPThreadMutex.swift
[20/25] Compiling SwiftMIDIInternals ThreadSynchronizedPThreadMutexValue.swift
[21/25] Compiling SwiftMIDIInternals MainThreadSynchronizedPThreadMutexValue.swift
[22/25] Compiling SwiftMIDIInternals PThreadMutex.swift
[23/25] Compiling SwiftMIDIInternals PThreadMutexValue.swift
[24/25] Compiling SwiftMIDIInternals ThreadSynchronizedValue.swift
[25/25] Compiling SwiftMIDIInternals Utilities.swift
BUILD FAILURE 6.1 android