KeyType icon indicating copy to clipboard operation
KeyType copied to clipboard

Crash on launch (Apple Silicon) – EXC_BREAKPOINT in SwiftUICore/AttributeGraph, macOS 15.1.1, v1.6 (8)

Open Teshgotcode opened this issue 3 months ago • 0 comments

Describe the bug KeyType crashes immediately on launch, before the UI ever appears. The crash log shows an EXC_BREAKPOINT (SIGTRAP) caused by an internal Swift assertion failure inside Apple's SwiftUICore/AttributeGraph framework, occurring during App.main() while the app's Scene is being instantiated (State._makeProperty -> AttributeGraph -> BodyAccessor.makeBody).

To Reproduce Steps to reproduce the behavior:

  1. Download KeyType.app from the Releases page
  2. Move it to /Applications
  3. Remove the quarantine attribute: xattr -dr com.apple.quarantine /Applications/KeyType.app
  4. Ad-hoc sign it: sudo codesign --force --deep --sign - /Applications/KeyType.app
  5. Grant Accessibility permission in System Settings > Privacy & Security
  6. Launch KeyType.app
  7. App crashes instantly (confirmed by running the binary directly and via Console.app crash report)

Expected behavior KeyType should launch normally and show its UI/menu bar icon without crashing.

Screenshots N/A — see attached crash log instead.

Device

  • Device: MacBook Pro M1 Pro (MacBookPro18,3)
  • OS: macOS 15.1.1 (24B91)

Additional context App version: 1.6 (build 8) Architecture: ARM-64 (native, not translated/Rosetta) Full crash report excerpt:

Exception Type: EXC_BREAKPOINT (SIGTRAP) Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Crashed Thread Backtrace (top frames): 0 libswiftCore.dylib assertionFailure(:_:file:line:flags:) + 268 1 AttributeGraph (offset 210716) 2 SwiftUICore specialized static State._makeProperty(in:container:fieldOffset:inputs:) + 128 3 SwiftUICore DynamicPropertyBuffer.addFields(:container:inputs:baseOffset:) + 312 ... 35 SwiftUI static App.main() + 224 36 KeyType 0x10066d08c 0x1005ac000 + 790668 37 dyld start + 2840

I've already ruled out Gatekeeper/quarantine and code signing as the cause (removed quarantine, ad-hoc re-signed) and confirmed Accessibility permissions were granted before the crash occurs — the crash happens during initial app/scene setup, before any permission-dependent code would run.

Happy to attach the full crash report (.ips) if useful.