Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(macos): declare macOS 13 as the floor instead of accommodating 12

Etienne Lescot188f54bd89f1
diff --git a/README.md b/README.md
index 43c477e2e..7a43aa38b 100644
--- a/README.md
+++ b/README.md
@@ -65,7 +65,7 @@ Every platform has a recommended route below. On Windows that is the Microsoft S
### System requirements
- **Windows**: version 1903+ (build 18362) with Intel 8th Gen / AMD Ryzen 2000 series or newer minimum; Windows 11 with Intel 12th Gen / Ryzen 4000 series or newer recommended
-- **macOS**: 12 (Monterey) or later; macOS 13 (Ventura) or later for native ScreenCaptureKit capture. On macOS 12 recording falls back to the browser pipeline, with fewer capabilities (see [Platform differences](#platform-differences))
+- **macOS**: 13 (Ventura) or later — required by ScreenCaptureKit for capture
- **Linux**: `xdg-desktop-portal` and PipeWire for native capture and system audio; recording still works without them through the browser-capture fallback, with fewer capabilities (see [Platform differences](#platform-differences))
- **RAM**: 8 GB minimum, 16 GB recommended
@@ -170,11 +170,11 @@ You may need to grant screen recording permissions depending on your desktop env
Everything in the editor and export is the same on macOS, Windows, and Linux: zooms, backgrounds, motion blur, crop/trim/speed, blur regions, annotations, auto-captions, AI editing, projects, export, and all languages. All three now record through a native capture pipeline; the remaining differences are narrower than they used to be:
-- **Native recording**: macOS (ScreenCaptureKit), Windows (Windows Graphics Capture), and Linux (PipeWire via the ScreenCast portal) all record through a native pipeline for higher quality and clean window-level capture. The browser pipeline stays as an automatic fallback on Linux if the helper isn't available, and on macOS 12, where ScreenCaptureKit capture requires macOS 13.
+- **Native recording**: macOS (ScreenCaptureKit), Windows (Windows Graphics Capture), and Linux (PipeWire via the ScreenCast portal) all record through a native pipeline for higher quality and clean window-level capture. On Linux the browser pipeline stays as an automatic fallback if the helper isn't available.
- **Custom cursors**: on macOS and Windows the real cursor is captured with shape, type, and clicks. Linux captures position and cursor shape through the portal, so cursor themes and the editable cursor overlay work there too — but the portal reports no mouse button events, so **click effects remain macOS and Windows only**.
- **Webcam**: Windows muxes the webcam natively into the recording; macOS and Linux record it alongside as a separate file. It works as a picture-in-picture overlay on all three.
- **System audio** support varies by OS:
- - **macOS**: requires macOS 13+. On macOS 14.2+ you'll be prompted to grant audio capture permission. macOS 12 and below can't capture system audio (mic still works).
+ - **macOS**: works on every supported version. On macOS 14.2+ you'll be prompted to grant audio capture permission.
- **Windows**: works out of the box.
- **Linux**: needs PipeWire (default on Ubuntu 22.04+, Fedora 34+). Older PulseAudio-only setups may not capture system audio (mic should still work).
diff --git a/electron-builder.json5 b/electron-builder.json5
index 998d38ae3..66ee93af4 100644
--- a/electron-builder.json5
+++ b/electron-builder.json5
@@ -101,6 +101,17 @@
],
"mac": {
+ // Declared, not merely documented. Electron 41's own LSMinimumSystemVersion is 12.0
+ // and the .app inherits it verbatim when this key is absent — so before this line the
+ // bundle advertised macOS 12 while its native payload was built for 13, and a
+ // Monterey user got as far as the record button before anything went wrong (#515).
+ // LaunchServices now refuses to open the app below 13 instead, which is the honest
+ // signal.
+ //
+ // macOS 13 because ScreenCaptureKit capture requires it: ScreenCaptureRecorder is
+ // `@available(macOS 13.0, *)`. Keep in step with README.md, website/docs/
+ // installation.md, and electron/native/screencapturekit/Package.swift.
+ "minimumSystemVersion": "13.0",
"notarize": false,
"hardenedRuntime": true,
"entitlements": "macos.entitlements",
diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts
index c4ccbaa8c..e140a4e37 100644
--- a/electron/electron-env.d.ts
+++ b/electron/electron-env.d.ts
@@ -135,7 +135,7 @@ interface Window {
success: boolean;
available: boolean;
helperPath?: string;
- reason?: "unsupported-platform" | "unsupported-os" | "missing-helper" | string;
+ reason?: "unsupported-platform" | "missing-helper" | string;
error?: string;
}>;
startNativeWindowsRecording: (
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index 22586f140..aa2014670 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -981,24 +981,6 @@ async function findNativeMacCaptureHelperPath() {
return null;
}
-/**
- * ScreenCaptureRecorder is `@available(macOS 13.0, *)` and its `main()` hard-guards
- * `#available(macOS 13.0, *)`, so on macOS 12 the helper binary exists, execs, and then
- * exits with `unsupportedMacOS`. Answering that here lets the renderer take the browser
- * fallback deliberately, the way Windows and Linux already do, instead of discovering it
- * as an opaque spawn failure (#515).
- */
-function isMacScreenCaptureKitOsSupported() {
- if (process.platform !== "darwin") {
- return false;
- }
-
- const [major] = process.getSystemVersion().split(".").map(Number);
- // Fail OPEN on an unparseable version: refusing would push every healthy Mac onto
- // the browser pipeline, which is far worse than letting the helper answer for itself.
- return !Number.isFinite(major) || major >= 13;
-}
-
function isWindowsGraphicsCaptureOsSupported() {
if (process.platform !== "win32") {
return false;
@@ -2123,10 +2105,6 @@ export function registerIpcHandlers(
return { success: true, available: false, reason: "unsupported-platform" };
}
- if (!isMacScreenCaptureKitOsSupported()) {
- return { success: true, available: false, reason: "unsupported-os" };
- }
-
const helperPath = await findNativeMacCaptureHelperPath();
return helperPath
? { success: true, available: true, helperPath }
diff --git a/electron/native/screencapturekit/Package.swift b/electron/native/screencapturekit/Package.swift
index 4c7dc4efa..e478693b1 100644
--- a/electron/native/screencapturekit/Package.swift
+++ b/electron/native/screencapturekit/Package.swift
@@ -4,27 +4,26 @@ import PackageDescription
let package = Package(
name: "OpenScreenScreenCaptureKitHelper",
- // PACKAGE-WIDE, and SwiftPM has no per-target override — so this floor is also
- // the floor of `openscreen-macos-cursor-helper`, which needs nothing newer than
- // 10.15. It was set to .v13 in b9e21347, when ScreenCaptureKit was the only thing
- // in here; the cursor helper arrived in b2f9afab and silently inherited it.
+ // macOS 13 is DELIBERATE, and it is the same number the app declares in
+ // electron-builder.json5 (`mac.minimumSystemVersion`) and promises in the README.
+ // Those three must move together; scripts/check-macos-deployment-target.test.mjs
+ // asserts this one never rises above what the app declares.
//
- // That is not a cosmetic mismatch. At a deployment target >= 13 the linker resolves
- // the Swift Foundation overlay symbols against Foundation.framework directly and
- // DROPS /usr/lib/swift/libswiftFoundation.dylib from the load commands (the SDK's
- // `$ld$previous$/usr/lib/swift/libswiftFoundation.dylib$1.0.0$1$10.15$13.0$…`
- // directives are the cutover). On macOS 12 those symbols live only in that dylib,
- // which the binary no longer loads, so dyld kills the helper before it prints its
- // `ready` line — which the app then reported as a denied Accessibility grant.
- // See issue #515.
+ // It has to be at least 13 regardless: ScreenCaptureRecorder is
+ // `@available(macOS 13.0, *)` and its main() hard-guards `#available(macOS 13.0, *)`,
+ // because SCStream's usable surface starts there.
//
- // .v12 and not "12.3": at 12.0 ScreenCaptureKit is WEAK-linked, so a 12.0–12.2 host
- // still execs the capture helper and reaches the legible `HelperError.unsupportedMacOS`
- // guard in ScreenCaptureRecorder.main(). At 12.3 it becomes a hard LC_LOAD_DYLIB and
- // that host dies in dyld instead. Native capture still requires macOS 13 — that floor
- // is enforced in Swift by `@available(macOS 13.0, *)` on ScreenCaptureRecorder.
+ // What this block is NOT allowed to become is higher than the declared floor, which is
+ // how #515 happened. The floor was set here when ScreenCaptureKit was the only target;
+ // openscreen-macos-cursor-helper was added later and inherited it, because SwiftPM has
+ // no per-target override. The app then advertised macOS 12 while shipping a 13-only
+ // helper, and the damage was not the version number: at a deployment target >= 13 the
+ // linker resolves the Swift Foundation overlay symbols against Foundation.framework and
+ // drops /usr/lib/swift/libswiftFoundation.dylib from the load commands, so on macOS 12
+ // the helper died in dyld before it could speak — which the app reported to the user as
+ // a denied Accessibility grant.
platforms: [
- .macOS(.v12)
+ .macOS(.v13)
],
products: [
.executable(
diff --git a/scripts/check-macos-deployment-target.test.mjs b/scripts/check-macos-deployment-target.test.mjs
index 3bae0f29f..1e3e66ea0 100644
--- a/scripts/check-macos-deployment-target.test.mjs
+++ b/scripts/check-macos-deployment-target.test.mjs
@@ -1,22 +1,24 @@
// Guards the macOS deployment floor of the native Swift helpers (issue #515).
//
-// The floor is declared ONCE, package-wide, and SwiftPM offers no per-target
-// override — so it silently governs every executable in the package. That is
-// exactly how the bug happened: b9e21347 set `.macOS(.v13)` when ScreenCaptureKit
-// was the only target, then b2f9afab added `openscreen-macos-cursor-helper`
-// beside it, which needs nothing newer than 10.15 and inherited 13 anyway.
+// The floor is declared in THREE places that must agree: `mac.minimumSystemVersion` in
+// electron-builder.json5 (what the .app tells LaunchServices), the README's system
+// requirements (what we promise), and the `platforms:` block in Package.swift (what the
+// helpers are actually built for). This file ties the third to the first.
//
-// The consequence is not cosmetic. At a deployment target >= 13 the linker
-// resolves the Swift Foundation overlay symbols against Foundation.framework and
-// drops /usr/lib/swift/libswiftFoundation.dylib from the load commands; on
-// macOS 12 those symbols live only in that dylib, so the helper dies in the
-// loader before it can speak — which the app then reported to the user as a
-// denied Accessibility grant.
+// The direction matters. Package.swift may not declare a floor HIGHER than the app
+// advertises — that is exactly #515: the floor here was set to 13 when ScreenCaptureKit
+// was the only target, openscreen-macos-cursor-helper was added later and inherited it
+// because SwiftPM has no per-target override, and the bundle went on advertising macOS 12
+// (Electron's own LSMinimumSystemVersion, inherited because the key was unset).
//
-// A text assertion rather than a build: this has to fail on Linux and Windows CI
-// too, where no Swift toolchain exists. Native ScreenCaptureKit capture still
-// requires macOS 13 — that floor is enforced in Swift by `@available`, and is
-// deliberately NOT this file's business.
+// The damage was not the version number. At a deployment target >= 13 the linker resolves
+// the Swift Foundation overlay symbols against Foundation.framework and drops
+// /usr/lib/swift/libswiftFoundation.dylib from the load commands; on macOS 12 those
+// symbols live only in that dylib, so the helper died in the loader before it could speak
+// — and the app reported that as a denied Accessibility grant.
+//
+// A text assertion rather than a build: this has to fail on Linux and Windows CI too,
+// where no Swift toolchain exists.
import { readFileSync } from "node:fs";
import path from "node:path";
@@ -25,9 +27,20 @@ import { describe, expect, it } from "vitest";
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const PACKAGE_SWIFT = path.join(ROOT, "electron", "native", "screencapturekit", "Package.swift");
+const BUILDER_CONFIG = path.join(ROOT, "electron-builder.json5");
-/** The lowest macOS anything can ship on: Electron 41's own floor. */
-const SUPPORTED_FLOOR = 12;
+/**
+ * The floor the .app itself declares, read rather than duplicated — a second copy of this
+ * number is the thing most likely to drift, and drift is the whole failure mode.
+ *
+ * Regex rather than a JSON5 parse to keep this dependency-free and runnable anywhere; the
+ * key is a plain string literal in a hand-maintained config.
+ */
+function declaredAppFloor() {
+ const source = readFileSync(BUILDER_CONFIG, "utf8");
+ const match = source.match(/"minimumSystemVersion"\s*:\s*"(\d+)(?:\.\d+)*"/);
+ return match ? Number(match[1]) : null;
+}
/**
* Reads the major version out of the `platforms:` block, accepting both spellings
@@ -57,19 +70,24 @@ function declaredMacOsFloor(source) {
describe("macOS native helper deployment target", () => {
const source = readFileSync(PACKAGE_SWIFT, "utf8");
- it("declares a floor the shipped app can actually run on", () => {
+ it("declares a floor no higher than the app itself advertises", () => {
const floor = declaredMacOsFloor(source);
+ const appFloor = declaredAppFloor();
expect(floor, `no .macOS(...) platform found in ${PACKAGE_SWIFT}`).not.toBeNull();
+ expect(
+ appFloor,
+ 'no "minimumSystemVersion" found in electron-builder.json5 — without it the .app ' +
+ "inherits Electron's own floor, which is what let #515 ship",
+ ).not.toBeNull();
expect(
floor,
- `Package.swift declares macOS ${floor}, above the app's supported floor of ` +
- `${SUPPORTED_FLOOR}. This block is package-wide and also governs ` +
- "openscreen-macos-cursor-helper, which needs nothing newer than 10.15. " +
- "Raising it strands every macOS " +
- `${SUPPORTED_FLOOR} user: the helper dies in the loader and the app reports ` +
- "it as a denied Accessibility grant. See issue #515.",
- ).toBeLessThanOrEqual(SUPPORTED_FLOOR);
+ `Package.swift builds the native helpers for macOS ${floor}, above the ${appFloor} ` +
+ "the .app advertises to LaunchServices. This block is package-wide and also " +
+ "governs openscreen-macos-cursor-helper, which needs nothing newer than 10.15. " +
+ "Every user between the two versions gets a helper that dies in the loader, " +
+ "reported as a denied Accessibility grant. See issue #515.",
+ ).toBeLessThanOrEqual(appFloor);
});
it("parses both spellings SwiftPM accepts", () => {
diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.ts
index 939448185..fcab5452b 100644
--- a/src/hooks/useScreenRecorder.ts
+++ b/src/hooks/useScreenRecorder.ts
@@ -1250,14 +1250,6 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
return false;
}
- // macOS 12: the helper is present but ScreenCaptureKit capture is gated to
- // 13+, so fall back to the browser pipeline rather than refusing to record.
- // Windows does the same at the equivalent branch above, and Linux below.
- if (availability.reason === "unsupported-os") {
- console.warn("Native macOS capture needs macOS 13 or later; using browser capture.");
- return false;
- }
-
throw new Error(
availability.reason === "missing-helper"
? "Native macOS capture helper is not available."
diff --git a/website/docs/installation.md b/website/docs/installation.md
index db23078b6..71309012b 100644
--- a/website/docs/installation.md
+++ b/website/docs/installation.md
@@ -23,7 +23,7 @@ Download the latest installer for your platform from the [download page](/downlo
| | Minimum | Recommended |
|---|---|---|
| **Windows** | Windows 10 version 1903 (build 18362) or later, Intel 8th Gen / AMD Ryzen 2000 series or newer | Windows 11, Intel 12th Gen / AMD Ryzen 4000 series or newer |
-| **macOS** | macOS 12 (Monterey); macOS 13 (Ventura) or later for native ScreenCaptureKit capture — on macOS 12 recording falls back to the [browser pipeline](#platform-differences), with fewer capabilities | macOS 14 or later |
+| **macOS** | macOS 13 (Ventura) — required by ScreenCaptureKit for capture | macOS 14 or later |
| **Linux** | `xdg-desktop-portal` and PipeWire for native capture and system audio (default on Ubuntu 22.04+, Fedora 34+) — recording still works without them through the [browser-capture fallback](#platform-differences), with fewer capabilities. Recording mouse clicks on Wayland additionally needs your user in the `input` group — see [Mouse clicks on Wayland](#mouse-clicks-on-wayland) | Same, kept up to date |
| **RAM** | 8 GB | 16 GB |
@@ -131,10 +131,10 @@ The editing tools are the same everywhere — zooms, backgrounds, crop/trim/spee
| | macOS | Windows | Linux |
|---|---|---|---|
-| Capture pipeline | Native (ScreenCaptureKit) on macOS 13+; browser pipeline on macOS 12 | Native (Windows Graphics Capture) | Browser pipeline |
+| Capture pipeline | Native (ScreenCaptureKit) | Native (Windows Graphics Capture) | Browser pipeline |
| Custom cursor themes / click effects | ✅ | ✅ | ✅ on Wayland — click capture needs the `input` group ([details](#mouse-clicks-on-wayland)) |
| Webcam | Native capture | Native capture | Browser capture (still works as PiP) |
-| System audio | macOS 13+; permission prompt on 14.2+; not available on macOS 12 and below | Works out of the box | Needs PipeWire (default on Ubuntu 22.04+, Fedora 34+) |
+| System audio | Works out of the box; permission prompt on macOS 14.2+ | Works out of the box | Needs PipeWire (default on Ubuntu 22.04+, Fedora 34+) |
| MP4 export | ✅ | ✅ | ✅ (software encode) |
| GIF export | ✅ | ✅ | ✅ |
| On-device transcription | Metal (Apple Silicon) / CPU | Vulkan / CPU | Vulkan / CPU |