Skip to content

fix(build): pin Swift helper deployment target so 0.22.0 loads on macOS 15 (#494)#497

Merged
silverstein merged 1 commit into
mainfrom
fix/macos15-helper-crash
Jul 17, 2026
Merged

fix(build): pin Swift helper deployment target so 0.22.0 loads on macOS 15 (#494)#497
silverstein merged 1 commit into
mainfrom
fix/macos15-helper-crash

Conversation

@silverstein

Copy link
Copy Markdown
Owner

Fixes #494 — the shipped 0.22.0 system_audio_record helper crashes on macOS 15.

Root cause

The bundled Swift helpers are compiled in build.rs with swiftc and no -target. swiftc ignores MACOSX_DEPLOYMENT_TARGET (unlike clang/ld), so it stamps each helper's LC_BUILD_VERSION minos from the host SDK — macOS 26 on the macos-latest release runner. dyld then refuses to load the helper on macOS 15 (built for newer macOS version 26.0), breaking native call capture for every user not on macOS 26. The main app binary is fine (minos 11.0) precisely because clang/ld do honor the env var.

Fix

Pass an explicit -target <arch>-apple-macos11.0 to all three swiftc invocations (system_audio_record, mic_check, calendar-events — same latent bug). The macOS-15 ScreenCaptureKit APIs are weak-linked behind @available / #available guards, so the retargeted binary loads on macOS 11–14 (cleanly exiting when the feature is unavailable) and runs on macOS 15+. Source guards unchanged.

Verify

otool -l Minutes.app/Contents/MacOS/system_audio_record | grep -A4 LC_BUILD_VERSION
# before: minos 26.0   after: minos 11.0

This warrants a fast patch release (0.22.1). Reported by @Victors081.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
useminutes.app Ready Ready Preview, Comment Jul 17, 2026 6:01am

…cOS 15 (#494)

The bundled Swift helpers (system_audio_record, mic_check, calendar-events)
were compiled with swiftc and no -target. swiftc ignores
MACOSX_DEPLOYMENT_TARGET (unlike clang/ld), so it stamped each helper's
LC_BUILD_VERSION minos from the host SDK -- macOS 26 on the macos-latest
release runner. dyld then refuses to load the helper on macOS 15
("built for newer macOS version 26.0"), crashing native call capture for
every user not on macOS 26.

Pass an explicit per-helper `-target <arch>-apple-macos<min>`: mic_check
uses only long-stable APIs (11.0); system_audio_record uses
AVCaptureDevice.DeviceType.microphone and calendar-events uses
EKEventStore.requestFullAccessToEvents (both macOS 14 APIs, used
unguarded), so those pin to 14.0. Their macOS-15-only ScreenCaptureKit
recording paths stay weak-linked behind @available/#available guards, so
the binaries load on macOS 14+ and run on 15+.

Reported by @Victors081.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@silverstein
silverstein force-pushed the fix/macos15-helper-crash branch from 26974ea to 598ec93 Compare July 17, 2026 06:00
@silverstein
silverstein merged commit fa41379 into main Jul 17, 2026
24 checks passed
silverstein added a commit that referenced this pull request Jul 17, 2026
Patch release. Bugfixes only.

- fix(hotkey): stop the system-wide CGEventTap leak — a permission probe
  created a kCGHIDEventTap every 15s and never invalidated it, exhausting
  the system tap table and freezing keyboard/mouse (and crashing
  WindowServer) after the app ran a few hours; quitting Minutes restored
  performance. Now invalidated on teardown and probed once per process.
  (#488, #499, #500)
- fix(build): pin the Swift helper deployment targets so 0.22.0's
  native-call-capture helper loads on macOS 15 instead of dyld-aborting.
  (#494, #497)
- fix(core): let `--call` auto-detect PipeWire system-audio sinks on Linux.
  (#489, thanks @gtheys)
- fix(summarize): support the Apple engine for speaker mapping. (#487, #498)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

system_audio_record in Minutes 0.22.0 is built for macOS 26 and crashes on macOS 15

1 participant