Build Information
Failed to build KeyInputListener, reference 0.0.1 (fbf8c8), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 13:20:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/KeyInputListener.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/KeyInputListener
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at fbf8c89 Added privacy manifest.
Cloned https://github.com/edonv/KeyInputListener.git
Revision (git rev-parse @):
fbf8c8922b96aabfc2c9beb0adb61479663cb110
SUCCESS checkout https://github.com/edonv/KeyInputListener.git at 0.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "keyinputlistener",
"name": "KeyInputListener",
"url": "https://github.com/edonv/KeyInputListener.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/KeyInputListener",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/edonv/KeyInputListener.git
[1/60] Fetching keyinputlistener
Fetched https://github.com/edonv/KeyInputListener.git from cache (0.63s)
Creating working copy for https://github.com/edonv/KeyInputListener.git
Working copy of https://github.com/edonv/KeyInputListener.git resolved at 0.0.1 (fbf8c89)
warning: '.resolve-product-dependencies': dependency 'keyinputlistener' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/edonv/KeyInputListener.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module KeyInputListener
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputEvent.swift:20:35: error: cannot find type 'NSEvent' in scope
18 |
19 | #if canImport(AppKit)
20 | public typealias SpecialKey = NSEvent.SpecialKey
| `- error: cannot find type 'NSEvent' in scope
21 | #else
22 | public typealias SpecialKey = Never
[4/6] Compiling KeyInputListener KeyInputEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputEvent.swift:20:35: error: cannot find type 'NSEvent' in scope
18 |
19 | #if canImport(AppKit)
20 | public typealias SpecialKey = NSEvent.SpecialKey
| `- error: cannot find type 'NSEvent' in scope
21 | #else
22 | public typealias SpecialKey = Never
[5/6] Compiling KeyInputListener KeyInputListener.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputListener.swift:24:29: error: use of local variable 'modifiers' before its declaration
22 | } else {
23 | #if canImport(AppKit)
24 | var modifiers = modifiers
| | `- error: use of local variable 'modifiers' before its declaration
| `- note: 'modifiers' declared here
25 | if char.isUppercase && modifiers.contains(.shift) {
26 | modifiers.subtract(.shift)
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputListener.swift:25:56: error: cannot infer contextual base in reference to member 'shift'
23 | #if canImport(AppKit)
24 | var modifiers = modifiers
25 | if char.isUppercase && modifiers.contains(.shift) {
| `- error: cannot infer contextual base in reference to member 'shift'
26 | modifiers.subtract(.shift)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputListener.swift:26:37: error: cannot infer contextual base in reference to member 'shift'
24 | var modifiers = modifiers
25 | if char.isUppercase && modifiers.contains(.shift) {
26 | modifiers.subtract(.shift)
| `- error: cannot infer contextual base in reference to member 'shift'
27 | }
28 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputEvent.swift:20:35: error: cannot find type 'NSEvent' in scope
18 |
19 | #if canImport(AppKit)
20 | public typealias SpecialKey = NSEvent.SpecialKey
| `- error: cannot find type 'NSEvent' in scope
21 | #else
22 | public typealias SpecialKey = Never
[6/6] Compiling KeyInputListener KeyInputListener+ViewModifiers.swift
/Users/admin/builder/spi-builder-workspace/Sources/KeyInputListener/KeyInputEvent.swift:20:35: error: cannot find type 'NSEvent' in scope
18 |
19 | #if canImport(AppKit)
20 | public typealias SpecialKey = NSEvent.SpecialKey
| `- error: cannot find type 'NSEvent' in scope
21 | #else
22 | public typealias SpecialKey = Never
BUILD FAILURE 6.3 macosSpm