Build Information
Failed to build KeyInputListener, reference main (fbf8c8
), with Swift 6.2 (beta) for macOS (SPM) on 21 Jun 2025 12:12:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/KeyInputListener.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/KeyInputListener
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/edonv/KeyInputListener.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.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 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
[5/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
[6/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
BUILD FAILURE 6.2 macosSpm